1、准备环境
sqoop-1.99.7-bin-hadoop200(https://mirror.bit.edu.cn/apache/sqoop/)
2、解压
tar zxvf /opt/software/sqoop-1.99.7-bin-hadoop200.tar.gz -C /opt/module/
3、配置文件
cd /opt/module/sqoop-1.99.7/conf
org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/etc/hadoop/conf/
改为
org.apache.sqoop.submission.engine.mapreduce.configuration.directory=/opt/module/hadoop-3.2.1/etc/hadoop
(此为hadoop 路径)
4、系统环境变量
修改环境变量:vi /etc/profile
#sqoop
export SQOOP_HOME=/opt/module/sqoop-1.99.7
export PATH=$PATH:$SQOOP_HOME/bin
刷新配置:source /etc/profile