hadoop - Hbase: Migration from standalone mode to Fully distributed mode -
i want if possible migrate standalone mode distributed mode in hbase.i have data in standalone mode persist during migration. please help.
quite old question encountered same problem , solved using following steps:
in standalone mode
export table want migrate:
bin/hbase org.apache.hadoop.hbase.mapreduce.driver export table_name /local/path/table_name_backup
in pseudodistributed/distributed mode
copy table in hdfs using hadoop:
./bin/hadoop fs -copyfromlocal /local/path/table_name_backup/ table_name_backup
import data using hbase:
./bin/hbase org.apache.hadoop.hbase.mapreduce.driver import table_name table_name_backup
remove old data hdfs using hadoop:
./bin/hadoop dfs -rmr table_name_backup
u might want check number of rows before , after migration check if went according plan:
./bin/hbase org.apache.hadoop.hbase.mapreduce.driver rowcounter table_name
Comments
Post a Comment