ubuntu 16.04 Sqoop 安装
1.下载:https://mirrors.tuna.tsinghua.edu.cn/apache/sqoop/1.4.6/
sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz
2.解压
3.修改文件名+给文件夹附权限
4.修改配置文件sqoop-env.sh
cd /usr/local2/sqoop/conf
cat sqoop-env-template.sh >> sqoop-env.sh
vim sqoop-env.sh
5.修改环境变量:加入以下的内容 :vim ~/.bashrc
export SQOOP_HOME=/usr/local/sqoop
export PATH=$PATH:$SQOOP_HOME/bin
export CLASSPATH=$CLASSPATH:$SQOOP_HOME/lib
source ~/.bashrc
6.将mysql驱动包拷贝到$SQOOP_HOME/lib
cp ./mysql-connector-java-5.1.44-bin.jar /usr/local2/sqoop/lib
7.测试与MySQL的连接
service mysql start
如果出现MySQL数据库里的数据库名称时,表示连接成功