我正在尝试从其源代码编译 Hadoop 3.1。一旦进入 docker 容器,我将按照BUILDING.txt
Hadoop 源代码文件中包含的说明使用 maven 构建它。在Apache Hadoop Common ............................... FAILURE [ 0.458 s]
尝试构建时,我收到以下错误,关于protoc --version
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.1.0:protoc (compile-protoc) on project hadoop-common:org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.1.0:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version
但是,该protoc
命令正在我的安装中运行:
$ protoc
Missing input file.
$ protoc --version
libprotoc 2.5.0
protoc
3.0 版也发生了同样的事情。
有人经历过类似的事情吗?