hbase buckload写入

hbase buckload写入,第1张

hbase buckload写入

source bigdata_env
kinit hbase
hdfs DFS -mkdir /tmp/hbase/datadirimport
hdfs DFS -put /opt/bigdata/file400g.txt /tmp/hbase/datadirimport
hbase shell
create ‘importtable’ ,{name => ‘f1’,compression=>‘snappy’}
touch hbase/hbase/conf/import.xml
hbase hadoop.hbase.tools.buckload.import data -d import.skip.bad.lines=true -d import.separator=’,’ -dimport.bad.lines.output=/tmp/badline -dimport.hfile.output=/tmp/hfile hbase/hbase/import.xml importtable /tmp/hbase/datadirimport
hbase org.Apache.hadoop.hbase.map reduce.loadincrementalhfiles /tmp/hfile importtable
hbase com.huawei.hadoop.hbase.tools.buckload.rowcounter ‘importtable’

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5709597.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存