下载Sqoop
下载地址:https://archive.apache.org/dist/sqoop/
安装Sqoop
将Sqoop包上传,这里使用了Xftp
进入Sqoop安装包目录,安装
tar -zxvf sqoop-1.4.7.bin__hadoop-2.6.0.tar.gz
为了方便,可以对Sqoop目录重命名
mv sqoop-1.4.7.bin__hadoop-2.6.0 sqoop
配置环境变量
vim /etc/profile
export SQOOP_HOME=/opt/sqoop
export PATH=$PATH:$SQOOP_HOME/bin
source /etc/profile
测试,查看Sqoop版本
sqoop version
配置Sqoop
拷贝Sqoop配置文件并重命名
cp $SQOOP_HOME/conf/sqoop-env-template.sh $SQOOP_HOME/conf/sqoop-env.sh
编辑配置文件
vim $SQOOP_HOME/conf/sqoop-env.sh
取消注释,并修改如下配置,如果安装了Hbase,zookeeper也可以配置上
export HADOOP_COMMON_HOME=/opt/hadoop
export HADOOP_MAPRED_HOME=/opt/hadoop
export HIVE_HOME=/opt/hive
重新加载配置文件
source $SQOOP_HOME/conf/sqoop-env.sh
标签:Sqoop,配置,sqoop,hadoop,export,下载安装,SQOOP,HOME
From: https://www.cnblogs.com/lgjb/p/17297681.html