diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java index a28eb92f082..43d3e175a90 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/ExportSnapshot.java @@ -808,6 +808,7 @@ public final class ExportSnapshot extends Configured implements Tool { outputRoot = new Path(args[++i]); } else if (cmd.equals("-copy-from")) { inputRoot = new Path(args[++i]); + FSUtils.setRootDir(conf, inputRoot); } else if (cmd.equals("-no-checksum-verify")) { verifyChecksum = false; } else if (cmd.equals("-no-target-verify")) {