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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -