EsgynDB Troubleshooting-java.io.IOException: java.util.NoSuchElementException

phenomenon

EsgynDB doing upgrade later, found it impossible to view the backup tag, given the information as follows,

SQL>get all backup tags;

*** ERROR[5050] GET BACKUP TAGS command could not be completed. Reason: Error returned during list all backups. See next error for details. [2019-11-20 19:06:09]
*** ERROR[8448] Unable to access Hbase interface. Call to ExpHbaseInterface::listAllBackups returned error HBASE_GET_BACKUP_ERROR(731). Cause: java.io.IOException: java.io.IOException: java.io.IOException: java.util.NoSuchElementException
org.apache.hadoop.hbase.pit.BackupRestoreClient.listAllBackups(BackupRestoreClient.java:6009) Caused by 
java.io.IOException: java.io.IOException: java.util.NoSuchElementException
org.apache.hadoop.hbase.pit.SnapshotMeta.listSnapshotStartRecords(SnapshotMeta.java:2082)
org.apache.hadoop.hbase.pit.BackupRestoreClient.listAllBackups(BackupRestoreClient.java:5926) Caused by 
java.io.IOException: java.util.NoSuchElementException
org.apache.hadoop.hbase.pit.SnapshotMeta.listSnapshotStartRecords(SnapshotMeta.java:2074)
org.apache.hadoop.hbase.pit.BackupRestoreClient.listAllBackups(BackupRestoreClient.java:5926) Caused by 
java.util.NoSuchElementException
java.util.StringTokenizer.nextToken(StringTokenizer.java:349)
org.apache.hadoop.hbase.pit.SnapshotMeta.listSnapshotStartRecords(SnapshotMeta.java:2047)
org.apache.hadoop.hbase.pit.BackupRestoreClient.listAllBackups(BackupRestoreClient.java:5926). [2019-11-20 19:06:09]

solve

This error is due to not recognize the tag in the new version of the old version backup lead, so we need to clean up the old version of the tag and back up again in the new version.
Now that can not see the name tag normal, we select Remove tag directly from the underlying table and restart the DTM. Proceed as follows,

  1. Stop the database
sqstop abrupt
  1. Delete DTM related tables
disable 'TRAF_RSRVD_5:TRAFODION._DTM_.MUTATION'
disable 'TRAF_RSRVD_5:TRAFODION._DTM_.SNAPSHOT'
disable 'TRAF_RSRVD_5:TRAFODION._DTM_.LOB_META_SHADOW'
disable 'TRAF_RSRVD_5:TRAFODION._DTM_.MUTATION_SHADOW'
drop 'TRAF_RSRVD_5:TRAFODION._DTM_.MUTATION'
drop 'TRAF_RSRVD_5:TRAFODION._DTM_.SNAPSHOT'
drop 'TRAF_RSRVD_5:TRAFODION._DTM_.LOB_META_SHADOW'
drop 'TRAF_RSRVD_5:TRAFODION._DTM_.MUTATION_SHADOW'
  1. Start the database
sqstart
  1. Revalidate View tag command
SQL>get all backup tags;
Published 352 original articles · won praise 400 · views 730 000 +

Guess you like

Origin blog.csdn.net/Post_Yuan/article/details/103805229