BLOG @ MBIOQBLOG @ MBIOQ

Web 全沾(渣)工程师一枚。博客文章以 Web 和 Linux 为主,偶尔也会发发日常的样子。

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=
本原创文章未经允许不得转载 | 当前页面:BLOG @ MBIOQ » Sqoop启动报错(Please set $HADOOP_COMMON_HOME to the root)

评论