title: HBase dependencies with SBT in Scala
body: <p>I am new with Scala, SBT and Intellij.</p>
  
  <p>Using the following sbt file :</p>
  
  <pre><code>name := "mycompany"
  
  version := "0.0.1-SNAPSHOT"
  
  scalaVersion := "2.11.8"
  
  libraryDependencies ++= Seq(
    "org.apache.spark" %% "spark-core" % "2.0.1",
    "org.apache.spark" %% "spark-sql" % "2.0.1",
    "org.apache.spark" %% "spark-mllib" % "2.0.1",
    "org.apache.hbase" % "hbase-client" % "1.2.0",
    "com.typesafe.akka" %% "akka-http-experimental" % "2.4.11"
  )
  
  resolvers ++= Seq(
    "Apache Repository" at "https://repository.apache.org/content/repositories/releases/"
  )
  </code></pre>
  
  <p>The three Apache Spark dependencies are red underlined in Intellij with an 'Unreasolved dpendancy' tag. However, I can import Spark libraries and my Spark jobs run in local mode without any issue.</p>
  
  <p>I can not import from the HBase library inside the IDE. The following imports all can not be resolved</p>
  
  <pre><code>import org.apache.hadoop.hbase.HBaseConfiguration
  import org.apache.hadoop.hbase.KeyValue
  import org.apache.hadoop.hbase.MasterNotRunningException;
  import org.apache.hadoop.hbase.TableName
  import org.apache.hadoop.hbase.ZooKeeperConnectionException
  import org.apache.hadoop.hbase.client.Connection
  import org.apache.hadoop.hbase.client.ConnectionFactory
  import org.apache.hadoop.hbase.client.Get
  import org.apache.hadoop.hbase.client.Result
  import org.apache.hadoop.hbase.client.Table
  import org.apache.hadoop.hbase.util.Bytes
  </code></pre>
  
  <p>I have written code in java using the above imports without any issue and only with these lines in maven:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.hbase&lt;/groupId&gt;
          &lt;artifactId&gt;hbase-client&lt;/artifactId&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;version&gt;1.2.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>What am I doing wrong ?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Thanks to pamu's post, I have replaced the resolvers with:</p>
  
  <pre><code>resolvers ++= Seq(
    "Apache Repository" at "https://repository.apache.org/content/repositories/releases/",
    "Cloudera repo" at "//repository.cloudera.com/artifactory/cloudera-repos/"
  )
  </code></pre>
  
  <p>However, I still have some unresolved imports (other above are now OK):</p>
  
  <pre><code>import org.apache.hadoop.hbase.HBaseConfiguration
  import org.apache.hadoop.hbase.KeyValue
  import org.apache.hadoop.hbase.util.TableName
  import org.apache.hadoop.hbase.util.Bytes
  </code></pre>
  
  <p>Thanks for your help</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>libraryDependencies ++= Seq(
    "org.apache.hbase" % "hbase-server" % 1.2.1,
    "org.apache.hbase" % "hbase-client" % 1.2.1,
    "org.apache.hbase" % "hbase-common" % 1.2.1,
    "org.apache.hadoop" % "hadoop-common" % 2.7.3
  )
  </code></pre>