/** * Initializes default hadoop configuration. * * @param cfg Hadoop configuration. */ private void initializeDefaults(HadoopConfiguration cfg) { if (cfg.getMapReducePlanner() == null) cfg.setMapReducePlanner(new IgniteHadoopWeightedMapReducePlanner()); }
/** {@inheritDoc} */ @Override public HadoopConfiguration hadoopConfiguration(String igniteInstanceName) { HadoopConfiguration cfg = super.hadoopConfiguration(igniteInstanceName); cfg.setMapReducePlanner(new HadoopTestRoundRobinMrPlanner()); // TODO: IGNITE-404: Uncomment when fixed. //cfg.setExternalExecution(false); return cfg; }
/** {@inheritDoc} */ @Override protected HadoopConfiguration createHadoopConfiguration() { HadoopConfiguration hadoopCfg = new HadoopConfiguration(); // Use weighted planner with default settings: IgniteHadoopWeightedMapReducePlanner planner = new IgniteHadoopWeightedMapReducePlanner(); hadoopCfg.setMapReducePlanner(planner); return hadoopCfg; } }