title: Spark : Error Not found value SC
body: <p>I have just started with Spark. I have CDH5 Installed with Spark . However when I try to use sparkcontext it gives Error as below</p>
  
  <pre><code>&lt;console&gt;:17: error: not found: value sc
         val distdata = sc.parallelize(data)
  </code></pre>
  
  <p>I have researched about this and found <a href="https://stackoverflow.com/questions/31625770/error-not-found-value-sc">error: not found: value sc</a> </p>
  
  <p>and tried to start spark context with ./spark-shell . It gives error <code>No such File or Directory</code></p>