Reply
New Contributor
Posts: 5
Registered: ‎11-16-2016

hbase export

hello 

 

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?

Posts: 1,491
Kudos: 247
Solutions: 226
Registered: ‎07-31-2013

Re: hbase export

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.
Backline Customer Operations Engineer
Announcements