我正在关注 "working with Hadoop under Eclipse"并尝试运行
$ mvn install -DskipTests
过了一会儿,我收到一个错误:
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: protoc version is 'libprotoc 2.4.1', expected version is '2.5.0' -> [Help 1]
与what is reported in this page相同.
有谁知道怎么解决吗?如何升级libprotoc?
最佳答案
Protocol Buffers 用作不同守护进程之间的 RPC 协议(protocol)。某些 Linux 发行版没有所需的版本。因此,必须从 here 下载 Protocol Buffers 代码。 , build 和安装。这些是下载包中 README.txt 中的说明。
To build and install the C++ Protocol Buffer runtime and the Protocol Buffer compiler (protoc) execute the following:
$ ./configure
$ make
$ make check
$ make install
If "make check" fails, you can still install, but it is likely that some features of this library will not work correctly on your system. Proceed at your own risk. "make install" may require superuser privileges.
关于java - Trunk 无法编译,因为在 Eclipse 下使用 Hadoop 时 libprotoc 很旧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19556253/