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

sqoop1.99.3操作,导入数据全纪录

时间:2016-08-27 23:44:59      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:sqoop mysql hadoop

sqoop的1.99.7版本有问题,请千万不要用


需求:将hive数据库中的TBLS表导出到HDFS之上;

 $SQOOP2_HOME/bin/sqoop.sh client
sqoop:000> set server --host 127.0.0.1 --port 12000 --webapp sqoop

创建connection:

sqoop:000> create connection --cid 1

Creating connection for connector with id 1

Please fill following values to create new connection object

Name: TBLS_IMPORT_DEMO

Connection configuration

JDBC Driver Class: com.mysql.jdbc.Driver

JDBC Connection String: jdbc:mysql://127.0.0.1:3306/hive

Username: root

Password: ****

JDBC Connection Properties:

There are currently 0 values in the map:

entry#

Security related configuration options

Max connections: 10

New connection was successfully created with validation status FINE and persistent id 10


sqoop1.99.3操作,导入数据全纪录

标签:sqoop mysql hadoop

原文地址:http://36006798.blog.51cto.com/988282/1843340

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