0.安装jdk并设置环境变量,classpath
export JAVA_HOME=/usr/local/src/jdk8
export PATH=$PATH:$JAVA_HOME/bin
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
1.上传hadoop文件
2.配置hadoop环境变量
export HADOOP_HOME=/usr/local/src/hadoop-2.10.1
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
export HADOOP_LOG_DIR=$HADOOP_HOME/logs
export YARN_HOME=$HADOOP_HOME
export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
export YARN_LOG_DIR=$HADOOP_LOG_DIR
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin
3. 修改sqoop-1.4.7.jar为 hadoop-common-sqoop-1.4.7.jar并放入/usr/local/src/hadoop-2.10.1/share/hadoop/common/
4.上传sqoop
5.配置sqoop环境变量
export SQOOP_HOME=/usr/local/src/sqoop-1.4.7
export PATH=$PATH:$SQOOP_HOME/bin
6.在运行springboot的电脑上的sqoop安装目录lib下添加sqoop.1.4.7.jar文件
7.把mysql驱动放入sqoop安装目录lib下