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.
|
getTriggeringScheduleInfo
getAdmin, getApplicationSpecification, getClusterName, getDataTracer, getNamespace, getRunId, getRuntimeArguments
discardDataset, getDataset, getDataset, getDataset, getDataset, releaseDataset
getServiceURL, getServiceURL, getServiceURL, openConnection
execute, execute
getPluginProperties, getPluginProperties, loadPluginClass, newPluginInstance, newPluginInstance
isFeatureEnabled
localize, localize
getWorkflowInfo, getWorkflowToken
get, getData, getMetadata, list
getDirectMessagePublisher, getMessageFetcher, getMessagePublisher
flushLineage, record
getMetadata, getMetadata
addProperties, addTags, addTags, removeMetadata, removeProperties, removeProperties, removeTags, removeTags
MapReduceSpecification 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.