java - Trunk 无法编译,因为在 Eclipse 下使用 Hadoop 时 libprotoc 很旧

标签 java eclipse maven hadoop

我正在关注 "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/

相关文章:

java - Java中的<<或>>>是什么意思?

java - Apache poi HSSFWorkbook 覆盖 XLS 模板中的样式

python - 我该怎么做才能使 Eclipse PyDev 编辑器更具 react 性?

java - 防止上传中间 Maven Artifact

maven - 用 maven-deploy-plugin 替换 nexus staging maven 插件

java - 创建一个可执行的 JAR 及其所有依赖项,并使用 maven assembly 放入 ZIP 文件

java - 如何在按下键盘按钮时执行一项操作而不是循环

java - C 中的 JSON 模式代码生成

android - Eclipse 和 Android SL GridLayout 无法协同工作 - "android.support.v7.widget.GridLayout could not be instantiated"

java - 如何将特定的java文件与cucumber中的特定功能文件进行匹配