未能执行goal org.apachehadoop:hadoop-maven-plugins:2.4.2-snapshot:protoc

iyr7buue  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(370)

你知道我怎么解决这个错误吗?

[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.4.2-SNAPSHOT:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: 'protoc --version' did not return a version -> [Help 1]
[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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hadoop-common
zvms9eto

zvms9eto1#

我通过在ubuntu中使用以下命令安装protocolbuffer解决了这个问题:

sudo apt-get install protoc

相关问题