You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by Ask Stack <as...@yahoo.com> on 2013/04/22 21:43:05 UTC
how to compile hadoop cdh3u4 rpm ?
Hello
I downloaded the source rpm at http://archive.cloudera.com/redhat/cdh/3u4/SRPMS/ and tried to build the rpm with
rpmbuild -bb --target noarch hadoop.spec. I am building it on a fedora 18 64bit machine.
I patched two files documented at
https://issues.apache.org/jira/browse/HADOOP-8329
https://issues.apache.org/jira/browse/MAPREDUCE-4383
But I am stuck at
compile-c++-examples-pipes:
[exec] depbase=`echo impl/wordcount-simple.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
[exec] g++ -DHAVE_CONFIG_H -I. -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/src/examples/pipes -I./impl -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2 -MT impl/wordcount-simple.o -MD -MP -MF $depbase.Tpo -c -o impl/wordcount-simple.o /home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/src/examples/pipes/impl/wordcount-simple.cc &&\
[exec] mv -f $depbase.Tpo $depbase.Po
[exec] /bin/sh ./libtool --tag=CXX --mode=link g++ -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2 -o wordcount-simple impl/wordcount-simple.o -L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib -L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib -lhadooppipes -lhadooputils -lnsl -lssl -lpthread
[exec] libtool: link: g++ -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2 -o wordcount-simple impl/wordcount-simple.o -L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib -lhadooppipes -lhadooputils -lnsl -lssl -lpthread
[exec] /usr/bin/ld: /home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib/libhadooppipes.a(HadoopPipes.o): undefined reference to symbol 'BIO_ctrl@@libcrypto.so.10'
[exec] /usr/bin/ld: note: 'BIO_ctrl@@libcrypto.so.10' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line
[exec] /lib64/libcrypto.so.10: could not read symbols: Invalid operation
[exec] collect2: error: ld returned 1 exit status
[exec] make: *** [wordcount-simple] Error 1
Does anyone know how to build this version of hadoop? Thanks.
Re: how to compile hadoop cdh3u4 rpm ?
Posted by Ask Stack <as...@yahoo.com>.
i figured it out. add a conf file /etc/ld.so.conf.d/
cat /etc/ld.so.conf.d/hadoop.conf
/usr/lib64
----- Original Message -----
From: Ask Stack <as...@yahoo.com>
To: "user@accumulo.apache.org" <us...@accumulo.apache.org>
Cc:
Sent: Monday, April 22, 2013 3:43 PM
Subject: how to compile hadoop cdh3u4 rpm ?
Hello
I downloaded the source rpm at http://archive.cloudera.com/redhat/cdh/3u4/SRPMS/ and tried to build the rpm with
rpmbuild -bb --target noarch hadoop.spec. I am building it on a fedora 18 64bit machine.
I patched two files documented at
https://issues.apache.org/jira/browse/HADOOP-8329
https://issues.apache.org/jira/browse/MAPREDUCE-4383
But I am stuck at
compile-c++-examples-pipes:
[exec] depbase=`echo impl/wordcount-simple.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
[exec] g++ -DHAVE_CONFIG_H -I. -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/src/examples/pipes -I./impl -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2 -MT impl/wordcount-simple.o -MD -MP -MF $depbase.Tpo -c -o impl/wordcount-simple.o /home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/src/examples/pipes/impl/wordcount-simple.cc &&\
[exec] mv -f $depbase.Tpo $depbase.Po
[exec] /bin/sh ./libtool --tag=CXX --mode=link g++ -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2 -o wordcount-simple impl/wordcount-simple.o -L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib -L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib -lhadooppipes -lhadooputils -lnsl -lssl -lpthread
[exec] libtool: link: g++ -Wall -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -I/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/include -g -O2 -o wordcount-simple impl/wordcount-simple.o -L/home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib -lhadooppipes -lhadooputils -lnsl -lssl -lpthread
[exec] /usr/bin/ld: /home/qchen/rpmbuild/BUILD/hadoop-0.20.2-cdh3u4/build/c++/Linux-amd64-64/lib/libhadooppipes.a(HadoopPipes.o): undefined reference to symbol 'BIO_ctrl@@libcrypto.so.10'
[exec] /usr/bin/ld: note: 'BIO_ctrl@@libcrypto.so.10' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line
[exec] /lib64/libcrypto.so.10: could not read symbols: Invalid operation
[exec] collect2: error: ld returned 1 exit status
[exec] make: *** [wordcount-simple] Error 1
Does anyone know how to build this version of hadoop? Thanks.