标签:4.6 驱动 oop 数据源 man connect psk use help
1.下载 sqoop-1.4.6-cdh5.7.6.tar.gz
2.在linux中进行安装, tar -zxvf /opt/tools/spark-1.6.1-bin-2.6.0-cdh5.7.6.tgz -C /opt/cdh-5.7.6/
3.进入sqoop安装目录,我装在/opt/cdh-5.7.6/sqoop-1.4.6-cdh5.7.6目录中
4.进入conf目录,为确保数据源,复制sqoop-env.template.cmd 同时重命名为sqoop-env.sh启用配置,cp sqoop-env.template.cmd sqoop-env.sh
5.在sqoop-env.sh中添加配置:
6.将jdbc连接驱动放到sqoop的lib目录下,cp /opt/tools/mysql-connector-java-5.1.27-bin.jar lib/
7.将json包放入sqoop的lib中,cp /opt/tools/java-json.jar lib/
8.测试:
sqoop help
usage: sqoop COMMAND [ARGS]
当前MySQL中有哪些可用的数据库
bin/sqoop list-databases --connect jdbc:mysql://bigdata-hadoop001.hpsk.com:3306 --username root --password 123456
标签:4.6 驱动 oop 数据源 man connect psk use help
原文地址:http://www.cnblogs.com/lsj100/p/7532899.html