return hadoopClusterSpec;
}
private File getWhirrConfigurationFile(HostDescription hostDescription, File workingDirectory)
throws GFacHandlerException, IOException {
HadoopHostType hadoopHostDesc = (HadoopHostType)hostDescription;
if(hadoopHostDesc.isSetWhirrConfiguration()){
HadoopHostType.WhirrConfiguration whirrConfig = hadoopHostDesc.getWhirrConfiguration();
if(whirrConfig.isSetConfigurationFile()){
File whirrConfigFile = new File(whirrConfig.getConfigurationFile());
if(!whirrConfigFile.exists()){
throw new GFacHandlerException(
"Specified whirr configuration file doesn't exists.");