在raspberrypi上从源代码构建hadoop 3.3.0时失败

tcomlyy6  于 2021-05-27  发布在  Hadoop
关注(0)|答案(0)|浏览(380)

我正在尝试在RaspoberyPi4上从源代码构建Hadoop3.3.0。
我安装了所有依赖项,但在生成时出错:

[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (src-compile-protoc) on project hadoop-common: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:linux-arm_32:3.7.1
[ERROR] 
[ERROR]   Try downloading the file manually from the project website.
[ERROR] 
[ERROR]   Then, install it using the command: 
[ERROR]       mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=linux-arm_32 -Dpackaging=exe -Dfile=/path/to/file
[ERROR] 
[ERROR]   Alternatively, if you host your own repository you can deploy the file there: 
[ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=linux-arm_32 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR] 
[ERROR]   Path to dependency: 
[ERROR]         1) org.apache.hadoop:hadoop-common:jar:3.3.0
[ERROR]         2) com.google.protobuf:protoc:exe:linux-arm_32:3.7.1
[ERROR] 
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR] 
[ERROR] for artifact: 
[ERROR]   org.apache.hadoop:hadoop-common:jar:3.3.0
[ERROR] 
[ERROR] from the specified remote repositories:
[ERROR]   apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots, releases=true, snapshots=true),
[ERROR]   repository.jboss.org (https://repository.jboss.org/nexus/content/groups/public/, releases=true, snapshots=false),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)

似乎protobuf出了问题。我使用以下过程构建了protobuf 2.5.0:

./autogen.sh
./configure --prefix=/usr
make
make check
make install

接下来我尝试了3.7.1版,但还是出现了一个错误。在构建和安装protobuf之后,我应该做些别的事情吗?还是问题出在别的地方?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题