Created 03-29-2018 12:43 PM
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.
Created 03-29-2018 03:06 PM
The HBase backup and restore feature does not exist in any HBase 1.x release.
This feature was backported into HDP-2.5 and 2.6.
Created 03-31-2018 05:49 AM
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+.
Thanks!
Created 04-01-2018 03:22 PM
Did the answer help in the resolution of your query? Please close the thread by marking the answer as Accepted!
Created 04-02-2018 07:40 AM
@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.
Created 04-02-2018 03:33 PM
You may look the options available on HBase Documentation for backup.
Here is another link for some more details.
Created 04-02-2018 10:51 AM
You can use hbase snapshot feature to take backup of table.
Created 04-02-2018 12:06 PM
Hi @schhabra
As mentioned in above link provided by you, "HBase Snapshots allow you to take a snapshot of a table" whereas I want to take snapshot or backup of complete cluster.
Created 04-02-2018 12:58 PM
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.
Created 04-02-2018 01:02 PM
You can use "snapshot_all" command to take snapshot of all tables at a time.
Created 04-02-2018 03:01 PM
I tried using "snapshot_all" but it gives me error-:
hbase(main):002:0> snapshot_all
NameError: undefined local variable or method `snapshot_all'
Also when using help command, available command for snapshots are
Group name: snapshots
Commands: clone_snapshot, delete_all_snapshot, delete_snapshot, list_snapshots, restore_snapshot, snapshot
Created 04-02-2018 12:24 PM
Please could you do the following and retry
export CLASSPATH=$CLASSPATH:`hbase classpath`
When you navigate to /usr/hdp/current/hbase*/lib, do you find jar files?
Created 04-02-2018 03:07 PM
I have already set CLASSPATH. And yes I am able to view my jar files. What did you want me to achieve by following the above steps?