我在两个节点集群上使用Hadoop-2.2.0,hadoop配置正确且工作正常,现在我正在尝试安装sqoop 2(sqoop-1.99.3-bin-hadoop200)并尝试访问sqoop 2 web UI(如localhost:12000)得到以下内容。
Apache Sqoop ROOT
当尝试访问cloudera.com:12000/sqoop/version时,我会得到关注 HTTP状态404 - 当我在sqoop客户端中使用它时
[stratapps@cloudera2 ~]$ sqoop.sh client
Sqoop home directory: /usr/local/sqoop2
Sqoop Shell: Type 'help' or '\h' for help.
sqoop:000> set server --host cloudera.com --port 12000 --webapp sqoop
Server is set successfully
sqoop:000> show version --all
client version:
Sqoop 1.99.3 revision 2404393160301df16a94716a3034e31b03e27b0b
Compiled by mengweid on Fri Oct 18 14:15:53 EDT 2013
Exception has occurred during processing command
Exception: com.sun.jersey.api.client.UniformInterfaceException Message: GET http://cloudera.com:12000/sqoop/version returned a response status of 404 Not Found
我的common.loader的catelina.proparties文件看起来像
common.loader=
${catalina.base}/lib,
${catalina.base}/lib/*.jar,
${catalina.home}/lib,
${catalina.home}/lib/*.jar,
${catalina.home}/../lib/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/common/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/common/lib/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/hdfs/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/hdfs/lib/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/mapreduce/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/mapreduce/lib/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/tools/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/tools/lib/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/yarn/*.jar,
/usr/local/hadoop/hadoop-2.2.0/share/hadoop/yarn/lib/*.jar
我的Sqoop.proprties文件org.apache.sqoop.submission.engine.mapreduce.configuration.director
y看起来像
# Hadoop configuration directory
org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/usr/local/hadoop/hadoop-2.2.0/etc/hadoop
请分享您的意见我对此有很多关注,但是找不到任何解决方案。
三江源, Malleshwar
答案 0 :(得分:0)
为什么要将sqoop服务器的主机名设置为cloudera.com?使用机器的主机地址,其中sqoop服务器正在运行。如果您使用的是单台计算机,请将cloudera.com更改为localhost。