I want to read table in HBase using Spark. I added the following dependency:
libraryDependencies += "org.apache.hbase" %% "hbase-spark" % "2.0.0-SNAPSHOT"
as mentioned in hbase website, but the dependency can't be resolved !!
I also tried different versions (1.2.0, 1.1.2) and it didn't work.
It doesn't look like hbase-spark
is in maven central, which is the default repository that dependencies will be retrieved from.
You'll need to configure your build management tool (unclear if you're using Maven or SBT) to use the correct repository.
From the project page you can use
Currently, however, it looks like only snapshots are available.
Additionally, as mentioned in the comment from the author below, the line
libraryDependencies += "org.apache.hbase" %% "hbase-spark" % "2.0.0-SNAPSHOT"
should actually be
libraryDependencies += "org.apache.hbase" % "hbase-spark" % "2.0.0-SNAPSHOT"
The double % is not needed in this case as you do no want to append the scala version to the artifact name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With