首页 > 其他 > 详细

sqoop 初用

时间:2015-10-29 14:45:23      阅读:235      评论:0      收藏:0      [点我收藏+]

http://blog.csdn.net/dbanote/article/details/8907650

 

目前版本的Sqoop中,使用自由形式查询导入,只提供简单的查询,没有复杂的和“OR”条件查询在where子句中。

http://blog.csdn.net/niityzu/article/details/42835273

 

sqoop list-databases --connect jdbc:mysql://54.75.233.199:3306/ --username greenwave --password green4irvine

sqoop import --connect jdbc:mysql://54.75.233.199:3306/gwr --username greenwave --password green4irvine --table AccountStats -m 1

sqoop import --connect jdbc:mysql://54.75.233.199:3306/gwr --username greenwave --password green4irvine --split-by Period -e ‘select s.*, a.UtilityAccountID from AccountStats s, Account a where a.AccountID=s.AccountID and $CONDITIONS‘ --target-dir /data -m 2

m 表示mapreduce进程数

 

sqoop 初用

原文:http://www.cnblogs.com/dataclimber/p/4920443.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!