问题描述
sqoop2运行showversion--all出现如下错误:sqoop:000>showversion--allclientversion:Sqoop1.99.5sourcerevision9665c01f674d69d41a6fcfffb2c0b94590f70f59CompiledbyvbasavarajonWedFeb1809:42:27PST20150[main]WARNorg.apache.hadoop.util.NativeCodeLoader-Unabletoloadnative-hadooplibraryforyourplatform...usingbuiltin-javaclasseswhereapplicableExceptionhasoccurredduringprocessingcommandException:org.apache.sqoop.common.SqoopExceptionMessage:CLIENT_0000:Anunknownerrorhasoccurredsqoop:000>启动sqoop.shserverstart显示如下:Sqoophomedirectory:/usr/sqoop-1.99.5-bin-hadoop200SettingSQOOP_HTTP_PORT:12000SettingSQOOP_ADMIN_PORT:12001UsingCATALINA_OPTS:AddingtoCATALINA_OPTS:-Dsqoop.http.port=12000-Dsqoop.admin.port=12001UsingCATALINA_BASE:/usr/sqoop-1.99.5-bin-hadoop200/serverUsingCATALINA_HOME:/usr/apache-tomcat-7.0.63UsingCATALINA_TMPDIR:/usr/sqoop-1.99.5-bin-hadoop200/server/tempUsingJRE_HOME:/usr/java/jdk1.7.0_79UsingCLASSPATH:/usr/sqoop-1.99.5-bin-hadoop200/server/bin/tomcat-juli.jar:/usr/apache-tomcat-7.0.63/bin/bootstrap.jar这是我的catilina.properties配置:#Hadoop1example(basedondefaultBigToplocations):#common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/../lib/*.jar,/usr/lib/hadoop/*.jar##Hadoop2example(basedondefaultBigToplocations):#common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/../lib/*.jar,/usr/lib/hadoop/*.jar,/usr/lib/hadoop/lib/*.jar,/usr/lib/hadoop-hdfs/*.jar,/usr/lib/hadoop-hdfs/lib/*.jar,/usr/lib/hadoop-mapreduce/*.jar,/usr/lib/hadoop-mapreduce/lib/*.jar,/usr/lib/hadoop-yarn/*.jar,/usr/lib/hadoop-yarn/lib/*.jar#common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/../lib/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/common/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/common/lib/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/hdfs/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/hdfs/lib/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/mapreduce/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/mapreduce/lib/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/tools/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/tools/lib/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/yarn/*.jar,/usr/hadoop/hadoop-2.6.0/share/hadoop/yarn/lib/*.jar这是我的/etc/profile配置:exportLD_LIBRARY_PATH=/usr/hadoop/hadoop-2.6.0/share/hadoop/*exportSQOOP_HOME=/usr/sqoop-1.99.5-bin-hadoop200exportCATALINA_BASE=/usr/apache-tomcat-7.0.63exportCATALINA_HOME=$CATALINA_BASEexportTOMCAT_HOME=$CATALINA_BASEexportHIVE_INSTALL=/usr/apache-hive-1.0.1-binexportHADOOP_HOME=/usr/hadoop/hadoop-2.6.0exportJAVA_HOME=/usr/java/jdk1.7.0_79exportCATALINA_BASE=$SQOOP_HOME/serverexportLOGDIR=$SQOOP_HOME/logs/exportCLASSPATH=.:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar:${HADOOP_HOME}/hadoop-common-2.6.0.jar:${HADOOP_HOME}/hadoop-mapreduce-client-core-2.6.0.jar:{HIVE_INSTALL}/lib:{HIVE_INSTALL}/lib/derby-10.10.1.1.jar:${TOCMAT_HOME}/lib/servet-api.jar:exportPATH=/usr/java/jdk1.7.0_79/bin:/usr/hadoop/hadoop-2.6.0/bin:/usr/hadoop/hadoop-2.6.0/sbin:/usr/sqoop-1.99.5-bin-hadoop200/bin:${HIVE_INSTALL}/bin:$PATH因为不知道是不是和tomcat配置冲突了所以都贴出来了~请大神们帮忙解决一下~THK
解决方案
解决方案二:
楼主我也遇到了这个问题,请问你解决了吗,求解
解决方案三:
真不懂这些啊。
解决方案四:
/hadoop/sqoop-1.99.6/server/logs/catalina.out有错误原因,你看了错误原因如果还不能解决,你真是个棒锤。