[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.5.0: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] [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
先安装g++等
sudo apt-get install g++ autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev
安装protoc ,不好下载的话,可以下载附件
wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
执行
sudo make
sudo make check
sudo make install
protoc --version
后来编译 mvn package -Pdist,native -DskipTests -Dtar 就OK了