Sqoop启动报错(Please set $HADOOP_COMMON_HOME to the root)

[root@bigdata ~]# sqoop version Error:
/opt/sqoop-1.4.6/bin/../../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@bigdata conf]# cp sqoop-env-template.sh sqoop-env.sh

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

export HADOOP_COMMON_HOME=/opt/hadoop-2.7.3
#Set path to where hadoop-*-core.jar is available
export HADOOP_MAPRED_HOME=/opt/hadoop-2.7.3
#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=

添加新评论