public interface MapReduceContext extends SchedulableProgramContext, RuntimeContext, DatasetContext, ServiceDiscoverer, Transactional, PluginContext, ClientLocalizationContext, WorkflowInfoProvider, SecureStore, MessagingContext, LineageRecorder, MetadataReader, MetadataWriter
| Modifier and Type | Method and Description |
|---|---|
void |
addInput(Input input)
Updates the input configuration of this MapReduce job to use the specified
Input. |
void |
addInput(Input input,
Class<?> mapperCls)
Updates the input configuration of this MapReduce job to use the specified
Input. |
void |
addOutput(Output output)
Updates the output configuration of this MapReduce job to use the specified
Output. |
<T> T |
getHadoopJob()
Returns the actual Hadoop job.
|
long |
getLogicalStartTime()
Returns the logical start time of this MapReduce job.
|
MapReduceSpecification |
getSpecification() |
ProgramState |
getState()
Return the state of the MapReduce program.
|
void |
setMapperResources(Resources resources)
Overrides the resources, such as memory and virtual cores, to use for each mapper of this
MapReduce job.
|
void |
setReducerResources(Resources resources)
Override the resources, such as memory and virtual cores, to use for each reducer of this
MapReduce job.
|
getTriggeringScheduleInfogetAdmin, getApplicationSpecification, getClusterName, getDataTracer, getNamespace, getRunId, getRuntimeArgumentsdiscardDataset, getDataset, getDataset, getDataset, getDataset, releaseDatasetgetServiceURL, getServiceURL, getServiceURL, openConnectionexecute, executegetPluginProperties, getPluginProperties, loadPluginClass, newPluginInstance, newPluginInstanceisFeatureEnabledlocalize, localizegetWorkflowInfo, getWorkflowTokenget, getData, getMetadata, listgetDirectMessagePublisher, getMessageFetcher, getMessagePublisherflushLineage, recordgetMetadata, getMetadataaddProperties, addTags, addTags, removeMetadata, removeProperties, removeProperties, removeTags, removeTagsMapReduceSpecification getSpecification()
MapReduce job instance.long getLogicalStartTime()
<T> T getHadoopJob()
void addInput(Input input)
Input.input - the input to be usedIllegalStateException - if called after any setInput methods.void addInput(Input input, Class<?> mapperCls)
Input.input - the input to be usedmapperCls - the mapper class to be used for the inputIllegalStateException - if called after any setInput methods.void addOutput(Output output)
Output.output - the output to be usedvoid setMapperResources(Resources resources)
resources - Resources that each mapper should use.void setReducerResources(Resources resources)
resources - Resources that each reducer should use.ProgramState getState()
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.