isWhirrBasedDeployment = true;
} else {
String hadoopConfigDirPath = (String)inMessageContext.getParameter("HADOOP_CONFIG_DIR");
File hadoopConfigDir = new File(hadoopConfigDirPath);
if (!hadoopConfigDir.exists()){
throw new GFacHandlerException("Specified hadoop configuration directory doesn't exist.");
} else if (FileUtils.listFiles(hadoopConfigDir, null, null).size() <= 0){
throw new GFacHandlerException("Cannot find any hadoop configuration files inside specified directory.");
}
this.hadoopConfigDir = hadoopConfigDir;
}
if(jobExecutionContext.isInPath()){
try {
handleInPath(jobExecutionContext);
} catch (IOException e) {
throw new GFacHandlerException("Error while copying input data from local file system to HDFS.",e);
}
} else {
handleOutPath(jobExecutionContext);
}
}