title: Why does Spark report "error: not found: type Properties" when loading a data set?
body: <p>I am running Spark 2.1.0 on Windows 10, I am following the <a href="http://spark.apache.org/docs/latest/sql-programming-guide.html#jdbc-to-other-databases" rel="nofollow noreferrer">Spark programming guide to load data using JDBC from MySQL</a>. When I try to load data using the second method in the link, I get the following error.</p>
  
  <pre><code>scala&gt; val connectionProperties = new Properties()
  &lt;console&gt;:44: error: not found: type Properties
         val connectionProperties = new Properties()
                                        ^
  </code></pre>