cd /export/servers/
tar -zxvf /export/softwares/sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz
cd /export/servers/sqoop-1.4.6.bin__hadoop-2.0.4-alpha/conf/
mv sqoop-env-template.sh sqoop-env.sh
vi sqoop-env.sh
export HADOOP_COMMON_HOME= /export/servers/hadoop-2.6.0-cdh5.14.0
export HADOOP_MAPRED_HOME= /export/servers/hadoop-2.6.0-cdh5.14.0
export HIVE_HOME= /export/servers/hive-1.1.0-cdh5.14.0
cd /export/servers/sqoop-1.4.6.bin__hadoop-2.0.4-alpha/lib
cp /export/servers/hive-1.1.0-cdh5.14.0/lib/mysql-connector-java-5.1.38.jar
验证启动
sqoop list-databases --connect jdbc:mysql://192.168.100.13:3306/ --username root --password 123456;