From 81937df3bb428b19a57237a7f92ac00fb7c8f2ce Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Sat, 2 Jun 2018 18:11:08 -0400 Subject: [PATCH] HBASE-20579 Include original exception in wrapped exception Signed-off-by: Ted Yu --- .../java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 f75a479a7dc..93b8ab5d97f 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 @@ -877,7 +877,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool { fs.setOwner(path, filesUser, filesGroup); } catch (IOException e) { throw new RuntimeException( - "set owner for file " + path + " to " + filesUser + ":" + filesGroup + " failed"); + "set owner for file " + path + " to " + filesUser + ":" + filesGroup + " failed", e); } }, conf); } @@ -893,7 +893,7 @@ public class ExportSnapshot extends AbstractHBaseTool implements Tool { fs.setPermission(path, perm); } catch (IOException e) { throw new RuntimeException( - "set permission for file " + path + " to " + filesMode + " failed"); + "set permission for file " + path + " to " + filesMode + " failed", e); } }, conf); }