码迷,mamicode.com
首页 > 其他好文 > 详细

sqoop基本 操作

时间:2015-08-17 15:33:44      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

列出 hive的 所有库 

sqoop list-databases --connect jdbc:mysql://localhost --username hive --password hive

列出所有的表 

sqoop list-tables --connect jdbc:mysql://localhost/hive_metadata --username hive --password hive 

mysql导入到hdfs中 

sqoop import  --connect jdbc:mysql://localhost/hive_metadata --username hive -password hive --table f2b_leave_message --fields-terminated-by ‘:‘ -m 1


版权声明:本文为博主原创文章,未经博主允许不得转载。

sqoop基本 操作

标签:

原文地址:http://blog.csdn.net/u011579204/article/details/47724581

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!