将HBase表数据导出到hdfs的一个指定目录中,具体命令如下:
bin/hbase org.apache.hadoop.hbase.mapreduce.Export test_table file:///data/test_table
bin/hadoop fs -ls /data/test_table
去hbase中创建相应的表
create 'test_table','info'
接下来,执行导入命令。具体的命令如下:
bin/hbase org.apache.hadoop.hbase.mapreduce.Import test_copy file:///data/test_table