当前位置: > Linux集群 > Hadoop >

Please set $HADOOP_COMMON_HOME to the root

时间:2014-11-04 18:11来源:linux.it.net.cn 作者:it

[root@centos2 sqoop-1.4.4.bin__hadoop-1.0.0]# bin/sqoop help
Error: /usr/lib/hadoop does not exist!
Please set $HADOOP_COMMON_HOME to the root of your Hadoop installation.

需要配置sqoop-env.sh文件

在sqoop中conf目录下新复制一个sqoop-env.sh文件:

[root@centos2 conf]# cp sqoop-env-template.sh sqoop-env.sh

修改配置sqoop-env.sh文件:

export HADOOP_COMMON_HOME=/home/hadoop/hadoop/hadoop-2.3.0

#Set path to where hadoop-*-core.jar is available
export HADOOP_MAPRED_HOME=/home/hadoop/hadoop/hadoop-2.3.0

#set the path to where bin/hbase is available
#export HBASE_HOME=

#Set the path to where bin/hive is available
#export HIVE_HOME=

#Set the path for where zookeper config dir is
#export ZOOCFGDIR=

(责任编辑:IT)
------分隔线----------------------------