job
The command is used to interact with MapReduce jobs.
The usage is as follows:
$ mapred job | [GENERIC_OPTIONS] | [-submit <job-file>] | [-status <job-id>] | [-counter <job-id> <group-name> <counter-name>] | [-kill <job-id>] | [-events <job-id> <from-event-#> <#-of-events>] | [-history [all] <jobHistoryFile|jobId> [-outfile <file>] [-format <human|json>]] | [-list [all]] | [-kill-task <task-id>] | [-fail-task <task-id>] | [-set-priority <job-id> <priority>] | [-list-active-trackers] | [-list-blacklisted-trackers] | [-list-attempt-ids <job-id> <task-type> <task-state>] [-logs <job-id> <task-attempt-id>] [-config <job-id> <file>]
-submit <job-file> |
Submits a job |
-status <job-id> |
Prints the map and reduce completion percentage and all job counters |
-counter <job-id> | <group-name> | <counter-name> |
Prints the counter value |
-kill <job-id> |
Kills a job |
-events <job-id> | <from-event-#> | <#-of-events> |
Prints events details received by jobtracker for the given range |
-history [all] jobHistoryFilejobId [-outfile <file>] [-format human|json] |
Prints job details, failed and killed task details.
The |
-list [all] |
Displays jobs which are not complete.
|
-kill-task <task-id> |
Kills a task. Killed tasks are NOT counted as failed attempts |
-fail-task <task-id> |
Fails a task. Failed tasks are counted as failed attempts |
-set-priority <job-id> <priority> |
Changes the priority of a job.
Supported priority values are |
-list-active-trackers |
Lists all the active NodeManagers in the cluster |
-list-blacklisted-trackers |
Lists the blacklisted task trackers in the cluster. This command is not supported in MRv2-based clusters |
list-attempt-ids <job-id> <task-type> <task-state> |
Lists the attempt IDs based on the provided task type and status.
Valid task types are |
-logs <job-id> <task-attempt-id> |
Dumps the container log for a job if |
-config <job-id> <file> |
Downloads the job configuration file |
Example:
$ mapred job -status job_141643275736_2152