Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there a way to rollback hbase

Tags:

hbase

Is there a way to rollback values to a previous stage at cell level (row level might work also)

I imported a file with wrong data and I just need to go back to previous stage.

like image 956
Federico Avatar asked Oct 14 '22 23:10

Federico


1 Answers

While there is no rollback, if you made no other changes at the time and are storing more than one version you could:

  • run a scan over your table using setTimeRange (just specify a range that your bad data falls into)

  • Use the data from the scan to create timestamp restricted Delete's for all the bad data.

Of course, if you're only storing one version, you're out of luck :/

like image 77
juhanic Avatar answered Oct 20 '22 04:10

juhanic