Search in sources :

Example 1 with DefaultMapReduceConfigurer

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);
}
Also used : MapReduceSpecification(co.cask.cdap.api.mapreduce.MapReduceSpecification) DefaultMapReduceConfigurer(co.cask.cdap.internal.app.mapreduce.DefaultMapReduceConfigurer)

Aggregations

MapReduceSpecification (co.cask.cdap.api.mapreduce.MapReduceSpecification)1 DefaultMapReduceConfigurer (co.cask.cdap.internal.app.mapreduce.DefaultMapReduceConfigurer)1