我正在尝试将hadoop连接到Windows上的mongodb。我有Hadoop的2.3版本,我更改了build.sbt文件,所以我有了这个
hadoopRelease in ThisBuild := "2.3"
然而,当我尝试运行此命令时
sbt package
我不断收到此错误消息,尽管Hadoop启动并运行2.3版本。
[debug]
java.lang.RuntimeException: Hadoop Release '%s' is an invalid/unsupported releas
e. Valid entries are in 2.3
at scala.sys.package$.error(package.scala:27)
at MongoHadoopBuild$$anonfun$streamingSettings$6$$anonfun$apply$8.apply(
MongoHadoopBuild.scala:179)
at MongoHadoopBuild$$anonfun$streamingSettings$6$$anonfun$apply$8.apply(
MongoHadoopBuild.scala:179)
at scala.collection.MapLike$class.getOrElse(MapLike.scala:122)
at scala.collection.immutable.HashMap.getOrElse(HashMap.scala:38)
at MongoHadoopBuild$$anonfun$streamingSettings$6.apply(MongoHadoopBuild.
scala:179)
at MongoHadoopBuild$$anonfun$streamingSettings$6.apply(MongoHadoopBuild.
scala:178)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$single$1.apply(IN
ode.scala:159)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$single$1.apply(IN
ode.scala:159)
at sbt.EvaluateSettings$MixedNode.evaluate0(INode.scala:177)
at sbt.EvaluateSettings$INode.evaluate(INode.scala:132)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$submitEvaluate$1.
apply$mcV$sp(INode.scala:64)
at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:73)
at sbt.EvaluateSettings$$anon$3.run(INode.scala:69)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:744)
我正在关注本教程,但由于连接器已支持版本2.3 http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-hadoop/
,因此它有点过时了答案 0 :(得分:0)
使用gradle构建。 Gradle是现在构建它的官方方式。我等着删除sbt的东西,直到doc更改被推送到该url。 github页面包含最新的说明。