Support Questions

Find answers, ask questions, and share your expertise

Hbase backup failed

avatar
Contributor

I need to take hbase full backup. i fired below command

 

hbase backup create full http://hostname:8020/hbase-backup

 

i am getting below error

 

2020-12-01 05:23:44,635 WARN [main] impl.BackupManager: Waiting to acquire backup exclusive lock for 1s
2020-12-01 05:24:44,818 WARN [main] impl.BackupManager: Waiting to acquire backup exclusive lock for 61s

 

2 REPLIES 2

avatar
Contributor

2020-12-02 05:37:06,411 WARN [main] impl.BackupManager: Waiting to acquire backup exclusive lock for 3487s
2020-12-02 05:38:06,508 WARN [main] impl.BackupManager: Waiting to acquire backup exclusive lock for 3547s
2020-12-02 05:38:59,592 ERROR [main] impl.BackupAdminImpl: There is an active session already running
Backup session finished. Status: FAILURE
2020-12-02 05:38:59,594 ERROR [main] backup.BackupDriver: Error running command-line tool
java.io.IOException: Failed to acquire backup system table exclusive lock after 3600s
at org.apache.hadoop.hbase.backup.impl.BackupManager.startBackupSession(BackupManager.java:415)
at org.apache.hadoop.hbase.backup.impl.TableBackupClient.init(TableBackupClient.java:104)
at org.apache.hadoop.hbase.backup.impl.TableBackupClient.<init>(TableBackupClient.java:81)
at org.apache.hadoop.hbase.backup.impl.FullTableBackupClient.<init>(FullTableBackupClient.java:62)
at org.apache.hadoop.hbase.backup.BackupClientFactory.create(BackupClientFactory.java:51)
at org.apache.hadoop.hbase.backup.impl.BackupAdminImpl.backupTables(BackupAdminImpl.java:595)
at org.apache.hadoop.hbase.backup.impl.BackupCommands$CreateCommand.execute(BackupCommands.java:347)
at org.apache.hadoop.hbase.backup.BackupDriver.parseAndRun(BackupDriver.java:138)
at org.apache.hadoop.hbase.backup.BackupDriver.doWork(BackupDriver.java:171)
at org.apache.hadoop.hbase.backup.BackupDriver.run(BackupDriver.java:204)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.hbase.backup.BackupDriver.main(BackupDriver.java:179)

avatar
Super Collaborator

Hello @Manoj690 

 

Thanks for contacting Cloudera Community. While taking a Full Backup, you are facing IOException while waiting on the Lock. 

 

Kindly share the Output of Command "hbase backup history" along with "list_locks" from HBase Shell. The requested details would confirm the status of any running Backup & Locks placed on the Tables. Additionally, Share the HBase Version wherein you are using the required Backup Command. 

 

- Smarak