1、官网地址: http://sqoop.apache.org/
下载地址:https://mirrors.tuna.tsinghua.edu.cn/apache/sqoop/
解压:
tar -zxvf sqoop-1.99.7-bin-hadoop200.tar.gz -C /usr/local
2、配置环境变量,我这边修改的是 vim ~/.bash_profile
export SQOOP_HOME=/Users/zhoueming/simple/sqoop-1.99.7
export PATH=${PATH}:$SQOOP_HOME/bin:$SQOOP_HOME/server/bin:.........
3、sqoop目录下新建一个extraLib 目录
mkdir /sqoop-1.99.7/extraLib
声明一个全局变量,执行
vim ~/.bash_profile
添加一行,声明全局变量 SQOOP_SERVER_EXTRA_LIB
export SQOOP_SERVER_EXTRA_LIB=$SQOOP_HOME/extraLib
4、启动
sqoop2-server start
error:Caused by: java.lang.SecurityException: sealing violation: package org.apache.derby.impl.services.locks is sealed
原因:server/lib/server/lib/derby-10.8.2.2.jar 版本太低导致
从hive目录下拷贝derby到 /sqoop-1.99.7/server/lib/
cp /usr/local/hive-3.1.2/lib/derby-10.14.1.0.jar /usr/local//sqoop-1.99.7/server/lib/
删除sqoop下的derby-10.8.2.2.jar
rm -rf /usr/local/sqoop-1.99.7/server/lib/derby-10.8.2.2.jar
重新启动sqoop
sqoop2-server start
成功!!!!
5、启动Sqoop Client
sqoop.sh client
来源:CSDN
作者:Zsigner
链接:https://blog.csdn.net/Zsigner/article/details/104717880