1.解压,设置环境变量SQOOP_HOME,将$SQOOP_HOME/bin加到PATH路径

2.修改$SQOOP_HOME/server/conf/catalina.properties文件中的common.loader属性,在其后增加

$HADOOP_HOME/share/hadoop/common/*.jar,
$HADOOP_HOME/share/hadoop/common/lib/*.jar,
$HADOOP_HOME/share/hadoop/yarn/*.jar,
$HADOOP_HOME/share/hadoop/hdfs/*.jar,
$HADOOP_HOME,/share/hadoop/mapreduce/*.jar

写到一行里

3.修改$SQOOP_HOME/server/conf/sqoop.properties文件org.apache.sqoop.submission.engine.mapreduce.configuration.directory属性,指向本机hadoop配置目录

4.$SQOOP_HOME/server/conf/server.xml是Tomcat的配置文件,端口什么的可以在这个文件设置

5.启动server

sqoop.sh server start

6.使用Client

sqoop.sh client

7.在sqoop shell里运行

set option --name verbose --value true

进入debug模式,打印的信息比较全