/** * looks for the config under $confdir/$templateFilename; if not there * loads it from /conf/templateFile. * The property {@link SliderKeys#KEY_TEMPLATE_ORIGIN} is set to the * origin to help debug what's happening * @param systemConf system conf * @param confdir conf dir in FS * @param templateFilename filename in the confdir * @param fallbackResource resource to fall back on * @return loaded conf * @throws IOException IO problems */ public static Configuration loadTemplateConfiguration(Configuration systemConf, Path confdir, String templateFilename, String fallbackResource) throws IOException { FileSystem fs = FileSystem.get(confdir.toUri(), systemConf); Path templatePath = new Path(confdir, templateFilename); return loadTemplateConfiguration(fs, templatePath, fallbackResource); }
/** * looks for the config under $confdir/$templateFilename; if not there * loads it from /conf/templateFile. * The property {@link SliderKeys#KEY_TEMPLATE_ORIGIN} is set to the * origin to help debug what's happening * @param systemConf system conf * @param confdir conf dir in FS * @param templateFilename filename in the confdir * @param fallbackResource resource to fall back on * @return loaded conf * @throws IOException IO problems */ public static Configuration loadTemplateConfiguration(Configuration systemConf, Path confdir, String templateFilename, String fallbackResource) throws IOException { FileSystem fs = FileSystem.get(confdir.toUri(), systemConf); Path templatePath = new Path(confdir, templateFilename); return loadTemplateConfiguration(fs, templatePath, fallbackResource); }
Configuration siteConf = ConfigHelper.loadTemplateConfiguration( serviceConf, snapshotConfDirPath,
Configuration siteConf = ConfigHelper.loadTemplateConfiguration( serviceConf, snapshotConfDirPath,