HBASE-11327 ExportSnapshot hit stackoverflow error when target snapshotDir doesn't contain uri (Demai Ni)
This commit is contained in:
parent
26096f363e
commit
95a7e72302
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue