* This function requires that the hConf.xml file containing {@link Configuration} is present in the job jar.
*/
private Configuration loadHConf() {
// TODO: Inject through Guice in Distributed mode, see CDAP-3
Configuration hConf = new Configuration();
hConf.clear();
URL url = Thread.currentThread().getContextClassLoader().getResource(SparkRuntimeService.SPARK_HCONF_FILENAME);
if (url == null) {
LOG.error("Unable to find Hadoop Configuration file {} in the submitted jar.",
SparkRuntimeService.SPARK_HCONF_FILENAME);