Java 无法安装Hadoop:InvalidAlgorithmParameter异常

Java 无法安装Hadoop:InvalidAlgorithmParameter异常,java,maven,hadoop,Java,Maven,Hadoop,我从github repo下载了最新版本的apache hadoop,并按照以下步骤操作: 我没有安装protobuf和java,因为我的机器上已经安装了它们。 使用命令安装时: mvn package -Pdist,native -DskipTests -Dtar 出现以下错误: [INFO] Scanning for projects... Downloading: https://repo.maven.apache.org/maven2/org/apache/felix/maven-b

我从github repo下载了最新版本的apache hadoop,并按照以下步骤操作:

我没有安装protobuf和java,因为我的机器上已经安装了它们。 使用命令安装时:

mvn package -Pdist,native -DskipTests -Dtar
出现以下错误:

[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/2.5.0/maven-bundle-plugin-2.5.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:2.5.0 @ 
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.apache.hadoop:hadoop-main:3.0.2 (/home/andrew/hadoop-rel-release-3.0.2/pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.5.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.felix:maven-bundle-plugin:jar:2.5.0: Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:2.5.0 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

有什么帮助吗?

那篇文章是2015年的。您应该查找正在安装的版本的说明。除非您确实在编辑Hadoop源代码,否则只需下载二进制文件,而不是通过apt重新安装java ca证书来解决的源代码。谢谢。