Search code examples
hadoophbase

how can I export hbase table using starttime endtime?


I am trying to perform incremental backup , I have already checked Export option but couldn't figure out start time option.Also please suggest on CopyTable , how can I restore.


Solution

  • Found out the issue here, the hbase documentation says

    hbase org.apache.hadoop.hbase.mapreduce.Export <tablename> <outputdir> [<versions> [<starttime> [<endtime>]]]

    so after trying a few of combinations, I found out that it is converted to a real example like below code

    hbase org.apache.hadoop.hbase.mapreduce.Export test /bkp_destination/test 1369060183200 1369063567260023219

    where test is tablename, /bkp_destination/test is backup destination folder, 1369060183200 is starttime, 1369063567260023219 is endtime