Sbt cannot resolve some dependencies as they are not part of the Maven repository. However, you can find them on clojars and conjars . You need to add the following lines so sbt can resolve them:
resolvers += "clojars" at "https://clojars.org/repo" resolvers += "conjars" at "http://conjars.org/repo"
Also, there is no elasticsearch-hadoop dependency "2.1.0" (yet?), You should use "2.1.0.Beta4" (or any other latest version when you read this)
Your sbt file should look like this:
name := "twitter-sparkstreaming-elasticsearch" version := "0.0.1" scalaVersion := "2.10.4" libraryDependencies ++= Seq( "org.apache.spark" %% "spark-core" % "1.1.0", "org.apache.spark" %% "spark-streaming" % "1.1.0", "org.apache.spark" %% "spark-streaming-twitter" % "1.1.0", "org.elasticsearch" % "elasticsearch-hadoop" % "2.1.0.Beta4" ) resolvers += "clojars" at "https://clojars.org/repo" resolvers += "conjars" at "http://conjars.org/repo"
This has been tested (with spark core 1.3.1 and no sparking, but it should work for you). Hope this helps.
source share