hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qiang Tian (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-11406) ExportSnapshot#run better catch Throwable for ExportSnapshot#runCopyJob
Date Tue, 24 Jun 2014 09:55:24 GMT
Qiang Tian created HBASE-11406:
----------------------------------

             Summary: ExportSnapshot#run better catch Throwable for ExportSnapshot#runCopyJob
                 Key: HBASE-11406
                 URL: https://issues.apache.org/jira/browse/HBASE-11406
             Project: HBase
          Issue Type: Improvement
          Components: snapshots
            Reporter: Qiang Tian
            Assignee: Qiang Tian
            Priority: Trivial


ExportSnapshot#run better catch Throwable for ExportSnapshot#runCopyJob since runCopyJob involves
hadoop and mapreduce. other errors could be thrown, catching them like below at first place
is helpful for error handling and problem identification.

14/06/24 18:39:30 ERROR snapshot.ExportSnapshot: Snapshot export failed
java.lang.NoSuchMethodError: org/apache/hadoop/mapred/JobTracker.getAddress(Lorg/apache/hadoop/conf/Configuration;)Ljava/net/InetSocketAddress;
        at org.apache.hadoop.mapred.JobTrackerClientProtocolProvider.create(JobTrackerClientProtocolProvider.java:44)
        at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:95)
        at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:82)
        at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:75)
        at org.apache.hadoop.hbase.mapreduce.JobUtil.getStagingDir(JobUtil.java:54)
        at org.apache.hadoop.hbase.snapshot.ExportSnapshot.getInputFolderPath(ExportSnapshot.java:541)
        at org.apache.hadoop.hbase.snapshot.ExportSnapshot.runCopyJob(ExportSnapshot.java:609)
        at org.apache.hadoop.hbase.snapshot.ExportSnapshot.run(ExportSnapshot.java:776)
        at org.apache.hadoop.hbase.backup.BackupCopier.copy(BackupCopier.java:248)
        at org.apache.hadoop.hbase.backup.BackupHandler.snapshotCopy(BackupHandler.java:559)
        at org.apache.hadoop.hbase.backup.BackupHandler.call(BackupHandler.java:141)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
        at java.util.concurrent.FutureTask.run(FutureTask.java:149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
        at java.lang.Thread.run(Thread.java:738)




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message