error: not found: value StructType/StructField/StringType
<p>I am running scala on my local machine, version 2.0.</p>

<pre><code>val schema = StructType(schemaString.split("|^").map(fieldName =&gt;StructField(fieldName, StringType, true)))
&lt;console&gt;:45: error: not found: value StructType
   val schema = StructType(schemaString.split("|^").map(fieldName =&gt;StructField(fieldName, StringType, true)))
                ^
&lt;console&gt;:45: error: not found: value StructField
   val schema = StructType(schemaString.split("|^").map(fieldName =&gt; StructField(fieldName, StringType, true)))
                                                                     ^
&lt;console&gt;:45: error: not found: value StringType
   val schema = StructType(schemaString.split("|^").map(fieldName =&gt; StructField(fieldName, StringType, true)))
                                                                                            ^
</code></pre>

<p>i loaded import org.apache.spark.sql._ but still getting this error. am i missing any packages?</p>