Hadoop job – list
Hadoop job – kill jobID
In Hadoop, you can use the following commands in Linux to see all jobs running in the cluster and kill a job:
- To see all running jobs:
mapred job -list
This command will provide a list of all running jobs in the Hadoop cluster.
- To kill a specific job:
mapred job -kill <job-id>
Replace
<job-id>
with the actual job ID of the job you want to terminate. You can find the job ID from the output of themapred job -list
command.
Note: The commands mentioned above may vary slightly depending on the Hadoop version. In more recent versions, you might also use yarn
instead of mapred
. For example:
- To see all running jobs:
yarn application -list
- To kill a specific job:
yarn application -kill <application-id>
Again, replace <application-id>
with the actual ID of the job you want to terminate.