hadoop公共构建失败tools:jar

xe55xuns  于 2021-05-27  发布在  Hadoop
关注(0)|答案(1)|浏览(389)

尝试使用命令构建hadoop公共项目,

mvn generate-sources generate-test-sources

生成失败,错误为:

[ERROR] Failed to execute goal on project hadoop-annotations: Could not resolve dependencies for project org.apache.hadoop:hadoop-annotations:jar:3.0.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar -> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

openjdk-11版本中缺少tools.jar。

eeq64g8w

eeq64g8w1#

hadoop仍然需要java8来构建。
Java11的进展可以在https://issues.apache.org/jira/browse/hadoop-15338

相关问题