由于libprotoc在Eclipse下使用Hadoop时,Trunk不会编译 [英] Trunk doesn't compile because libprotoc is old when working with Hadoop under Eclipse

查看:124
本文介绍了由于libprotoc在Eclipse下使用Hadoop时,Trunk不会编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注使用Eclipse下的Hadoop,并尝试运行

I am following "working with Hadoop under Eclipse" and trying to run

$ mvn install -DskipTests


$ b $一段时间后,我收到一个错误:

After a while, I received an error:


[错误]执行目标无法执行org.apache.hadoop:hadoop- maven-plugins:3.0.0-SNAPSHOT:proc(compile-protoc)项目hadoop-common:org.apache.maven.plugin.MojoExecutionException:protoc版本是'libprotoc 2.4.1',预期版本是'2.5.0' - > [帮助1]

[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]

此页面中报告的内容

有谁知道如何解决?我应该如何升级libprotoc?

Does anyone know how to solve it? How should I do to upgrade libprotoc?

推荐答案

协议缓冲区用作不同守护进程之间的RPC协议。一些Linux版本没有所需的版本。因此,协议缓冲区代码必须从构建并安装的此处下载。这些是下载的软件包中README.txt的说明。

Protocol Buffers is used as an RPC protocol between different daemons. Some of the Linux releases don't have the required version. So, Protocol Buffers code has to be downloaded from here, built and installed. These are the instructions from the README.txt in the downloaded bundle.

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.

这篇关于由于libprotoc在Eclipse下使用Hadoop时,Trunk不会编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆