sqoop服务器启动失败

时间:2015-08-05 08:33:03

标签: hadoop sqoop sqoop2

我正在尝试连接到localhost上的sqoop服务器:

sqoop:000> set server --host manager --port 12000 --webapp sqoop
Server is set successfully
sqoop:000> show version -all
client version:
  Sqoop 1.99.6 source revision 07244c3915975f26f03d9e1edf09ab7d06619bb8 
  Compiled by root on Wed Apr 29 10:40:43 CST 2015
0    [main] WARN  org.apache.hadoop.util.NativeCodeLoader  - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Exception has occurred during processing command 
Exception: org.apache.sqoop.common.SqoopException Message: CLIENT_0000:An unknown error has occurred
sqoop:000> 


Port 12000 is closed

    $ netstat -na|grep 12000 

为什么会这样?

1 个答案:

答案 0 :(得分:2)

需要在目录catalina.properties内名为server/conf的文件中设置Hadoop库。在此文件中,您需要在common-loader属性中设置hadoop库路径。默认值为/usr/lib/hadoop/usr/lib/hadoop/lib。如果您在任何不同的位置都有您的hadoop库,那么将该目录指向此属性。

sqoop2-tool verify可用于验证所有sqoop服务器配置。如果成功,您可以使用sqoop2-server start启动服务器。

<强>价:
https://sqoop.apache.org/docs/1.99.6/Installation.html