title: error not found value spark import spark.implicits._ import spark.sql
body: <p>I am using  <strong>hadoop 2.7.2 , hbase 1.4.9, spark 2.2.0, scala 2.11.8 and java 1.8</strong> on a <em>hadoop cluster</em> which is composed of one master and two slave.</p>
  
  <p>when I run <strong>spark-shel</strong>l after starting the cluster , it works fine.
  <strong>I am trying to connect to hbase using scala</strong> by following this tutorial : [<a href="https://www.youtube.com/watch?v=gGwB0kCcdu0][1]" rel="nofollow noreferrer">https://www.youtube.com/watch?v=gGwB0kCcdu0][1]</a>  .</p>
  
  <p>But when I try like he does to run the spark-shell by adding those jars like argument I have this error: </p>
  
  <blockquote>
    <p>spark-shell  --jars
    "hbase-annotations-1.4.9.jar,hbase-common-1.4.9.jar,hbase-protocol-1.4.9.jar,htrace-core-3.1.0-incubating.jar,zookeeper-3.4.6.jar,hbase-client-1.4.9.jar,hbase-hadoop2-compat-1.4.9.jar,metrics-json-3.1.2.jar,hbase-server-1.4.9.jar"</p>
  </blockquote>
  
  <pre><code>&lt;console&gt;:14: error: not found: value spark
         import spark.implicits._
                ^
  &lt;console&gt;:14: error: not found: value spark
         import spark.sql
                ^
  </code></pre>
  
  <p>and after that even I log out and run spark-shell another time I have the same issue.
  Can any one tell me please what is the cause and how to fix it .</p>