From 27db1298f740b5efedf2d9a4fe5c6d4a648187f7 Mon Sep 17 00:00:00 2001 From: Chun-Hao Tang Date: Mon, 4 Sep 2017 02:58:34 +0800 Subject: [PATCH] HBASE-18746 Throw exception with job.getStatus().getFailureInfo() when ExportSnapshot fails Signed-off-by: Chia-Ping Tsai --- .../java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java index e80410fabe8..8b5af2b7305 100644 --- a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java +++ b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java @@ -826,9 +826,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool { // Run the MR Job if (!job.waitForCompletion(true)) { - // TODO: Replace the fixed string with job.getStatus().getFailureInfo() - // when it will be available on all the supported versions. - throw new ExportSnapshotException("Copy Files Map-Reduce Job failed"); + throw new ExportSnapshotException(job.getStatus().getFailureInfo()); } }