HBASE-11327 ExportSnapshot hit stackoverflow error when target snapshotDir doesn't contain uri (Demai Ni)

This commit is contained in:
Matteo Bertozzi 2014-06-12 08:09:37 +01:00
parent 26096f363e
commit 95a7e72302
1 changed files with 1 additions and 1 deletions

View File

@ -674,7 +674,7 @@ public final class ExportSnapshot extends Configured implements Tool {
// Update the conf with the current root dir, since may be a different cluster
Configuration conf = new Configuration(baseConf);
FSUtils.setRootDir(conf, rootDir);
FSUtils.setFsDefault(conf, snapshotDir);
FSUtils.setFsDefault(conf, FSUtils.getRootDir(conf));
SnapshotDescription snapshotDesc = SnapshotDescriptionUtils.readSnapshotInfo(fs, snapshotDir);
SnapshotReferenceUtil.verifySnapshot(conf, fs, snapshotDir, snapshotDesc);
}