在RaspberryPi上从源代码构建Hadoop 3.3.0时失败

时间:2020-10-27 23:29:51

标签: java linux maven hadoop raspberry-pi

我正在尝试从RaspoberryPi 4上的源代码构建Hadoop 3.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之后我应该做其他事情吗?还是问题出在其他地方?

0 个答案:

没有答案
相关问题