HBase 表數據 導入導出

將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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章