您的位置:首页 > 数据库 > MySQL

mysql load date to Hbase

2016-04-14 16:14 375 查看
一、mysql迁移数据进hbase需要配置好配置文件 用sqoop 命令进行迁移

二、

配置文件内容:

import
--connect
jdbc:mysql://172.18.32.99:3306/test
--username
root
--password
123456
-m
1
--null-string
''
--table
so_view
--columns
"date,order_id,user_id,order_amt,order_id_new"
--hbase-table
so
--column-family
o
--hbase-row-key
order_id_new

运行命令 到文件目录下执行 sqoop --options-file ./fileName

note:该方法不支持多个列族。很少此场景但是需要可以分两次抽取
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: