public void takeSnapshotOfConfDir(Path appconfdir) throws IOException, BadConfigException, BadClusterStateException { FileSystem srcFS = FileSystem.get(appconfdir.toUri(), conf); if (!srcFS.isDirectory(appconfdir)) { throw new BadConfigException( "Source Configuration directory is not valid: %s", appconfdir.toString()); } // bulk copy FsPermission clusterPerms = coreFS.getInstanceDirectoryPermissions(); // first the original from wherever to the DFS SliderUtils.copyDirectory(conf, appconfdir, instancePaths.snapshotConfPath, clusterPerms); }
public void takeSnapshotOfConfDir(Path appconfdir) throws IOException, BadConfigException, BadClusterStateException { FileSystem srcFS = FileSystem.get(appconfdir.toUri(), conf); if (!srcFS.isDirectory(appconfdir)) { throw new BadConfigException( "Source Configuration directory is not valid: %s", appconfdir.toString()); } // bulk copy FsPermission clusterPerms = coreFS.getInstanceDirectoryPermissions(); // first the original from wherever to the DFS SliderUtils.copyDirectory(conf, appconfdir, instancePaths.snapshotConfPath, clusterPerms); }
log.debug("Slider configuration directory is {}; remote to be {}", localConfDirPath, remoteConfPath); copyDirectory(config, localConfDirPath, remoteConfPath, null); copyDirectory(config, snapshotConfPath, generatedConfDirPath, clusterPerms);
log.debug("Slider configuration directory is {}; remote to be {}", localConfDirPath, remoteConfPath); copyDirectory(config, localConfDirPath, remoteConfPath, null); copyDirectory(config, snapshotConfPath, generatedConfDirPath, clusterPerms);