Sqoop
一、sqoop安装部署
官方地址:http://sqoop.apache.org/
(1)上传并解压包
(2)修改配置文件并在最下面添加如下内容
mv sqoop-env-template.sh sqoop-env.sh
export HADOOP_COMMON_HOME=/usr/local/hadoop-2.7.2
export HADOOP_MAPRED_HOME=/usr/local/hadoop-2.7.2
export HIVE_HOME=/usr/local/hive-1.2.1
export ZOOKEEPER_HOME=/usr/local/zookeeper-3.4.10
export ZOOCFGDIR=/usr/local/zookeeper-3.4.10
export HBASE_HOME=/usr/local/hbase-1.3.1
(3)将mysql驱动添加到lib中
cp /usr/local/hive-1.2.1/lib/mysql-connector-java-5.1.27-bin.jar ./lib/
(4)验证Sqoop
bin/sqoop help
(5)测试Sqoop是否能够成功连接数据库
bin/sqoop list-databases --connect jdbc:mysql://hadoop114:3306/ --username root --password 199032
来源:CSDN
作者:天道有情战天下
链接:https://blog.csdn.net/wokoone/article/details/104117453