| Constructor and Description |
|---|
HadoopJobEx() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
cleanupStagingDirectory()
Cleans up the job staging directory.
|
abstract void |
cleanupTaskEnvironment(HadoopTaskInfo info)
Cleans up local environment of the task.
|
abstract void |
dispose(boolean external)
Release all the resources.
|
abstract HadoopTaskContext |
getTaskContext(HadoopTaskInfo info)
Returns context for task execution.
|
boolean |
hasCombiner()
Checks whether job has combiner.
|
boolean |
hasReducer()
Checks whether job has reducer.
|
abstract HadoopJobId |
id()
Gets job ID.
|
abstract String |
igniteWorkDirectory() |
abstract HadoopJobInfo |
info()
Gets job information.
|
abstract void |
initialize(boolean external,
UUID locNodeId)
Does all the needed initialization for the job.
|
abstract Collection<HadoopInputSplit> |
input()
Gets collection of input splits for this job.
|
String |
jobName()
Gets job name.
|
abstract void |
prepareTaskEnvironment(HadoopTaskInfo info)
Prepare local environment for the task.
|
@Nullable String |
property(String name)
Gets optional configuration property for the job.
|
int |
reducers() |
String |
user()
Gets user name.
|
public abstract HadoopJobId id()
public abstract HadoopJobInfo info()
public abstract Collection<HadoopInputSplit> input()
public abstract HadoopTaskContext getTaskContext(HadoopTaskInfo info) throws IgniteCheckedException
info - Task info.IgniteCheckedException - If failed.public abstract void initialize(boolean external,
UUID locNodeId)
throws IgniteCheckedException
If job is running in external mode this method will be called on instance in Ignite node with parameter
false and on instance in external process with parameter true.
external - If true then this job instance resides in external process.locNodeId - Local node ID.IgniteCheckedException - If failed.public abstract void dispose(boolean external)
throws IgniteCheckedException
If job is running in external mode this method will be called on instance in Ignite node with parameter
false and on instance in external process with parameter true.
external - If true then this job instance resides in external process.IgniteCheckedException - If failed.public abstract void prepareTaskEnvironment(HadoopTaskInfo info) throws IgniteCheckedException
info - Task info.IgniteCheckedException - If failed.public abstract void cleanupTaskEnvironment(HadoopTaskInfo info) throws IgniteCheckedException
info - Task info.IgniteCheckedException - If failed.public abstract void cleanupStagingDirectory()
public abstract String igniteWorkDirectory()
@Nullable public @Nullable String property(String name)
public boolean hasCombiner()
hasCombiner in interface HadoopJobtrue If job has combiner.public boolean hasReducer()
HadoopMapReducePlan.reducers().hasReducer in interface HadoopJobpublic int reducers()
public String jobName()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020