/** * Sets the configurations used for outputs. */ private void setOutputsIfNeeded(Job job) throws ClassNotFoundException { List<ProvidedOutput> outputsMap = context.getOutputs(); fixOutputPermissions(job, outputsMap); LOG.debug("Using as output for MapReduce Job: {}", outputsMap); MultipleOutputsMainOutputWrapper.setOutputs(job, outputsMap); job.setOutputFormatClass(MultipleOutputsMainOutputWrapper.class); }
/** * Sets the configurations used for outputs. */ private void setOutputsIfNeeded(Job job) throws ClassNotFoundException { List<ProvidedOutput> outputsMap = context.getOutputs(); fixOutputPermissions(job, outputsMap); LOG.debug("Using as output for MapReduce Job: {}", outputsMap); MultipleOutputsMainOutputWrapper.setOutputs(job, outputsMap); job.setOutputFormatClass(MultipleOutputsMainOutputWrapper.class); }
/** * Updates the {@link Configuration} of this class with the given parameters. * * @param context the context for the MapReduce program * @param conf the CDAP configuration * @param programJarURI The URI of the program JAR * @param localizedUserResources the localized resources for the MapReduce program */ public void set(BasicMapReduceContext context, CConfiguration conf, URI programJarURI, Map<String, String> localizedUserResources) { setProgramOptions(context.getProgramOptions()); setProgramId(context.getProgram().getId()); setApplicationSpecification(context.getApplicationSpecification()); setWorkflowProgramInfo(context.getWorkflowInfo()); setPlugins(context.getApplicationSpecification().getPlugins()); setProgramJarURI(programJarURI); setConf(conf); setLocalizedResources(localizedUserResources); setOutputs(context.getOutputs()); }
/** * Updates the {@link Configuration} of this class with the given parameters. * * @param context the context for the MapReduce program * @param conf the CDAP configuration * @param programJarURI The URI of the program JAR * @param localizedUserResources the localized resources for the MapReduce program */ public void set(BasicMapReduceContext context, CConfiguration conf, URI programJarURI, Map<String, String> localizedUserResources) { setProgramOptions(context.getProgramOptions()); setProgramId(context.getProgram().getId()); setApplicationSpecification(context.getApplicationSpecification()); setWorkflowProgramInfo(context.getWorkflowInfo()); setPlugins(context.getApplicationSpecification().getPlugins()); setProgramJarURI(programJarURI); setConf(conf); setLocalizedResources(localizedUserResources); setOutputs(context.getOutputs()); }