use of co.cask.cdap.internal.app.mapreduce.DefaultMapReduceConfigurer in project cdap by caskdata.
the class DefaultAppConfigurer method addMapReduce.
@Override
public void addMapReduce(MapReduce mapReduce) {
Preconditions.checkArgument(mapReduce != null, "MapReduce cannot be null.");
DefaultMapReduceConfigurer configurer = new DefaultMapReduceConfigurer(mapReduce, deployNamespace, artifactId, artifactRepository, pluginInstantiator);
mapReduce.configure(configurer);
addDatasetsAndPlugins(configurer);
MapReduceSpecification spec = configurer.createSpecification();
mapReduces.put(spec.getName(), spec);
}
Aggregations