Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

rpmbuld hadoop-cdh error :protoc --version' did not return a version -> [He lp 1]

Highlighted

rpmbuld hadoop-cdh error :protoc --version' did not return a version -> [He lp 1]

New Contributor

when i rpmbuild hadoop from hadoop-2.2.0+cdh5.0.0+353-0.cdh5b1.p0.79.src.rpm ;

1, #rpm -i hadoop-2.2.0+cdh5.0.0+353-0.cdh5b1.p0.79.src.rpm at path ../SOURCES  ;after this i get the hadoop-2.2.0-cdh5.0.0-beta-1.tar.gz ,hadoop.spec and  packages;

2,# rpmbuild -bb hadoop.spec  ;  after long time get error:

[WARNING] [/opt/toolchain/protobuf-2.5.0/bin/protoc, --version] failed: java.io. IOException: Cannot run program "/opt/toolchain/protobuf-2.5.0/bin/protoc": erro r=2, No such file or directory
[ERROR] stdout: []
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ SUCCESS [19.036s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [1.233s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [3.863s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.234s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [1.772s]
[INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [4.261s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [5.284s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [2.423s]
[INFO] Apache Hadoop Common .............................. FAILURE [0.373s]
[INFO] Apache Hadoop NFS ................................. SKIPPED
[INFO] Apache Hadoop Common Project ...................... SKIPPED
[INFO] Apache Hadoop HDFS ................................ SKIPPED
[INFO] Apache Hadoop HttpFS .............................. SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED
[INFO] Apache Hadoop HDFS-NFS ............................ SKIPPED
[INFO] Apache Hadoop HDFS Project ........................ SKIPPED
[INFO] hadoop-yarn ....................................... SKIPPED
[INFO] hadoop-yarn-api ................................... SKIPPED
[INFO] hadoop-yarn-common ................................ SKIPPED
[INFO] hadoop-yarn-server ................................ SKIPPED
[INFO] hadoop-yarn-server-common ......................... SKIPPED
[INFO] hadoop-yarn-server-nodemanager .................... SKIPPED
[INFO] hadoop-yarn-server-web-proxy ...................... SKIPPED
[INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED
[INFO] hadoop-yarn-server-tests .......................... SKIPPED
[INFO] hadoop-yarn-client ................................ SKIPPED
[INFO] hadoop-yarn-applications .......................... SKIPPED
[INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED
[INFO] hadoop-mapreduce-client ........................... SKIPPED
[INFO] hadoop-mapreduce-client-core ...................... SKIPPED
[INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SKIPPED
[INFO] hadoop-yarn-site .................................. SKIPPED
[INFO] hadoop-yarn-project ............................... SKIPPED
[INFO] hadoop-mapreduce-client-common .................... SKIPPED
[INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED
[INFO] hadoop-mapreduce-client-app ....................... SKIPPED
[INFO] hadoop-mapreduce-client-hs ........................ SKIPPED
[INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED
[INFO] hadoop-mapreduce-client-hs-plugins ................ SKIPPED
[INFO] Apache Hadoop MapReduce Examples .................. SKIPPED
[INFO] hadoop-mapreduce .................................. SKIPPED
[INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED
[INFO] Apache Hadoop Distributed Copy .................... SKIPPED
[INFO] Apache Hadoop Archives ............................ SKIPPED
[INFO] Apache Hadoop Rumen ............................... SKIPPED
[INFO] Apache Hadoop Gridmix ............................. SKIPPED
[INFO] Apache Hadoop Data Join ........................... SKIPPED
[INFO] Apache Hadoop Extras .............................. SKIPPED
[INFO] Apache Hadoop Pipes ............................... SKIPPED
[INFO] Apache Hadoop Tools Dist .......................... SKIPPED
[INFO] Apache Hadoop Tools ............................... SKIPPED
[INFO] Apache Hadoop Distribution ........................ SKIPPED
[INFO] Apache Hadoop Client .............................. SKIPPED
[INFO] Apache Hadoop Mini-Cluster ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.102s
[INFO] Finished at: Tue Feb 18 01:35:27 CST 2014
[INFO] Final Memory: 64M/247M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "fuse" could not be activated because it does no t exist.
[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:2.2.0-cdh5 .0.0-beta-1:protoc (compile-protoc) on project hadoop-common: org.apache.maven.p lugin.MojoExecutionException: 'protoc --version' did not return a version -> [He lp 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch.
[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 rea d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hadoop-common
error: Bad exit status from /var/tmp/rpm-tmp.1jROnf (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.1jROnf (%build)

 

but i do:

[root@rpm SPECS]# protoc --version
libprotoc 2.5.0

 

ptotoc :normally;

 

i install protoc at path  :/opt/protoc/bin/protoc

in /etc/profile:

export PROTOC_HOME=/opt/protoc
export PATH=$PATH:$PROTOC_HOME/bin

 

protoc is corectly:

why errror :

 'protoc --version' did not return a version -> [He lp 1]    ,i truly did not understand! why ???

 

Don't have an account?
Coming from Hortonworks? Activate your account here