Support Questions
Find answers, ask questions, and share your expertise

hbase export


hbase export




I now have a problem about hbase data export.


If we have two hadoop system with different network segment,and now we will copy one hbase table which in cluster1(cloudera system) to cluster2(cloudera systen).


I try the command:"hbase org.apache.hadoop.hbase.mapeduce.Export 'test' hbase123" .


The application message says "job successfully",but I can't find the export file.


How can I copy the hbase data?


Re: hbase export

Master Guru
Where are you looking for the output data directory? Per your command,
you've asked it to prepare it in a user-relative directory of 'hbase123',
which could be under your HDFS /user/username/hbase123 directory.

If you want a more explicit path passed, you may specify it as so:

hbase org.apache.hadoop.hbase.mapreduce.Export 'test' /tmp/hbase123

P.s. Export job prepares a directory consisting 1 or more files of your
table's data. It does not prepare a single file.