sqoop import --connect jdbc:mysql://192.168.42.1:3306/dsj?serverTimezone=UTC
–username root -P
–table test4
–hbase-table mysql_Hbase
–column-family stu_info
–hbase-create-table
–hbase-row-key id
-m 1
–table : 源数据表 --> MySQL的数据表
– hbase-table : 目标数据表 --> hbase创建的数据表
–column-family : 列族名
– hbase-create-table : 创建hbase表
–hbase-row-key : 行键
-m : 允许传输表的最大数量 hadoop执行命令 执行结果如下
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)