您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 公司方案 > hadoop2.5.1搭建(二)
第一篇主要是整体的步骤,其实中间遇到很多问题,第二篇将遇到的问题全部列举下来:1.1包不能加载警告WARNutil.NativeCodeLoader:Unabletoloadnative-hadooplibraryforyourplatform...usingbuiltin-javaclasseswhereapplicablehadoop2.5.1官网上提供的已经是64位操作系统版本,但是仍然报这个错误1.1.1测试本地库[root@cluster3~]#exportHADOOP_ROOT_LOGGER=DEBUG,console[root@cluster3script]#hadoopfs-text/usr/local/script/hdfile1.txt14/11/0110:58:15DEBUGutil.NativeCodeLoader:Failedtoloadnative-hadoopwitherror:java.lang.UnsatisfiedLinkError:/usr/local/hadoop/hadoop-2.5.1/lib/native/libhadoop.so.1.0.0:/lib64/libc.so.6:version`GLIBC_2.12'notfound(requiredby/usr/local/hadoop/hadoop-2.5.1/lib/native/libhadoop.so.1.0.0)14/11/0110:58:15DEBUGutil.NativeCodeLoader:java.library.path=/usr/local/hadoop/hadoop-2.5.1/lib/native14/11/0110:58:15WARNutil.NativeCodeLoader:Unabletoloadnative-hadooplibraryforyourplatform...usingbuiltin-javaclasseswhereapplicable14/11/0110:58:15DEBUGsecurity.JniBasedUnixGroupsMappingWithFallback:Fallingbacktoshellbased[root@cluster1lib64]#ll/lib64/libc.so.6lrwxrwxrwx1rootroot11Oct3117:27/lib64/libc.so.6-libc-2.5.so可以看到上边要求的是glibc_2.12,所以需要升级glibc1.1.2升级glibc下载glibcwget下载glibc-linuxthreadswget解压$tar-jxvfglibc-2.12.tar.bz2$cdglibc-2.12$tar-jxvf../glibc-linuxthreads-2.5.tar.bz2$cd..$exportCFLAGS=-g-O2./glibc-2.12.2/configure--prefix=/usr--disable-profile--enable-add-ons--with-headers=/usr/include--with-binutils=/usr/bincheckingforsymlinksin/usr/include...okrunningconfigurefragmentfornptl/sysdeps/x86_64checkingfor.cfi_personalityand.cfi_lsdapseudo-ops...noconfigure:error:assemblertooold,.cfi_personalitysupportmissing$make#makeinstall........................................stubs[$2]=1;}\END{for(sinstubs)print#define__stub_s}'/usr/local/soft/hesiod/stubsTmv-f/usr/local/soft/hesiod/stubsT/usr/local/soft/hesiod/stubsmake[2]:Leavingdirectory`/usr/local/soft/glibc-2.14/hesiod'makesubdir=sunrpc-Csunrpc..=../subdir_installmake[2]:Enteringdirectory`/usr/local/soft/glibc-2.14/sunrpc'/usr/bin/install-c-m644rpc/netdb.h/usr/include/rpc/netdb.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/bootparam_prot.h/usr/include/rpcsvc/bootparam_prot.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/nlm_prot.h/usr/include/rpcsvc/nlm_prot.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/rstat.h/usr/include/rpcsvc/rstat.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/yppasswd.h/usr/include/rpcsvc/yppasswd.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/klm_prot.h/usr/include/rpcsvc/klm_prot.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/rex.h/usr/include/rpcsvc/rex.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/sm_inter.h/usr/include/rpcsvc/sm_inter.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/mount.h/usr/include/rpcsvc/mount.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/rusers.h/usr/include/rpcsvc/rusers.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/spray.h/usr/include/rpcsvc/spray.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/nfs_prot.h/usr/include/rpcsvc/nfs_prot.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/rquota.h/usr/include/rpcsvc/rquota.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/rpcsvc/key_prot.h/usr/include/rpcsvc/key_prot.h/usr/bin/install-c-m644../sysdeps/unix/sysv/linux/nfs/nfs.h/usr/include/nfs/nfs.h/usr/bin/install-c-m644/usr/local/soft/sunrpc/librpcsvc.a/usr/lib64/librpcsvc.a/usr/bin/install-c-m644etc.rpc/etc/rpc/usr/bin/install-c/usr/local/soft/sunrpc/rpcgen/usr/bin/rpcgen.newmv-f/usr/bin/rpcgen.new/usr/bin/rpcgen(cd/usr/local/soft/sunrpc/.;/usr/bin/objdump-hauth_none.osauthuxprot.osbindrsvprt.osclnt_raw.osclnt_simp.osrpc_dtable.osgetrpcport.ospmap_clnt.ospm_getmaps.ospmap_prot.ospmap_prot2.ospmap_rmt.osrpc_prot.osrpc_common.osrpc_cmsg.ossvc_auth.ossvc_authux.ossvc_raw.ossvc_simple.osxdr_float.osxdr_rec.ospublickey.osauthdes_prot.osdes_crypt.osdes_impl.osdes_soft.oskey_prot.osopenchild.osrtime.ossvcauth_des.osclnt_unix.ossvc_unix.oscreate_xid.osauth_des.osauth_unix.osclnt_gen.osclnt_perr.osclnt_tcp.osclnt_udp.osget_myaddr.oskey_call.osnetname.ospm_getport.osrpc_thread.ossvc.ossvc_tcp.ossvc_udp.osxcrypt.osxdr_array.osxdr.osxdr_intXX_t.osxdr_mem.osxdr_ref.osxdr_sizeof.osxdr_stdio.ossvc_run.osrpc_main.orpc_hout.orpc_cout.orpc_parse.orpc_scan.orpc_util.orpc_svcout.orpc_clntout.orpc_tblout.orpc_sample.oxbootparam_prot.oxnlm_prot.oxrstat.oxyppasswd.oxklm_prot.oxrex.oxsm_inter.oxmount.oxrusers.oxspray.oxnfs_prot.oxrquota.oxkey_prot.o)|\gawk'/\.gnu\.glibc-stub\./{\sub(/\.gnu\.glibc-stub\./,,$2);\stubs[$2]=1;}\END{for(sinstubs)print#define__stub_s}'/usr/local/soft/sunrpc/stubsTmv-f/usr/local/soft/sunrpc/stubsT/usr/local/soft/sunrpc/stubsmake[2]:Leavingdirectory`/usr/local/soft/glibc-2.14/sunrpc'makesubdir=nis-Cnis..=../subdir_installmake[2]:Enteringdirectory`/usr/local/soft/glibc-2.14/nis'/usr/bin/install-c/usr/local/soft/nis/libnsl.so/lib64/libnsl-2.14.so.newmv-f/lib64/libnsl-2.14.so.new/lib64/libnsl-2.14.soecholibnsl-2.14.so/l
本文标题:hadoop2.5.1搭建(二)
链接地址:https://www.777doc.com/doc-3343337 .html