0

为了开始使用 mongodb-hadoop 适配器,我指的是手册

我系统上当前运行的 hadoop 版本是 0.20.2。

所以我将build.sbt文件编辑为

ThisBuild 中的 hadoopRelease := "0.20.2"。

但是当我尝试“sbt package”的下一个命令时,我收到以下错误。

[error] Hadoop Release '%s' is an invalid/unsupported release.  Valid entries are in 0.20.2
[error] Use 'last' for the full log.

完整的日志是

[info] Loading project definition from E:\softwares\mine\mongo-hadoop\project
[debug] Running task... Cancelable: false, check cycles: false
[debug]
[debug] Initial source changes:
[debug]         removed:Set()
[debug]         added: Set()
[debug]         modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
[debug]
[debug] Sources indirectly invalidated by:
[debug]         product: Set()
[debug]         binary dep: Set()
[debug]         external source: Set()
[debug] Initially invalidated: Set()
[debug] Copy resource mappings:
[debug]

    java.lang.RuntimeException: Hadoop Release '%s' is an invalid/unsupported release.  Valid entries are in 0.20.2
            at scala.sys.package$.error(package.scala:27)
            at MongoHadoopBuild$$anonfun$streamingSettings$6$$anonfun$apply$8.apply(MongoHadoopBuild.scala:152)
            at MongoHadoopBuild$$anonfun$streamingSettings$6$$anonfun$apply$8.apply(MongoHadoopBuild.scala:152)
            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:152)
            at MongoHadoopBuild$$anonfun$streamingSettings$6.apply(MongoHadoopBuild.scala:151)
            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(INode.scala:159)
            at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$single$1.apply(INode.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:1110)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
            at java.lang.Thread.run(Thread.java:722)
    [error] Hadoop Release '%s' is an invalid/unsupported release.  Valid entries are in 0.20.2
4

1 回答 1

0

尝试更换

ThisBuild 中的 hadoopRelease := "0.20.2"。

ThisBuild 中的 hadoopRelease := "0.20"。

对我来说,当我制作 1.0.4 到 1.0 时,它起作用了。虽然我不得不承认我没有检查重新安装的罐子是否有效。

编辑:罐子没用。抱怨一些缺课。

于 2013-04-11T10:03:55.507 回答