您的位置:首页 > Web前端

How-to: transfer hbase data between two hadoop cluster

2015-07-15 18:20 501 查看
Overall: use hbase Export/Import tool
Reference: http://hbase.apache.org/book.html#tools

Steps:

At old cluster run:

hbase org.apache.hadoop.hbase.mapreduce.Export table_name hdfs://newclusterhost:port/user/chenfangfang/table_name

If you encounter issue with error "java.lang.NoClassDefFoundError: org/htrace/Trace". Please refer: How-to: resolve "java.lang.NoClassDefFoundError:
org/htrace/Trace" when hbase Export
At new cluster: create hbase table table_name
At new cluster run:

hbase org.apache.hadoop.hbase.mapreduce.Import table_name hdfs://newclusterhost:port/user/chenfangfang/table_name
Check hbase data via hbase command: hbase shell >> count 'table_name'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息