public static void injectResources(Props props) {
    // Add mapred, yarn and hdfs site configs (in addition to core-site, which
    // is automatically added) as default resources before we add the injected
    // configuration. This will cause the injected properties to override the
    // default site properties (instead of vice-versa). This is safe to do,
    // even when these site files don't exist for your Hadoop installation.
    if (props.getBoolean("azkaban.inject.hadoop-site.configs", true)) {
      Configuration.addDefaultResource("mapred-default.xml");
      Configuration.addDefaultResource("mapred-site.xml");
      Configuration.addDefaultResource("yarn-default.xml");
      Configuration.addDefaultResource("yarn-site.xml");
      Configuration.addDefaultResource("hdfs-default.xml");
      Configuration.addDefaultResource("hdfs-site.xml");
    }
    Configuration.addDefaultResource(INJECT_FILE);
  }
public static void injectResources ( Props props ) { if ( props . getBoolean ( "azkaban.inject.hadoop-site.configs" , true ) ) { Configuration . addDefaultResource ( "mapred-default.xml" ) ; Configuration . addDefaultResource ( "mapred-site.xml" ) ; Configuration . addDefaultResource ( "yarn-default.xml" ) ; Configuration . addDefaultResource ( "yarn-site.xml" ) ; Configuration . addDefaultResource ( "hdfs-default.xml" ) ; Configuration . addDefaultResource ( "hdfs-site.xml" ) ; } Configuration . addDefaultResource ( INJECT_FILE ) ; }
/*
To be called by the forked process to load the generated links and Hadoop
configuration properties to automatically inject.

@param props The Azkaban properties