if (fs.exists(templatePath)) { log.debug("Loading template configuration {}", templatePath); conf = loadConfiguration(fs, templatePath); origin = templatePath.toString(); } else {
if (fs.exists(templatePath)) { log.debug("Loading template configuration {}", templatePath); conf = loadConfiguration(fs, templatePath); origin = templatePath.toString(); } else {
@Override //Client public void preflightValidateClusterConfiguration(SliderFileSystem sliderFileSystem, String clustername, Configuration configuration, AggregateConf instanceDefinition, Path clusterDirPath, Path generatedConfDirPath, boolean secure) throws SliderException, IOException { super.preflightValidateClusterConfiguration(sliderFileSystem, clustername, configuration, instanceDefinition, clusterDirPath, generatedConfDirPath, secure); Path templatePath = new Path(generatedConfDirPath, HBaseKeys.SITE_XML); //load the HBase site file or fail Configuration siteConf = ConfigHelper.loadConfiguration(sliderFileSystem.getFileSystem(), templatePath); //core customizations validateHBaseSiteXML(siteConf, secure, templatePath.toString()); }