EsgynDB Troubleshooting-Backup location is invalid

2022-06-30 00:00:00 专区 订阅 备份 付费 目录

现象

EsgynDB在做备份集import的时候报错“Backup location is invalid”,具体错误信息如下,

SQL>import backup from location 'hdfs://172.31.234.16:8020/tmp/fulldb12parallel',tag 'full1133';

*** ERROR[5050] IMPORT BACKUP command could not be completed. Reason: Error returned from exportOrImportBackup method. See next error for details. [2019-07-04 11:33:34]
*** ERROR[8448] Unable to access Hbase interface. Call to ExpHbaseInterface::exportOrImportBackup returned error HBASE_EXPORT_IMPORT_BACKUP_ERROR(727). Cause: java.io.IOException: java.io.IOException: Backup location is invalid
org.apache.hadoop.hbase.pit.BackupRestoreClient.importBackup(BackupRestoreClient.java:4488)
org.apache.hadoop.hbase.pit.BackupRestoreClient.exportOrImportBackup(BackupRestoreClient.java:4517) Caused by
java.io.IOException: Backup location is invalid
org.apache.hadoop.hbase.pit.BackupRestoreClient.importBackup(BackupRestoreClient.java:4396)
org.apache.hadoop.hbase.pit.BackupRestoreClient.exportOrImportBackup(BackupRestoreClient.java:4517). [2019-07-04 11:33:34]

解决
“Backup location is invalid”意思是备份目录不存在,于是查看hdfs://172.31.234.16:8020/tmp/fulldb12parallel是否存在,发现此目录存在,其下面的子目录名称为"full20190702_00212428826064850102"

[trafodion@cs02 ~]$ hadoop fs -ls hdfs://172.31.234.16:8020/tmp/fulldb12parallel
Found 1 items
drwxrwxrwt - trafodion supergroup 0 2019-07-03 18:12 hdfs://172.31.234.16:8020/tmp/fulldb12parallel/full20190702_00212428826064850102

由于import中的tag名称需要与备份集的目录名称保持一致,所以把上述import命令中的tag修改修改为full20190702_00212428826064850102即可。

SQL>import backup from location 'hdfs://172.31.234.16:8020/tmp/fulldb12parallel',tag 'full20190702_00212428826064850102';


————————————————
版权声明:本文为CSDN博主「post_yuan」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Post_Yuan/article/details/94617859

相关文章