/** * Save a config file in a destination directory on a given filesystem * @param systemConf system conf used for creating filesystems * @param confToSave config to save * @param confdir the directory path where the file is to go * @param filename the filename * @return the destination path where the file was saved * @throws IOException IO problems */ public static Path saveConfig(Configuration systemConf, Configuration confToSave, Path confdir, String filename) throws IOException { FileSystem fs = FileSystem.get(confdir.toUri(), systemConf); Path destPath = new Path(confdir, filename); saveConfig(fs, destPath, confToSave); return destPath; }
/** * Save a config file in a destination directory on a given filesystem * @param systemConf system conf used for creating filesystems * @param confToSave config to save * @param confdir the directory path where the file is to go * @param filename the filename * @return the destination path where the file was saved * @throws IOException IO problems */ public static Path saveConfig(Configuration systemConf, Configuration confToSave, Path confdir, String filename) throws IOException { FileSystem fs = FileSystem.get(confdir.toUri(), systemConf); Path destPath = new Path(confdir, filename); saveConfig(fs, destPath, confToSave); return destPath; }
Path sitePath = ConfigHelper.saveConfig(serviceConf, siteConf, generatedConfDirPath,
Path sitePath = ConfigHelper.saveConfig(serviceConf, siteConf, generatedConfDirPath,