tar -xvf sqoop-1.4.6.bin__hadoop-0.23.tar.gz
mv sqoop-1.4.6.bin__hadoop-0.23 …/install/sqoop
cp mysql-connector-java-5.1.38.jar …/install/sqoop/lib/
修改配置文件
cp sqoop-env-template.sh sqoop-env.sh
vim sqoop-env.sh
export HADOOP_COMMON_HOME=/home/hadoop/install/hadoop-2.7.4
#Set path to where hadoop-*-core.jar is available
export HADOOP_MAPRED_HOME=/home/hadoop/install/hadoop-2.7.4