#FORMAT plain hjobs(1) HADOOP hjobs(1)

NAME
hjobs - list hadoop jobs finished or running in hadoop

SYNOPSIS
hjobs [OPTION]... [JOBID]...

DESCRIPTION
hjobs will list hadoop jobs. If no parameters specifed, this command
will list the jobs queuing and running only.

-u user_name
With this option, hjobs will display jobs for a user_name

-l jobid
Display the jobid information in long format.

-jt jobtracker url link.
Display the job information of a cluster specified by the jobtracker
url link, for example. -jt hostA:3479;hostB:3479

EXAMPLE
List jobs

% hjobs
<JOBID = job_200708312310_xxxx>

JOBID USER STAT FROM_HOST JOB_NAME SUBMIT_TIME
0023 user1 RUN hostA WordCount Sep 10 08:33
0024 user1 PEND hostA WordCount Sep 10 08:47
0025 user2 PEND hostB WordCount Sep 10 09:12

Run hjobs -u user_name to display jobs for a specific user.

% hjobs -u user1
<JOBID = job_200708312310_xxxx @c0101:8801>

JOBID USER STAT FROM_HOST JOB_NAME SUBMIT_TIME
0023 user1 RUN hostA WordCount Sep 10 08:33
0024 user1 PEND hostA WordCount Sep 10 08:47

% hjobs -l job_200708312310_0005
Job <job_200709161514_0005 @c0101:8802>, User <nobody>, Status <RUN>

Thu Jan 01 08:00:00: Submitted, JobName <wordcount>
Input Files </user/sgliu/CHANGES.txt>
Output Path </user/sgliu/out5>

MAP : Total Progress <0.625>
Total Number of MAP Tasks <8>
Total Number of Finished MAPs <5>
Total Number of Running MAPs <3>
Total Number of Failed MAPs <0>
<MAPTID == tip_200709161514_0005_m_xxxxxx>

Sun Sep 16 19:29:59: Map Task <000000>, State <DONE> Launched on hosts:
<tracker_c0101:50050>
Failure Times <0> Kill Times <0>
Sun Sep 16 19:30:36: Map Task <000000> Finished.

Sun Sep 16 19:30:01: Map Task <000001>, State <DONE> Launched on hosts:
<tracker_c0101:50050>
Failure Times <0> Kill Times <0>
Sun Sep 16 19:30:36: Map Task <000001> Finished.

Sun Sep 16 19:30:07: Map Task <000002>, State <RUNNING> Launched on hosts:
<tracker_c0102:50050>
Failure Times <0> Kill Times <0>

Sun Sep 16 19:30:36: Map Task <000003>, State <DONE> Launched on hosts:
<tracker_c0101:50050>
Failure Times <0> Kill Times <0>
Sun Sep 16 19:30:44: Map Task <000003> Finished.

Sun Sep 16 19:30:40: Map Task <000004>, State <RUNNING> Launched on hosts:
<tracker_c0102:50050>
Failure Times <0> Kill Times <0>

Sun Sep 16 19:30:44: Map Task <000005>, State <DONE> Launched on hosts:
<tracker_c0101:50050>
Failure Times <0> Kill Times <0>
Sun Sep 16 19:30:59: Map Task <000005> Finished.

Sun Sep 16 19:30:46: Map Task <000006>, State <DONE> Launched on hosts:
<tracker_c0101:50050>
Failure Times <0> Kill Times <0>
Sun Sep 16 19:31:02: Map Task <000006> Finished.

Sun Sep 16 19:31:02: Map Task <000007>, State <RUNNING> Launched on hosts:
<tracker_c0101:50050>
Failure Times <0> Kill Times <0>

REDUCE : Total Progress <0.036458336>
Total Number of Reduce Tasks <8>
Total Number of Finished Reduces <0>
Total Number of Running Reduces <4>
Total Number of Failed Reduces <0>
<REDUCETID == tip_200709161514_0005_r_xxxxxx>

Sun Sep 16 19:30:10: Reduce Task <000000>, State <RUNNING> Launched on hosts:
<tracker_c0101:50050>
Failure Times <0> Kill Times <0>

Sun Sep 16 19:30:11: Reduce Task <000001>, State <RUNNING> Launched on hosts:
<tracker_c0101:50050>
Failure Times <0> Kill Times <0>

Sun Sep 16 19:30:53: Reduce Task <000002>, State <RUNNING> Launched on hosts:
<tracker_c0102:50050>
Failure Times <0> Kill Times <0>

Sun Sep 16 19:30:54: Reduce Task <000003>, State <RUNNING> Launched on hosts:
<tracker_c0102:50050>
Failure Times <0> Kill Times <0>
Reduce Task <000004>, State <PENDING>
Reduce Task <000005>, State <PENDING>
Reduce Task <000006>, State <PENDING>
Reduce Task <000007>, State <PENDING>

URL : <http://c0101:50030/jobdetails.jsp?jobid=job_200709161514_0005>

AUTHOR
Written by Shuguang Liu

REPORT BUGS
Report bugs to <honkliu@hotmail.com>

COPYRIGHT
Copyright (C) 2005-2010 Shuguang Liu's Inc.

This file is not a free software, all the source codes are protected
and will not be released to any body or organization without
authority.

SEE ALSO
hjobkill(1), htop(1), hbot(1)

hjobs (hadoop utils) 13.0 October 2007

  • No labels