diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java index 3e43224a66a..d0b32f8efe5 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java @@ -344,7 +344,9 @@ public class TestExportSnapshot { Configuration conf = new Configuration(TEST_UTIL.getConfiguration()); conf.setBoolean(ExportSnapshot.CONF_TEST_FAILURE, true); conf.setBoolean(ExportSnapshot.CONF_TEST_RETRY, retry); - + if (!retry) { + conf.setInt("mapreduce.map.maxattempts", 3); + } // Export Snapshot Path sourceDir = TEST_UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir(); int res = ExportSnapshot.innerMain(conf, new String[] {