I am unable to take backup for Hbase. I am trying below command inside bin directory of hbase
./hbase backup create full hdfs://192.168.0.1:9000/hbase_1 -w 3
But i get "Error: Could not find or load main class backup" as error. Do I need to add any extra jar file for backup? I am using hbase 1.2.6.
Any help on this would be appreciated.
Are you using Hortonworks Distribution/HDP Sandbox? If not you will not find the "backup" functionality in HBase 1.x lineup. Hortonworks has backported this functionality in its HDP and hence made it available with the "newer" versions[read 1.x] of HBase. Apache distribution of HBase had it in the previous releases but don't have it in the new release.
If you need backup functionality, I would recommend using Hortonworks Distribution of Hadoop [HDP] versions 2.5+.
@Rahul Thanks for the response. I am using hbase as standalone and not the HDP Sandbox. Would really appreciate if you could help me with some alternative for HBase backup when used in standalone.
As mentioned by Josh, backup/restore feature is not available in HBase 1.x release. The best option you have is SNAPSHOT in current version. You can create script to take snapshot of all tables.