diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/Import.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/Import.java index d315b8124d3..8a80d15a3f3 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/Import.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/Import.java @@ -750,6 +750,6 @@ public class Import { } } - System.exit(job.waitForCompletion(true) ? 0 : 1); + System.exit(isJobSuccessful ? 0 : 1); } }