mapreduce tracer

This section describes Arista’s implementation of mapreduce tracer, including configuration instructions and command descriptions. Topics covered by this section include:

mapreduce tracer introduction

mapreduce tracer is a network tool that monitors Hadoop nodes that are directly connected to Arista switches. mapreduce tracer requires the following:
  • Hadoop clusters are deployed with a L3 design.
  • The top of rack switch is the default gateway to all attached TaskTracker nodes.
  • JobTracker RPC ports do not require authentication.
  • Nodes cannot simultaneously belong to multiple Hadoop clusters.
  • All TaskTrackers within a cluster are accessed through a common HTTP access port.
  • The switch’s DNS or static host configuration facilitates TaskTracker name resolution.
Map Reduce tracer supports these Hadoop releases:
  • Apache 0.20.205
  • Apache 1.2.1
  • Cloudera 3u6
  • Cloudera 4.1.3
  • Cloudera 4.3.0
  • HortonWorks 1.3
  • Cloudera 4.5.0

These sections briefly describe Hadoop, Hadoop data structures, and mapreduce tracer.

Hadoop Description

Apache Hadoop is an open-source, Java-based software framework that supports large dataset storage and processing in a distributed computational environment. Hadoop is licensed under Apache License 2.0 and developed through a global community.

Hadoop facilitates application execution on systems composed of thousands of nodes utilizing petabytes of data. Its distributed file system facilitates rapid data transfer among nodes and supports continued operations when individual nodes fail or become inaccessible.

Hadoop Distributed File System (HDFS) is a distributed file-system that stores data on the commodity machines to provide high aggregate bandwidth across the cluster.

Hadoop Cluster Structure

A cluster is a group of servers that function as a single system to provide high availability through load balancing and parallel processing. A Hadoop cluster is a type of computational cluster designed for storing and analyzing large amounts of unstructured data in a distributed computing environment.

Typical Hadoop clusters include one master and multiple worker nodes. The master node consists of a TaskTracker, JobTracker, NameNode and DataNode. Worker nodes include a TaskTracker and DataNode.

Map Reduce

mapreduce is an algorithm that Hadoop implements to process large datasets by distributing parallel tasks to nodes within a cluster. The mapreduce program includes a Map procedure that filters data and a Reduce procedure that processes the data.

mapreduce manages task and data distribution to cluster nodes such that tasks are executed in parallel, and data transfers between cluster components support redundancy and fault tolerance.

The mapreduce engine consists of one JobTracker and multiple TaskTrackers – all nodes within the Hadoop cluster. The JobTracker receives mapreduce jobs from a client application and manages the completion of these jobs by submitting tasks to available TaskTracker nodes. If a TaskTracker fails to perform the assigned task, the JobTracker reschedules that part of the job to another node.

mapreduce tracer Function

mapreduce tracer is a feature that tracks and interacts with Hadoop nodes directly connected to Arista switches in a cluster. It communicates with a JobTracker to obtain a list of all nodes in a cluster and then queries JobTracker and TaskTrackers on these nodes for information regarding the jobs they are running and progress of those jobs. This creates a map of TaskTrackers with kinds of jobs they are running. Commands are available to display this data in tables through the CLI and EAPI.

mapreduce tracer monitors only nodes that connect directly to the switch in L3 networks. Directly connected nodes use the top-of-rack switch as their default gateway and the switch learns ARP entries for these nodes. The list of nodes provided by JobTracker is filtered by tracking ARP entries to remove nodes that are not directly accessible.

mapreduce tracer creates a database of nodes from the filtered list. After the database is created, the switch queries the JobTracker and TaskTrackers to obtain the following:
  • The number of monitored Hadoop nodes.
  • The list of monitored nodes, including their IP addresses.
  • Jobs that the TaskTrackers are running.
  • JobTracker and TaskTracker statistics.

mapreduce tracer can simultaneously monitor multiple clusters. This means the directly connected TaskTracker nodes can belong to different clusters. A maximum of five clusters are supported per switch.

mapreduce tracer Configuration

mapreduce tracer configuration commands are structured into two configuration levels:
  • Monitor-hadoop configuration mode is a child of global configuration mode and controls global mapreduce tracer settings.
  • Monitor-hadoop-cluster configuration mode is a child of Monitor-hadoop configuration mode and defines polling configurations that monitor individual Hadoop clusters.
These sections describe mapreduce tracer configuration processes:

mapreduce tracer functions after it is enabled globally. Each polling configuration can be individually enabled after the feature is enabled globally.

mapreduce tracer Global Configuration

mapreduce tracer global parameters are configured in Monitor-hadoop configuration mode. Tasks performed from this mode include specifying connection parameters to Hadoop clusters and globally enabling mapreduce tracer.

Entering Monitor-Hadoop Configuration Mode

Monitor-hadoop configuration mode is entered by monitor hadoop. Monitor-hadoop configuration mode is not a group change mode; statements are stored in the running-config when they are entered through the CLI. The exit command returns the switch to global configuration mode.

Examples
  • These commands place the switch in monitor-hadoop configuration mode.
    switch(config)#monitor hadoop
    switch(config-monitor-hadoop)#
  • This command exits monitor-hadoop mode.
    switch(config-monitor-hadoop)#exit
    switch(config)#
  • This command deletes all previously configured monitor-hadoop configuration mode commands.
    switch(config)#no monitor hadoop
    switch(config)#

Globally Enabling mapreduce tracer

mapreduce tracer is globally enabled by the no version of the shutdown (Monitor-Hadoop). mapreduce tracer is globally disabled by default.

Example
These commands globally enable mapreduce tracer.
switch(config)#monitor hadoop
switch(config-monitor-hadoop)#no shutdown
switch(config-monitor-hadoop)#show active
 monitor hadoop
 no shutdown
switch(config-monitor-hadoop)#

Creating a Cluster Monitor

A cluster monitor is created by entering monitor-hadoop-cluster mode with cluster (Monitor Hadoop). Each monitor is labeled with a cluster ID and probes one Hadoop cluster. When the command specifies a monitor with a previously defined cluster ID, subsequent commands edit that monitor’s parameters. A monitor with a new cluster ID is created by a command that specifies a nonexistent cluster ID.

Example
These commands enter monitor-hadoop-cluster mode to edit a cluster monitor. The monitor’s cluster-id is CL2.
switch(config-monitor-hadoop)#cluster CL2
switch(config-monitor-hadoop-CL2)#show active
monitor hadoop
 cluster CL2
switch(config-monitor-hadoop-CL2)#

Hadoop Cluster Access Configuration

Cluster monitors are configured in monitor-hadoop-cluster configuration mode. Each monitor corresponds to a hadoop cluster through these configurable parameters:
  • JobTracker access parameters (address, port number, and username)
  • TaskTracker access port
  • Polling interval
  • Cluster description
  • Enabled setting

The minimum explicit configuration includes JobTracker address and username; default values are defined for all other parameters. By default, cluster monitors are disabled.

The cluster (Monitor Hadoop) command places the switch in monitor-hadoop-cluster mode for the specified monitor, where a cluster’s connection parameters are specified. Monitor-hadoop-cluster mode is not a group change mode.

A cluster monitor is enabled by using the no version of the shutdown (Monitor-Hadoop) when mapreduce tracer is globally enabled.

JobTracker Configuration

A cluster’s JobTracker is located on the master node and schedules work to the cluster’s TaskTracker nodes. The jobtracker (Monitor Hadoop Cluster) command specifies connection parameters to the monitored cluster.

JobTracker parameters include its node location (IPv4 address or hostname), RPC port, and username. The default RPC port is 8021. Location and username parameters do not have default values and must be explicitly configured.

Example
For the CL2 monitor, these commands configure connection parameters to a JobTracker node at 10.4.4.4 with the username account1. The default RPC port (8021) is implicitly specified.
switch(config)#monitor hadoop
switch(config-monitor-hadoop)#cluster CL2
switch(config-monitor-hadoop-CL2)#jobtracker host 10.4.4.4 username account1
switch(config-monitor-hadoop-CL2)#show active
monitor hadoop
 cluster CL2
jobtracker host 10.4.4.4 user account1
switch(config-monitor-hadoop-CL2)#

TaskTracker Configuration

The tasktracker (Monitor Hadoop Cluster) command specifies the HTTP port that access TaskTrackers of the Hadoop cluster probed by the configuration mode monitor. The switch compiles a list of the cluster’s TaskTracker addresses by periodically polling the cluster’s JobTracker.

The default TaskTracker HTTP port is 50060.

Examples
  • For the CL2 monitor, these commands configure a TaskTracker access port of 51000.
    switch(config)#monitor hadoop
    switch(config-monitor-hadoop)#cluster CL2
    switch(config-monitor-hadoop-CL2)#tasktracker http-port 51000
    switch(config-monitor-hadoop-CL2)#show active
    monitor hadoop
    cluster CL2
    tasktracker http-port 51000
    switch(config-monitor-hadoop-CL2)#
  • These commands restore the default TaskTracker HTTP access port address of 50060.
    switch(config-monitor-hadoop-CL2)#no tasktracker http-port
    switch(config-monitor-hadoop-CL2)#show active
    monitor hadoop
    cluster CL2
    switch(config-monitor-hadoop-CL2)#show active all
    monitor hadoop
    cluster CL2
    jobtracker rpc-port 8021
    tasktracker http-port 50060
    interval 10
    shutdown
    switch(config-monitor-hadoop-CL2)#

Polling Interval Configuration

When the monitor configuration is complete, the switch polls the cluster’s JobTracker to maintain the list of active TaskTracker nodes associated with the monitored cluster and compile Hadoop job statistics. The interval (Monitor Hadoop Cluster) command specifies the interval between polls to the JobTracker of the monitored cluster. The default interval is 10 seconds.

Example
This command sets the JobTracker polling interval to 25 seconds for the cluster monitored by the CL2 mapreduce tracer configuration.
switch(config)#monitor hadoop
switch(config-monitor-hadoop)#cluster CL2
switch(config-monitor-hadoop-CL2)#interval 25
switch(config-monitor-hadoop-CL2)#show active
monitor hadoop
 cluster CL2
interval 25
switch(config-monitor-hadoop-CL2)#

mapreduce tracer Example

The commands in this section create monitors that probe two Hadoop clusters, enables each monitor individually, then enables mapreduce tracer globally. Monitor parameters for the clusters include:
  • Cluster ID: CL_1
    • Jobtracker: IP address: 10.15.2.2; RPC port: 8021; username: xyz1
    • TaskTracker: HTTP address 54000
    • JobTracker polling interval: 10 seconds (default)
  • Cluster ID: CL_2
    • Jobtracker: IP address: 10.21.5.2; RPC port: 9521; username: qrst4
    • TaskTracker: HTTP address 50060 (default)
    • JobTracker polling interval: 5 seconds
Example
switch(config)#monitor hadoop
switch(config-monitor-hadoop)#cluster CL_1

switch(config-monitor-hadoop-CL_1)#jobtracker host 10.15.2.2 username xyz1
switch(config-monitor-hadoop-CL_1)#tasktracker http-port 54000
switch(config-monitor-hadoop-CL_1)#no shutdown
switch(config-monitor-hadoop-CL_1)#exit

switch(config-monitor-hadoop)#cluster CL_2
switch(config-monitor-hadoop-CL_2)#jobtracker host 10.21.5.2 rpc-port 9521
switch(config-monitor-hadoop-CL_2)#interval 5
switch(config-monitor-hadoop-CL_2)#no shutdown
switch(config-monitor-hadoop-CL_2)#exit

switch(config-monitor-hadoop)#no shutdown
switch(config-monitor-hadoop)#show active
 monitor hadoop
 no shutdown
 cluster CL_1
jobtracker host 10.15.2.2 user xyz1
tasktracker http-port 54000
no shutdown
 !
 cluster CL_2
jobtracker host 10.21.5.2 rpc-port 9521 user qrst4
interval 5
no shutdown

switch(config-monitor-hadoop)#show active all
 monitor hadoop
 no shutdown
 cluster CL_1
jobtracker host 10.15.2.2 rpc-port 8021 user xyz1
tasktracker http-port 54000
interval 10
no shutdown
 !
 cluster CL_2
jobtracker host 10.21.5.2 rpc-port 9521 user qrst4
tasktracker http-port 50060
interval 5
no shutdown
switch(config-monitor-hadoop)#exit
switch(config)#

Displaying mapreduce tracer Results

mapreduce tracer display commands provide information about the configuration and activity on the monitored clusters.

mapreduce tracer Status

mapreduce tracer status is accessed through show monitor hadoop status. Status information includes the enabled status and the number of monitored clusters, TaskTrackers, and locally running jobs.

Example
This command displays mapreduce tracer status for all connected clusters and TaskTrackers.
switch>show monitor hadoop status

Last updated: 2013-10-06 18:14:23
mapreduce tracer status:
Admin status: Enabled
Operational status: Enabled
Number of clusters configured : 3
Number of local TaskTrackers: 4
Number of jobs running locally: 4

switch>

Cluster Configuration and Connections

The following cluster configuration and connection information is available through these commands:
Example
This command displays configuration and connection data for the Cluster0 cluster.
switch>show monitor hadoop cluster Cluster0 status

Last updated: 2013-10-06 18:14:23
Cluster status for cluster:Cluster0
Admin status: Enabled
JobTracker host : host0
JobTracker RPC port : 9000
JobTracker user : user0
JobTracker polling interval : 100 seconds
TaskTracker HTTP port : 8800
Operational status: Enabled
Active TaskTrackers : 31
Blacklisted TaskTrackers: 1
Decommissioned TaskTrackers : 1
Tracker expiry interval : 20.0
Map slots (used/total): 10/100
Reduce slots (used/total) : 11/110
JobTracker heap size: 1.04GB (max: 2.08GB)

switch>

Job Lists

The following commands display rosters of currently running job or jobs that previously ran:
Examples
  • This command displays the jobs that are running on all monitored clusters.
    switch>show monitor hadoop
    
    Last updated: 2013-10-06 18:14:23
    Currently running jobs: 4
    JobId Job Name Cluster Maps(#/%)Reduces(#/%)Start Time
    ------- ---------------- --------- ---------- ------------- ------------------- 
    1 ReallyAVeryLon\Cluster02/12.34% 0/13.45%2013-10-06 17:56:03 
    gNameForAJob1 
    2 ShortName2 Cluster02/24.68% 0/26.90%2013-10-06 17:37:43 
    510001ReallyAVeryLon\Cluster12/12.34% 0/13.45%2013-10-06 17:56:03 
    gNameForAJob11
    510002ShortName12Cluster12/24.68% 0/26.90%2013-10-06 17:37:43 
    
    switch>
  • This command displays data the jobs that previously ran on connected Hadoop clusters.
    switch>show monitor hadoop history
    
    Job history for all clusters:
    JobIdJob Name Cluster Start Time End Time Bytes InBytes Out 
    ------ ---------------- --------- ----------- ------------ ---------- --------- 
    2AReallyBigHist\Cluster02013-10-06 2013-10-09 26.08GB 13.04GB 
     oricalJobName17:41:03 06:47:43 
    442AReallyBigHist\Cluster12013-10-06 2013-10-09 26.08GB 13.04GB 
     oricalJobName17:41:03 06:47:43 
    442AReallyBigHist\Cluster12013-10-06 2013-10-09 26.08GB 13.04GB 
     oricalJobName17:41:03 06:47:43 
    2AReallyBigHist\Cluster02013-10-06 2013-10-09 26.08GB 13.04GB 
     oricalJobName17:41:03 06:47:43 
    441HistoryJob1Cluster12013-10-06 2013-10-08 26.08GB 13.04GB 
    17:57:43 00:31:03 
    1HistoryJob1Cluster02013-10-06 2013-10-08 26.08GB 13.04GB 
    17:57:43 00:31:03 
    
    switch>
  • This command displays jobs running on cluster Cluster0 and byte counters for each job.
    switch>show monitor hadoop cluster Cluster0 counters
    
    Last updated: 2013-10-06 18:14:23
    Counters for currently running jobs on cluster: Cluster0
     JobId Job NameUser Bytes In Bytes OutStart Time
    ------- ----------------- ---------- ---------- ----------- ------------------- 
     2 ShortName2JobUser2 37.36GB76.29MB2013-10-06 17:37:43 
     1 ReallyAVeryLon\ JobUser1 37.36GB76.29MB2013-10-06 17:56:03 
     gNameForAJob1 
     
    switch>

Job Data

The following commands display information about jobs that are running or previously ran on monitored clusters. Available data include job identifiers, JobTracker ID, start time, stop time, data consumption, and progress statistics.

Examples
  • This command displays information about job 1 that ran on cluster Cluster0.
    switch>show monitor hadoop cluster Cluster0 history job 1
    
    Job history data for job: HistoryJob1
    Cluster: Cluster0
    Job Id : 1
    JT Id: 201310110013
    User : HistoryUser1
    Job start time : 2013-10-06 17:57:43
    Job end time : 2013-10-08 00:31:03
    
    Per Interface job counters:
    Interface TaskTrackerBytes In Bytes Out 
    --------------- ------------------ -------------- --------- 
    Ethernet7 TaskTracker2 26.08GB13.04GB 
    
    switch>
  • This command displays information about job 1 that is running on cluster Cluster0.
    switch>show monitor hadoop cluster Cluster0 jobs 1
    
    Last updated: 2013-10-06 18:14:23
    Information for job: ReallyAVeryLongNameForAJob1 running on cluster: Cluster0
    Cluster: Cluster0
    Id : 1
    Name : ReallyAVeryLongNameForAJob1
    User : JobUser1
    Priority : veryHigh
    Running state: running
    Number of map tasks: 2
    Number of reduce tasks : 0
    Start time : 2013-10-06 17:56:03
    Bytes In : 37.36GB
    Bytes Out: 76.29MB
    Map Progress : 12.34%
    Reduce Progress: 13.45%
    Cleanup Progress : 14.56%
    Setup Progress : 15.67%
    
    switch>
  • This command displays data for jobs running on TaskTracker1.
    switch>show monitor hadoop tasktracker host TaskTracker1 jobs
    
    Last updated: 2013-10-06 18:14:23
    Running job for TaskTracker: TaskTracker1
    JobIdJob Name Cluster Maps(#/%) Reduces(#/%)Start Time
    ------ ---------------- --------- ---------- -------------- ------------------- 
    1ReallyAVeryLon\Cluster02/12.34%0/13.45%2013-10-06 17:56:03 
     gNameForAJob1
    2ShortName2 Cluster02/24.68%0/26.90%2013-10-06 17:37:43 
    
    switch>

TaskTracker Lists

These commands display lists of TaskTrackers that are active on monitored clusters:
Example
This command displays the TaskTrackers on the Cluster0 cluster.
switch>show monitor hadoop cluster Cluster0 tasktracker

Last updated: 2013-10-06 18:14:23
Total 2 TaskTrackers on cluster Cluster0:
NodeIP AddressInterfaceMaps Reduces
------------- ----------- -------------- ------ -------
TaskTracker110.100.0.1 Ethernet740
TaskTracker210.100.0.2 Port-Channel740

switch>

TaskTracker Connection and Activity

The following TaskTracker connection and activity data is available through these commands:
Example
This command displays connection and activity data for TaskTracker on the TaskTracker1 node.
switch>show monitor hadoop tasktracker host TaskTracker1 status

Last updated: 2013-10-06 18:14:23
TaskTracker : TaskTracker1
IP Address: 10.100.0.1
Interface : Ethernet7
State : active
Running jobs: 2
Running tasks : 4
Map Tasks : 4
Reduce Tasks: 0
Total bytes read: 2.08GB
Total bytes written : 4.24MB

switch>

Data Bursts

The show monitor hadoop traffic burst command displays the largest data bursts for jobs running on a specified cluster or accessed through a specified node or interface. A data burst is the data consumed during a polling interval.

Example
This command displays traffic burst data for all running jobs that are accessible through port channel interface 7.
switch>show monitor hadoop traffic burst interface Port-Channel 7

Last updated: 2013-10-06 18:14:23
Bursts on Interface: 'Port-Channel7' in cluster: Cluster0
Top 2 input bursts:
JobId Job NameBurst Time
----------- --------------------- ------------ ------------------- 
 1 ShortName 3.07GB2013-10-06 17:57:43 
 2 ReallyAVeryLon\ 6.15GB2013-10-06 17:41:03 
 gNameForAJob

Top 2 output bursts:
JobId Job NameBurst Time
----------- --------------------- ------------ ------------------- 
 1 ShortName 4.10GB2013-10-06 17:55:13 
 2 ReallyAVeryLon\ 8.20GB2013-10-06 17:36:03 
 gNameForAJob

mapreduce tracer Command Descriptions

clear monitor hadoop burst-counters

The clear monitor hadoop burst-counters command resets mapreduce tracer burst counters for all jobs running on specified clusters.

Command Mode

Privileged EXEC

Command Syntax

clear monitor hadoop burst-counters [CLUSTERS]

Parameters
  • CLUSTERSHadoop clusters for which command displays data. Options include:
    • <no parameter>      All clusters.
    • cluster c_name     Cluster name.
Example
This command clears the burst counters for all jobs running on CL2 cluster.
switch#clear monitor hadoop burst-counters cluster CL2
Cleared burst counters
switch#

clear monitor hadoop job-history

The clear monitor hadoop job-history command resets the job history database for all specified clusters.

Command Mode

Privileged EXEC

Command Syntax

clear monitor hadoop job-history [CLUSTERS]

Parameters
  • CLUSTERSHadoop clusters for which command displays data. Options include:
    • <no parameter>     All clusters.
    • cluster c_name     Cluster name.
Example

This command clears the job history on the CL2 cluster.

switch#clear monitor hadoop job-history cluster CL2
Cleared job history
switch#

cluster (Monitor Hadoop)

The cluster command is a monitor-hadoop command that places the switch in monitor-hadoop-cluster mode for configuring and enabling a mapreduce tracer monitor for a Hadoop cluster. The command either accesses an existing monitor configuration or creates a monitor.

Monitor-hadoop-cluster configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting monitor-hadoop-cluster mode does not affect running-config. The exit command returns the switch to monitor-hadoop configuration mode.

The configuration mode monitor is enabled by the no version of the shutdown (Monitor Hadoop Cluster). Enabling a monitor also requires that mapreduce tracer is globally enabled (shutdown (Monitor Hadoop Cluster).

The no cluster and default cluster commands remove the specified Hadoop cluster configuration from running-config.

Command Mode

Monitor-hadoop Configuration

Command Syntax

cluster cluster_name

no cluster cluster_name

default cluster cluster_name

Parameters
  • cluster_name     Hadoop cluster name.
Related Commands
  • monitor hadoop places the switch in monitor-hadoop configuration mode.
Examples
  • These commands create the CL2 monitor and enters monitor-hadoop-cluster mode for the monitor.
    switch(config)#monitor hadoop
    switch(config-monitor-hadoop)#cluster CL2
    switch(config-monitor-hadoop-CL2)#show active
    monitor hadoop
     cluster CL2
    switch(config-monitor-hadoop-CL2)#
  • These commands exit monitor-hadoop-cluster mode.
    switch(config-monitor-hadoop-CL2)#exit
    switch(config-monitor-hadoop)#show active
     monitor hadoop
     cluster CL2
    switch(config-monitor-hadoop)#
  • These commands remove the CL2 monitor.
    switch(config-monitor-hadoop)#no cluster CL2
    switch(config-monitor-hadoop)#show active
    switch(config-monitor-hadoop)#

description (Monitor Hadoop Cluster)

The description command adds a text string to the configuration mode mapreduce tracer cluster monitor. The string has no functional impact on the monitor.

The no description and default description commands remove the text string from the configuration mode monitor by removing the corresponding description command from running-config.

Command Mode

Monitor-hadoop-cluster Configuration

Command Syntax

description label_text

no description

default description

Parameters
  • label_text      Character string assigned to the monitor configuration.
Related Commands
Example
These commands add description text to the CL2 monitor.
switch(config)#monitor hadoop
switch(config-monitor-hadoop)#cluster CL2
switch(config-monitor-hadoop-CL2)#description First Cluster
monitor hadoop
 cluster CL2
description First Cluster
jobtracker host 10.3.3.3 user JANE
switch(config-monitor-hadoop-CL2)#

interval (Monitor Hadoop Cluster)

The interval command specifies the polling interval between queries to the Hadoop cluster JobTracker specifed by configuration mode statements. The switch polls a cluster’s JobTracker to update its list of active TaskTracker nodes and the statistics of jobs running in the cluster. This command controls the frequency of these polls. The default interval is 10 seconds.

The no interval and default interval commands restore the default interval of 10 seconds by removing the interval command from running-config.

Command Mode

Monitor-hadoop-cluster Configuration

Command Syntax

interval period

no interval

default interval

Parameters
  • period Interval (seconds) between JobTracker polls. Value ranges from 1 to 600. Default is 10.
Related Commands
Example
This command sets the JobTracker polling interval to 25 seconds for the CL2 cluster configuration.
switch(config)#monitor hadoop
switch(config-monitor-hadoop)#cluster CL2
switch(config-monitor-hadoop-CL2)#interval 25
switch(config-monitor-hadoop-CL2)#show active
monitor hadoop
 cluster CL2
interval 25
switch(config-monitor-hadoop-CL2)#

jobtracker (Monitor Hadoop Cluster)

The jobtracker command specifies JobTracker access parameters for the cluster monitored by configuration mode monitor statements. A cluster’s JobTracker is located on the master node and schedules work to the cluster’s TaskTracker nodes.

Parameters required to communicate with a JobTracker include its node location (IPv4 address or hostname), RPC port, and username. The default RPC port is 8021. Location and username parameters do not have default values and must be explicity configured. A JobTracker command that specifies a partial parameter list modifies the existing corresponding jobtracker statement in running-config.

The no jobtracker and default jobtracker commands perform the following:
  • removes the jobtracker statement from running config when it lists all command parameters.
  • modifies the existing jobtracker statement when it lists a subset of command parameters.

Command Mode

Monitor-hadoop-cluster Configuration

Command Syntax

jobtracker [LOCATION][PORT][USER]

no jobtracker[LOCATION][PORT][USER]

default jobtracker [LOCATION][][USER]

All parameters may be placed in any order.

Parameters
  • LOCATION Address or hostname of JobTracker node. Options include:
    • <no parameter>      Location remains undefined or unchanged from a previous configuration.
    • host ipv4_addr      IPv4 address of master (JobTracker) node.
    • host hostname      Hostname of master (JobTracker) node.
  • PORTJobTracker RPC port number. Default value is 8021. Options include:
    • <no parameter>      Port number remains unchanged from previous configuration.
    • rdp-port port_num      Port number of master (JobTracker) node. Value ranges from 1 to 65535.
  • USER Username that accesses JobTracker node. Options include:
    • <no parameter>      Username remains undefined or unchanged from previous configuration.
    • username name_string     JobTracker username.
Related Commands
Examples
  • For the CL2 cluster configuration, these commands establish a connection to the JobTracker node at 10.4.4.4 with the username account1. The default RPC port (8021) is implicitly specified.
    switch(config)#monitor hadoop
    switch(config-monitor-hadoop)#cluster CL2
    switch(config-monitor-hadoop-CL2)#jobtracker host 10.4.4.4 username account1
    switch(config-monitor-hadoop-CL2)#show active
    
    monitor hadoop
     cluster CL2
    jobtracker host 10.4.4.4 user account1
    
    switch(config-monitor-hadoop-CL2)#
  • These commands modify the JobTracker configuration to specify an RPC port of 9000.
    switch(config-monitor-hadoop-CL2)#jobtracker rpc-port 9000
    switch(config-monitor-hadoop-CL2)#show active
    
    monitor hadoop
     cluster CL2
    jobtracker host 10.4.4.4 rpc-port 9000 user account1
    
    switch(config-monitor-hadoop-CL2)#

monitor hadoop

The monitor hadoop command places the switch in monitor-hadoop configuration mode for configuring mapreduce tracer monitors. A mapreduce tracer monitor interacts with Hadoop cluster nodes that are directly attached to the switch. Tasks that the switch can perform through this interaction include:
  • compile a list of nodes in the cluster.
  • compile a list of jobs the nodes are running.
  • download progress of the running jobs.

Monitor-hadoop configuration mode is not a group change mode; running-config is changed immediately upon entering commands. Exiting monitor-hadoop configuration mode does not affect running-config. The exit command returns the switch to global configuration mode. mapreduce tracer is enabled in monitor-hadoop mode through the no version of the shutdown (Monitor Hadoop Cluster) command.

The no monitor hadoop and default monitor hadoop commands delete previously configured monitor hadoop mode configuration commands.

Command Mode

Global Configuration

Command Syntax

monitor hadoop

no monitor hadoop

default monitor hadoop

Commands Available in Monitor-hadoop Configuration Mode
Examples
  • These commands place the switch in monitor-hadoop configuration mode.
    switch(config)#monitor hadoop
    switch(config-monitor-hadoop)#
  • This command exits monitor-hadoop mode.
    switch(config-monitor-hadoop)#exit
    switch(config)#
  • This command deletes all previously configured monitor-hadoop configuration mode commands.
    switch(config)#no monitor hadoop
    switch(config)#

show monitor hadoop cluster all

The show monitor hadoop cluster all command displays configuration and connection information for all monitored Hadoop clusters.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster all

Example
This command displays configuration and connection data for all connected Hadoop clusters.
switch>show monitor hadoop cluster all

Total number of clusters configured: 3
Cluster : Cluster0
Admin status: Enabled
JobTracker host : host0
JobTracker RPC port : 9000
JobTracker user : user0
JobTracker polling interval : 100 seconds
TaskTracker HTTP port : 8800
Operational status: Enabled
Active TaskTrackers : 31
Blacklisted TaskTrackers: 1
Decommissioned TaskTrackers : 1
Tracker expiry interval : 20.0
Map slots (used/total): 10/100
Reduce slots (used/total) : 11/110
JobTracker heap size: 1.04GB (max: 2.08GB)

Cluster : Cluster1
Admin status: Enabled
JobTracker host : host1
JobTracker RPC port : 9001
JobTracker user : user1
JobTracker polling interval : 101 seconds
TaskTracker HTTP port : 8801
Operational status: Enabled
Active TaskTrackers : 32
Blacklisted TaskTrackers: 0
Decommissioned TaskTrackers : 0
Tracker expiry interval : 40.0
Map slots (used/total): 20/200
Reduce slots (used/total) : 22/220
JobTracker heap size: 2.09GB (max: 4.15GB)

Cluster : Cluster2
Admin status: Disabled
JobTracker host : host2
JobTracker RPC port : 9002
JobTracker user : user2
JobTracker polling interval : 102 seconds
TaskTracker HTTP port : 8802
Operational status: Disabled

show monitor hadoop cluster counters

The show monitor hadoop cluster counters command displays a list of jobs running on the specified Hadoop cluster and data consumption associated with these jobs.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name counters

Parameters
  • c_name    Cluster name.
Example
This command displays jobs running on cluster Cluster0.
switch>show monitor hadoop cluster Cluster0 counters

Last updated: 2013-10-06 18:14:23
Counters for currently running jobs on cluster: Cluster0
JobId Job NameUser Bytes In Bytes Out StartTime
------- ----------------- ---------- ---------- ----------- -------------------
2 ShortName2JobUser2 37.36GB76.29MB 2013-10-06 17:37:43
1 ReallyAVeryLon\ JobUser1 37.36GB76.29MB 2013-10-06 17:56:03
gNameForAJob1

switch>

show monitor hadoop cluster history jobs

The show monitor hadoop cluster history jobs command displays data about the specified job. Hadoop jobs are identified by job number and the cluster that ran the job.

Data that the command returns include job identifiers, JobTracker ID, start and stop times, and data consumption.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name history jobs job_number

Parameters
  • c_name     Cluster name.
  • job_number     Job number. Value ranges from 0 to 2147483647.
Example
This command displays information about job 1 that ran on cluster Cluster0.
switch>show monitor hadoop cluster Cluster0 history job 1

Job history data for job: HistoryJob1
Cluster : Cluster0
Job Id: 1
JT Id : 201310110013 
User: HistoryUser1
Job start time: 2013-10-06 17:57:43
Job end time: 2013-10-08 00:31:03

Per Interface job counters:
Interface TaskTrackerBytes In Bytes Out
--------------- ------------------ -------------- ---------
Ethernet7 TaskTracker2 26.08GB13.04GB

switch>

show monitor hadoop cluster history

The show monitor hadoop cluster history command displays all jobs that ran on the specified cluster. The list includes all jobs that ran since the switch was reloaded, the job history was cleared (clear monitor hadoop job-history), or mapreduce tracer was enabled.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name history

Parameters
  • c_name     Cluster name.
Example
This command displays the jobs that were ran on the cluster named Cluster0.
switch>show monitor hadoop cluster Cluster0 history

Jobs history on cluster: Cluster0
JobIdJob Name Start TimeEnd Time Bytes In Bytes Out
-------- ------------------ ------------- -------------- ------------ ---------
2AReallyBigHist\2013-10-062013-10-09 26.08GB13.04GB
 oricalJobName17:41:0306:47:43
2AReallyBigHist\2013-10-062013-10-09 26.08GB13.04GB
 oricalJobName17:41:0306:47:43
1HistoryJob12013-10-062013-10-08 26.08GB13.04GB
17:57:4300:31:03

switch>

show monitor hadoop cluster jobs counter

The show monitor hadoop cluster jobs counter command displays data consumption and progress statistics for the specified job.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name [jobs job_number] counter

Parameters
  • c_name     Cluster name.
  • job_number     Job number. Value ranges from 0 to 2147483647.
Example
This command displays byte counters for the job named 1 that is running on the cluster named Cluster0.
switch>show monitor hadoop cluster Cluster0 jobs 1 counters

Last updated: 2013-10-06 18:14:23
Cluster : Cluster0
Job Name : ReallyAVeryLongNameForAJob1
Job Id : 1
Interface HDFS Bytes ReadHDFS Bytes WrittenReduce Shuffle Bytes
----------------- ------------------ --------------------- --------------------
Port-Channel8 4.14GB 8.48MB12.72MB
Port-Channel9 6.21GB 12.72MB 19.07MB
Ethernet8 3.10GB 6.36MB9.54MB
Ethernet9 5.17GB 10.60MB 15.89MB
Port-Channel7 2.07GB 4.24MB6.36MB
Ethernet107.24GB 14.83MB 22.25MB
Port-Channel108.28GB 16.95MB 25.43MB
Ethernet7 1.03GB 2.12MB3.18MB

switch>

show monitor hadoop cluster jobs <job number>

The show monitor hadoop cluster jobs<job number> command displays information about the specified job. Hadoop jobs are identified by job ID and the cluster that is running the job.

Data that the command returns include time of update, job identifiers, start times, data consumption, and completion progress.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name[jobs job_number]

Parameters
  • c_name     Cluster name.
  • job_number     Job number. Value ranges from 0 to 2147483647.
Example
This command displays information about job 1 that is running on cluster Cluster0.
switch>show monitor hadoop cluster Cluster0 jobs 1

Last updated: 2013-10-06 18:14:23
Information for job: ReallyAVeryLongNameForAJob1 running on cluster: Cluster0
Cluster : Cluster0
Id : 1
Name : ReallyAVeryLongNameForAJob1
User : JobUser1
Priority : veryHigh
Running state: running
Number of map tasks: 2
Number of reduce tasks : 0
Start time : 2013-10-06 17:56:03
Bytes In : 37.36GB
Bytes Out: 76.29MB
Map Progress : 12.34%
Reduce Progress: 13.45% 
Cleanup Progress : 14.56%
Setup Progress : 15.67%

switch>

show monitor hadoop cluster jobs

The show monitor hadoop cluster jobs command displays a list of jobs that are running on the specified cluster.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name jobs

Parameters
  • c_name     Cluster name.
Example
This command displays the list of jobs running on cluster Cluster0.
switch>show monitor hadoop cluster Cluster0 jobs

Last updated: 2013-10-06 18:14:23
Currently running jobs on cluster: Cluster0
JobIdJob Name UserMapsReduces Start Time
-------- ------------------ ----------- ------- ----------- -------------------
2ShortName2 JobUser22 0 2013-10-06 17:37:43
1ReallyAVeryLon\JobUser12 0 2013-10-06 17:56:03
 gNameForAJob1

switch>

show monitor hadoop cluster status

The show monitor hadoop cluster status command displays configuration and connection information for the specified cluster.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name status

Parameters
  • c_name     Cluster name.
Example
This command displays configuration and connection data for the Cluster0 cluster.
switch>show monitor hadoop cluster Cluster0 status

Last updated: 2013-10-06 18:14:23
Cluster status for cluster: Cluster0
Admin status: Enabled
JobTracker host : host0
JobTracker RPC port : 9000
JobTracker user : user0
JobTracker polling interval : 100 seconds
TaskTracker HTTP port : 8800
Operational status: Enabled
Active TaskTrackers : 31 
Blacklisted TaskTrackers: 1 
Decommissioned TaskTrackers : 1
Tracker expiry interval : 20.0
Map slots (used/total): 10/100
Reduce slots (used/total) : 11/110
JobTracker heap size: 1.04GB (max: 2.08GB)

switch>

show monitor hadoop cluster tasktracker

The show monitor hadoop cluster tasktracker command displays a list of TaskTrackers in the specified cluster. The IP address and access interface is included in the table.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name tasktracker

Parameters
  • c_name     Cluster name.
Example
This command displays the TaskTrackers on the Cluster0 cluster.
switch>show monitor hadoop cluster Cluster0 tasktracker

Last updated: 2013-10-06 18:14:23
Total 2 TaskTrackers on cluster Cluster0:
NodeIP Address InterfaceMaps Reduces
------------- ------------ -------------- ------ -------
TaskTracker1 10.100.0.1 Ethernet740
TaskTracker2 10.100.0.2 Port-Channel740

switch>

show monitor hadoop counters

The show monitor hadoop counters command displays byte counter data for all jobs running on clusters for which mapreduce tracer is configured.

Command Mode

EXEC

Command Syntax

show monitor hadoop counters

Example
This command displays byte counter data for all jobs running on clusters that the switch is accessing through mapreduce tracer.
switch>show monitor hadoop counters

Last updated: 2013-10-06 18:14:23
Counters for running jobs:
JobId Job NameClusterBytes In Bytes Out Start Time
------- ----------------- ---------- ---------- ----------- -------------------
510002ShortName12 Cluster1 37.36GB76.29MB 2013-10-06 17:37:43
510001ReallyAVeryLon\ Cluster1 37.36GB76.29MB 2013-10-06 17:56:03
gNameForAJob11
2 ShortName2Cluster0 37.36GB76.29MB 2013-10-06 17:37:43
1 ReallyAVeryLon\ Cluster0 37.36GB76.29MB 2013-10-06 17:56:03
gNameForAJob1

switch>

show monitor hadoop history

The show monitor hadoop history command displays jobs that ran on clusters for which mapreduce tracer is configured. The list includes all jobs that ran since the switch was reloaded, mapreduce tracer was enabled, or the job history was cleared (clear monitor hadoop job-history).

Command Mode

EXEC

Command Syntax

show monitor hadoop history

Example
This command displays data that jobs that previously ran on connected Hadoop clusters.
switch>show monitor hadoop history

Job history for all clusters:
JobIdJob Name Cluster Start TimeEnd Time Bytes In Bytes Out
------ ---------------- --------- ----------- ------------ ---------- ---------
2AReallyBigHist\Cluster02013-10-062013-10-09 26.08GB13.04GB
 oricalJobName17:41:0306:47:43
442AReallyBigHist\Cluster12013-10-062013-10-09 26.08GB13.04GB 
 oricalJobName17:41:0306:47:43
442AReallyBigHist\Cluster12013-10-062013-10-09 26.08GB13.04GB
 oricalJobName17:41:0306:47:43
2AReallyBigHist\Cluster02013-10-062013-10-09 26.08GB13.04GB
 oricalJobName17:41:0306:47:43
441HistoryJob1Cluster12013-10-062013-10-08 26.08GB13.04GB
17:57:4300:31:03
1HistoryJob1Cluster02013-10-062013-10-08 26.08GB13.04GB
17:57:4300:31:03

switch>

show monitor hadoop status

The show monitor hadoop status command displays system status for mapreduce tracer.

Command Mode

EXEC

Command Syntax

show monitor hadoop status

Example
This command displays mapreduce tracer status for all connected clusters and TaskTrackers.
switch>show monitor hadoop status
Last updated: 2013-10-06 18:14:23
mapreduce tracer status:
Admin status : Enabled
Operational status : Enabled
Number of clusters configured: 3
Number of local TaskTrackers : 4
Number of jobs running locally : 4

switch>

show monitor hadoop tasktracker all counters

The show monitor hadoop tasktracker all counters command displays byte counters for the TaskTrackers of all monitored Hadoop clusters.

Command Mode

EXEC

Command Syntax

show monitor hadoop tasktracker all counters

Example
This command displays byte counter data for the TaskTrackers servicing all mapreduce tracer Hadoop clusters.
switch>show monitor hadoop tasktracker all counters

Last updated: 2013-10-06 18:14:23
Counters for all TaskTrackers:
Node IP Address Interface Bytes ReadBytes Written
---------------- -------------- ----------------- --------------- -------------
TaskTracker1 10.100.0.1 Ethernet7 2.08GB4.24MB
TaskTracker3 10.100.0.3 Ethernet8 6.23GB12.72MB
TaskTracker2 10.100.0.2 Port-Channel7 4.15GB8.48MB
TaskTracker4 10.100.0.4 Port-Channel8 8.30GB16.95MB

switch>

show monitor hadoop tasktracker all

The show monitor hadoop tasktracker all command displays a list of TaskTrackers that are on all monitored Hadoop clusters.

Command Mode

EXEC

Command Syntax

show monitor hadoop tasktracker all

Examples

Example
This command displays the TaskTrackers of all monitored clusters that are connected to the switch.
switch>show monitor hadoop tasktracker all

Last updated: 2013-10-06 18:14:23
All local TaskTrackers:
Node ClusterIP Address Interface Maps Reduces
---------------- ------------ -------------- ----------------- -------- -------
TaskTracker1 Cluster0 10.100.0.1Ethernet7 40
TaskTracker3 Cluster1 10.100.0.3Ethernet8 40
TaskTracker2 Cluster0 10.100.0.2Port-Channel7 40
TaskTracker4 Cluster1 10.100.0.4Port-Channel8 40

switch>

show monitor hadoop tasktracker counters

The show monitor hadoop tasktracker counters command displays a list of jobs running on the specified TaskTracker and output from byte counters associated with these jobs.

Command Mode

EXEC

Command Syntax

show monitor hadoop tasktracker NODES counters

Parameters
  • NODES     TaskTracker node access point. Options include:
    • host hostname     Node name.
    • interface ethernet e_range      Ethernet interfaces through which node connects.
    • interface port-channel p_range     Port channel interfaces through which node connects.
Examples
    • This command displays the jobs running on the TaskTracker on the TaskTracker1 node.
      switch>show monitor hadoop tasktracker host TaskTracker1 counters
      
      Last updated: 2013-10-06 18:14:23
      Running job for TaskTracker: TaskTracker1
      JobId Job NameClusterBytes In Bytes Out Start Time
      ------- ----------------- ---------- ---------- ----------- -------------------
      2 ShortName2Cluster0 37.36GB76.29MB 2013-10-06 17:37:43
      1 ReallyAVeryLon\ Cluster0 37.36GB76.29MB 2013-10-06 17:56:03
      gNameForAJob1
      
      Note: these counters are derived from Hadoop counters and represent approximate
      network bandwidth utilization
      
      switch>
    • This command displays jobs running on TaskTrackers accessed through Ethernet interfaces 7 and 8.
      switch>show monitor hadoop tasktracker interface Ethernet 7,8 counters
      
      Last updated: 2013-10-06 18:14:23
      Running job for TaskTracker: TaskTracker3
      JobId Job NameClusterBytes In Bytes Out Start Time
      ------- ----------------- ---------- ---------- ----------- -------------------
      510002ShortName12 Cluster1 37.36GB76.29MB 2013-10-06 17:37:43
      510001ReallyAVeryLon\ Cluster1 37.36GB76.29MB 2013-10-06 17:56:03
      gNameForAJob11
      
      Note: These counters are derived from Hadoop counters and represent approximate
      network bandwidth utilization
      
      Running job for TaskTracker: TaskTracker1
      JobId Job NameClusterBytes In Bytes Out Start Time
      ------- ----------------- ---------- ---------- ----------- -------------------
      2 ShortName2Cluster0 37.36GB76.29MB 2013-10-06 17:37:43
      1 ReallyAVeryLon\ Cluster0 37.36GB76.29MB 2013-10-06 17:56:03
      gNameForAJob1
      
      Note: these counters are derived from Hadoop counters and represent approximate
      network bandwidth utilization
      
      switch>
    • This command displays jobs running on TaskTrackers accessed through port channel interface 7.
      switch>show monitor hadoop tasktracker interface Port-Channel 7 counters
      
      Last updated: 2013-10-06 18:14:23
      Running job for TaskTracker: TaskTracker2
      JobId Job NameClusterBytes In Bytes Out Start Time
      ------- ----------------- ---------- ---------- ----------- -------------------
      2 ShortName2Cluster0 37.36GB76.29MB 2013-10-06 17:37:43
      1 ReallyAVeryLon\ Cluster0 37.36GB76.29MB 2013-10-06 17:56:03
      gNameForAJob1
      
      Note: these counters are derived from Hadoop counters and represent approximate
      network bandwidth utilization
      
      switch>

show monitor hadoop tasktracker jobs

The show monitor hadoop tasktracker jobs command displays data about the jobs that are running on TaskTrackers located on the specified node or accessed through the listed interfaces.

Including a cluster parameter filters results to include data only from the cluster polled by the specified monitor.

Command Mode

EXEC

Command Syntax

show monitor hadoop tasktracker NODES jobs [CLUSTERS]

Parameters
  • NODES     TaskTracker node access point. Options include:
    • host hostname     Node name.
    • interface ethernet e_range      Ethernet interfaces through which node connects.
    • interface port-channel p_range     Port channel interfaces through which node connects.
  • CLUSTERS     Hadoop cluster for which command displays data. Options include:
    • <no parameter>     TaskTracker on specified NODE can be in any cluster.
    • cluster c_name     TaskCluster on specified NODE must be in named cluster.
Examples
  • This command displays data for jobs running on TaskTracker1.
    switch>show monitor hadoop tasktracker host TaskTracker1 jobs
    
    Last updated: 2013-10-06 18:14:23
    Running job for TaskTracker: TaskTracker1
    JobIdJob Name Cluster Maps(#/%)Reduces(#/%) Start Time
    ------ ---------------- --------- ---------- -------------- -------------------
    1ReallyAVeryLon\Cluster02/12.34% 0/13.45% 2013-10-06 17:56:03
     gNameForAJob1
    2ShortName2 Cluster02/24.68% 0/26.90% 2013-10-06 17:37:43
    
    switch>
  • This command displays data for jobs on TaskTrackers accessed through Ethernet interfaces 7 and 8.
    switch>show monitor hadoop tasktracker interface Ethernet 7,8 jobs
    
    Last updated: 2013-10-06 18:14:23
    Running job for TaskTracker: TaskTracker3
    JobId Job Name Cluster Maps(#/%)Reduces(#/%)Start Time
    ------- ---------------- --------- ---------- ------------- -------------------
    510001ReallyAVeryLon\Cluster12/12.34% 0/13.45%2013-10-06 17:56:03
    gNameForAJob11
    510002ShortName12Cluster12/24.68% 0/26.90%2013-10-06 17:37:43
    
    Running job for TaskTracker: TaskTracker1
    JobIdJob Name Cluster Maps(#/%)Reduces(#/%) Start Time
    ------ ---------------- --------- ---------- -------------- -------------------
    1ReallyAVeryLon\Cluster02/12.34% 0/13.45% 2013-10-06 17:56:03
     gNameForAJob1
    2ShortName2 Cluster02/24.68% 0/26.90% 2013-10-06 17:37:43
    
    switch>
  • This command displays data for jobs on TaskTrackers accessed through port channel interface 7.
    switch>show monitor hadoop tasktracker interface Port-Channel 7 jobs
    
    Last updated: 2013-10-06 18:14:23
    Running job for TaskTracker: TaskTracker2
    JobIdJob Name Cluster Maps(#/%)Reduces(#/%) Start Time
    ------ ---------------- --------- ---------- -------------- -------------------
    1ReallyAVeryLon\Cluster02/12.34% 0/13.45% 2013-10-06 17:56:03
     gNameForAJob1
    2ShortName2 Cluster02/24.68% 0/26.90% 2013-10-06 17:37:43
    
    switch>
  • This command displays data for jobs on TaskTrackers on the Cluster0 cluster that are accessed through Ethernet interfaces 7 and 8.
    switch>show monitor hadoop tasktracker interface Ethernet 7,8 jobs cluster Cluster0
    
    Last updated: 2013-10-06 18:14:23
    Running job for TaskTracker: TaskTracker1
    JobIdJob Name Cluster Maps(#/%)Reduces(#/%) Start Time
    ------ ---------------- --------- ---------- -------------- -------------------
    1ReallyAVeryLon\Cluster02/12.34% 0/13.45% 2013-10-06 17:56:03
     gNameForAJob1
    2ShortName2 Cluster02/24.68% 0/26.90% 2013-10-06 17:37:43
    
    switch>
  • This command displays data for jobs on TaskTracker named TaskTracker1 on the Cluster0 cluster.
    switch>show monitor hadoop tasktracker host TaskTracker1 jobs cluster Cluster0
    
    Last updated: 2013-10-06 18:14:23
    Running job for TaskTracker: TaskTracker1
    JobIdJob Name Cluster Maps(#/%)Reduces(#/%) Start Time
    ------ ---------------- --------- ---------- -------------- -------------------
    1ReallyAVeryLon\Cluster02/12.34% 0/13.45% 2013-10-06 17:56:03
     gNameForAJob1
    2ShortName2 Cluster02/24.68% 0/26.90% 2013-10-06 17:37:43
    
    switch>
  • This command displays data for jobs on TaskTrackers on the Cluster0 cluster that are accessed through port channel interface 7.
    switch>show monitor hadoop tasktracker interface Port-Channel 7 jobs cluster Cluster0
    
    Last updated: 2013-10-06 18:14:23
    Running job for TaskTracker: TaskTracker2
    JobIdJob Name Cluster Maps(#/%)Reduces(#/%) Start Time
    ------ ---------------- --------- ---------- -------------- -------------------
    1ReallyAVeryLon\Cluster02/12.34% 0/13.45% 2013-10-06 17:56:03
     gNameForAJob1
    2ShortName2 Cluster02/24.68% 0/26.90% 2013-10-06 17:37:43
    
    switch>

show monitor hadoop tasktracker running-tasks cluster job task

The show monitor hadoop tasktracker running-tasks cluster job task command displays detailed data for the specified task.

Command Mode

EXEC

Command Syntax

show monitor hadoop tasktracker NODE [running-tasks cluster name][ job jnum ][task tnum]

Parameters
  • NODE     TaskTracker node access point. Options include:
    • host hostname     Node name.
    • interface ethernet e_range      Ethernet interfaces through which node connects.
    • interface port-channel p_range     Port channel interfaces through which node connects.
  • name     Cluster name.
  • jnum     Job number. Value ranges from 0 to 2147483647.
  • tnum     Task number. Value ranges from 0 to 2147483647.
Examples
  • This command displays data for task 1 of job 1 on TaskTracker1 of Cluster0.
    switch>show monitor hadoop tasktracker host TaskTracker1 running-tasks cluster Cluster0 job 1 task 1
    
    Last updated: 2013-10-06 18:14:23
    Task details for one task as given below: 
    TaskTracker name : TaskTracker1
    Interface: 'Ethernet7'
    Cluster: Cluster0
    Job Id : 1
    Task Id: 1
    Attempt Id : 0
    Task type: Map
    Status : running
    State: running
    Start time : 2013-10-06 17:57:43
    Progress : 50.00%
    HDFS bytes read: 1.05MB
    HDFS bytes written : 1.07MB
    Reduce shuffle bytes : 1.48MB
    
    switch>
  • This command displays data for task 1 of job 1 on the Cluster0 TaskTracker that is accessible through Ethernet interface 7.
    switch>show monitor hadoop tasktracker interface Ethernet 7 running-tasks cluster Cluster0 job 1 task 1
    
    Last updated: 2013-10-06 18:14:23
    Task details for one task as given below:
    TaskTracker name : TaskTracker1
    Interface: 'Ethernet7'
    Cluster: Cluster0
    Job Id : 1
    Task Id: 1
    Attempt Id : 0 
    Task type: Map
    Status : running
    State: running
    Start time : 2013-10-06 17:57:43
    Progress : 50.00%
    HDFS bytes read: 1.05MB
    HDFS bytes written : 1.07MB
    Reduce shuffle bytes : 1.48MB
    
    switch>
  • This command displays data for task 111 of job 510001 on the Cluster0 TaskTracker that is accessible through port channel interface 8.
    switch>show monitor hadoop tasktracker interface Port-Channel 8 running-tasks cluster Cluster1 job 510001 task 111
    
    Last updated: 2013-10-06 18:14:23
    Task details for one task as given below:
    TaskTracker name : TaskTracker4
    Interface: 'Port-Channel8'
    Cluster: Cluster1
    Job Id : 510001
    Task Id: 111
    Attempt Id : 0
    Task type: Map
    Status : running
    State: running
    Start time : 2013-10-06 17:57:43
    Progress : 50.00%
    HDFS bytes read: 1.05MB
    HDFS bytes written : 1.07MB
    Reduce shuffle bytes : 1.48MB
    
    switch>

show monitor hadoop tasktracker running-tasks

The show monitor hadoop tasktracker running-tasks command displays progress and byte counts of tasks executed by TaskTrackers located on the specified node or accessed through the listed interfaces.

Including a cluster-ID parameter filters results to include data only from the specified cluster.

Command Mode

EXEC

Command Syntax

show monitor hadoop tasktracker NODES running-tasks [CLUSTERS][JOBS]

Parameters
  • NODES     TaskTracker node access point. Options include:
    • host hostname     Node name.
    • interface ethernet e_range      Ethernet interfaces through which node connects.
    • interface port-channel p_range     Port channel interfaces through which node connects.
  • CLUSTERS     Hadoop cluster for which command displays data. Options include:
    • <no parameter>     TaskTracker on specified NODE can be in any cluster.
    • cluster c_name     TaskCluster on specified NODE must be in named cluster.
  • JOBS     Job list. Options include:
    • <no parameter>     all jobs.
    • job <0 to 2147483647>      Specifies number of single job.
Examples
  • This command displays data for tasks running on TaskTracker named TaskTracker1.
    switch>show monitor hadoop tasktracker host TaskTracker1 running-tasks
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker1 on interface Ethernet7
    JobId TaskIdCluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ----- ------- --------- ----- --------- -------- ---------- ----------- -------
    1 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    2 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    1 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    2 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>
  • This command displays data for tasks running on the TaskTracker named TaskTracker1 of the Cluster0 cluster.
    switch>show monitor hadoop tasktracker host TaskTracker1 running-tasks cluster
    Cluster0
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker1 on interface Ethernet7
    JobId TaskIdCluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ----- ------- --------- ----- --------- -------- ---------- ----------- -------
    1 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    2 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    1 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    2 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>
  • This command displays data for tasks running for job 1 on the TaskTracker named TaskTracker1 of the Cluster0 cluster.
    switch>show monitor hadoop tasktracker host TaskTracker1 running-tasks cluster
    Cluster0 job 1
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker1 on interface Ethernet7
    JobId TaskIdCluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ----- ------- --------- ----- --------- -------- ---------- ----------- -------
    1 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    1 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>
  • This command displays data for tasks running on TaskTrackers accessed through Ethernet interfaces 7 and 8.
    switch>show monitor hadoop tasktracker interface Ethernet 7,8 running-tasks
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker1 on interface Ethernet7
    JobId TaskIdCluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ----- ------- --------- ----- --------- -------- ---------- ----------- -------
    2 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    1 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    2 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    
    Running tasks for TaskTracker: TaskTracker3 on interface Ethernet8
    JobIdTaskIdClusterTypeProgressStatus HDFS ReadHDFS WriteShuffle
    ------ ------ --------- ----- --------- -------- ---------- ----------- -------
    510002 222Cluster1Map 33.33%running2.10MB 2.14MB2.96MB
    510001 112Cluster1Map 33.33%running2.10MB 2.14MB2.96MB
    510002 221Cluster1Map 50.00%running1.05MB 1.07MB1.48MB
    510001 111Cluster1Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>
  • This command displays data for tasks running on TaskTrackers of Cluster0 cluster that are accessed through Ethernet interfaces 7 and 8.
    switch>show monitor hadoop tasktracker interface Ethernet 7,8 running-tasks
    cluster Cluster0
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker1 on interface Ethernet7
    JobId TaskIdCluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ----- ------- --------- ----- --------- -------- ---------- ----------- -------
    1 2Cluster0 Map 33.33%running2.10MB 2.14MB2.96MB
    2 2Cluster0 Map 33.33%running2.10MB 2.14MB2.96MB
    1 1Cluster0 Map 50.00%running1.05MB 1.07MB1.48MB
    2 1Cluster0 Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>
  • This command displays data for tasks running for job 1 on the TaskTrackers of Cluster0 cluster that are accessed through Ethernet interfaces 7 and 8
    switch>show monitor hadoop tasktracker interface Ethernet 7,8 running-tasks
    cluster Cluster0 job 1
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker1 on interface Ethernet7
    JobId TaskIdCluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ----- ------- --------- ----- --------- -------- ---------- ----------- -------
    1 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    1 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>
  • This command displays data for tasks running on TaskTrackers accessed through port channe l interfaces 7 and 8.
    switch>show monitor hadoop tasktracker interface Port-Channel 7-8 running-tasks
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker2 on interface Port-Channel7
    JobId TaskIdCluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ----- ------- --------- ----- --------- -------- ---------- ----------- -------
    1 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    1 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    2 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    
    Running tasks for TaskTracker: TaskTracker4 on interface Port-Channel8
    JobIdTaskId Cluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ------ ------ --------- ----- --------- -------- ---------- ----------- -------
    510002 222Cluster1Map 33.33%running2.10MB 2.14MB2.96MB
    510001 112Cluster1Map 33.33%running2.10MB 2.14MB2.96MB
    510001 111Cluster1Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>
  • This command displays data for tasks running on TaskTrackers of Cluster0 cluster accessed through port channel interface 7.
    switch>show monitor hadoop tasktracker interface Port-Channel 7 running-tasks
    cluster Cluster0
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker2 on interface Port-Channel7
    JobId TaskIdCluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ----- ------- --------- ----- --------- -------- ---------- ----------- -------
    1 2 Cluster0Map 33.33%running2.10MB 2.14MB2.96MB
    1 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    2 1 Cluster0Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>
  • This command displays data for job 510001 running on TaskTrackers of Cluster1 cluster that are accessed through port channel interface 8.
    switch>show monitor hadoop tasktracker interface Port-Channel 8 running-tasks
    cluster Cluster1 job 510001
    
    Last updated: 2013-10-06 18:14:23
    Running tasks for TaskTracker: TaskTracker4 on interface Port-Channel8
    JobIdTaskId Cluster TypeProgressStatus HDFS ReadHDFS WriteShuffle
    ------ ------ --------- ----- --------- -------- ---------- ----------- -------
    510001 112Cluster1Map 33.33%running2.10MB 2.14MB2.96MB
    510001 111Cluster1Map 50.00%running1.05MB 1.07MB1.48MB
    
    switch>

show monitor hadoop tasktracker status

The show monitor hadoop tasktracker status command displays connection and activity information for the TaskTracker on the specified clusters or accessed through the specified interface. The following command formats display the listed TaskTracker information:

  • show monitor hadoop cluster c_name tasktracker status: TaskTrackers on specified cluster.
  • show monitor hadoop tasktracker node status: TaskTrackers on specified nodes or interfaces.
  • show monitor hadoop tasktracker all status: all connected TaskTrackers.

Command Mode

EXEC

Command Syntax

show monitor hadoop cluster c_name tasktracker status

show monitor hadoop tasktracker NODES status

show monitor hadoop tasktracker all status

Parameters
  • c_name     Cluster name.
  • NODESTaskTracker node access point. Options include:
    • host hostname      Node name.
    • interface ethernet e_range       Ethernet interfaces through which node connects.
    • interface port-channel p_range     Port channel interfaces through which node connects.
Examples
  • This command displays connection and activity information for all TaskTrackers connected through Ethernet interfaces 7 and 8.
    switch>show monitor hadoop tasktracker interface Ethernet7,8 status
    
    Last updated: 2013-10-06 18:14:23
    TaskTracker: TaskTracker1
    IP Address : 10.100.0.1
    Interface: Ethernet7 
    State: active
    Running jobs : 2
    Running tasks: 4
    Map Tasks: 4
    Reduce Tasks : 0
    Total bytes read : 2.08GB
    Total bytes written: 4.24MB
    TaskTracker: TaskTracker3
    IP Address : 10.100.0.3
    Interface: Ethernet8
    State: active
    Running jobs : 2
    Running tasks: 4
    Map Tasks: 4
    Reduce Tasks : 0
    Total bytes read : 6.23GB
    Total bytes written: 12.72MB
    
    switch>
  • This command displays connection and activity information for all connected TaskTrackers.
    switch>show monitor hadoop tasktracker all status
    
    Last updated: 2013-10-06 18:14:23
    All local TaskTrackers:
    TaskTracker: TaskTracker4
    IP Address : 10.100.0.4
    Interface: Port-Channel8 
    State: active
    Running jobs : 2
    Running tasks: 4
    Map Tasks: 4
    Reduce Tasks : 0
    Total bytes read : 8.30GB
    Total bytes written: 16.95MB 
    
    TaskTracker: TaskTracker3
    IP Address : 10.100.0.3
    Interface: Ethernet8
    State: active
    Running jobs : 2
    Running tasks: 4
    Map Tasks: 4
    Reduce Tasks : 0
    Total bytes read : 6.23GB
    Total bytes written: 12.72MB
    
    TaskTracker: TaskTracker2
    IP Address : 10.100.0.2
    Interface: Port-Channel7
    State: active
    Running jobs : 2
    Running tasks: 4
    Map Tasks: 4
    Reduce Tasks : 0
    Total bytes read : 4.15GB
    Total bytes written: 8.48MB
    
    TaskTracker: TaskTracker1
    IP Address : 10.100.0.1
    Interface: Ethernet7
    State: active
    Running jobs : 2
    Running tasks: 4
    Map Tasks: 4
    Reduce Tasks : 0
    Total bytes read : 2.08GB
    Total bytes written: 4.24MB
    
    switch>
  • This command displays connection and activity data for TaskTracker on the TaskTracker1 node.
    switch>show monitor hadoop tasktracker host TaskTracker1 status
    
    Last updated: 2013-10-06 18:14:23
    TaskTracker: TaskTracker1
    IP Address : 10.100.0.1
    Interface: Ethernet7
    State: active
    Running jobs : 2
    Running tasks: 4
    Map Tasks: 4
    Reduce Tasks : 0
    Total bytes read : 2.08GB
    Total bytes written: 4.24MB
    
    switch>
  • This command displays connection and activity data for all TaskTracker connected through Port Channel 7.
    switch>show monitor hadoop tasktracker interface Port-Channel 7 status
    
    Last updated: 2013-10-06 18:14:23
    TaskTracker: TaskTracker2
    IP Address : 10.100.0.2
    Interface: Port-Channel7
    State: active
    Running jobs : 2
    Running tasks: 4
    Map Tasks: 4
    Reduce Tasks : 0
    Total bytes read : 4.15GB
    Total bytes written: 8.48MB
    
    switch>

show monitor hadoop traffic burst

The show monitor hadoop traffic burst command displays the largest data bursts for specified Hadoop cluster jobs. A data burst is the data consumed during a polling interval. The command displays input and output burst:
  • Input bursts include bytes written to the host.
  • Output bursts include bytes written by the host.

Command Mode

EXEC

Command Syntax

show monitor hadoop [CLUSTERS] traffic burst [NODE]

Parameters
  • CLUSTERS Hadoop clusters for which command displays data. Options include:
    • <no parameter>     All clusters.
    • cluster c_name     Cluster name.
  • NODES TaskTracker node access point. Options include:
    • host hostname      Node name.
    • interface ethernet e_range       Ethernet interfaces through which node connects.
    • interface port-channel p_range     Port channel interfaces through which node connects.
Examples
  • This command displays traffic burst data for all running jobs.
    switch>show monitor hadoop traffic burst
    Last updated: 2013-10-06 18:14:23
    Bursts on Interface: 'Ethernet7' in cluster: Cluster0
    Top 2 input bursts:
    JobIdJob Name BurstTime
    ------ ---------------- -------- -------------------
    1ShortName 3.07GB2013-10-06 17:57:43
    2ReallyAVeryLon\ 6.15GB2013-10-06 17:41:03
     gNameForAJob
    
    Top 2 output bursts:
    JobIdJob NameBurstTime
    ------ ---------------- -------- -------------------
    1 ShortName 4.10GB2013-10-06 17:55:13
    2 ReallyAVeryLon\ 8.20GB2013-10-06 17:36:03 
    gNameForAJob
    
    Bursts on Interface: 'Port-Channel7' in cluster: Cluster0
    Top 2 input bursts:
    JobIdJob Name BurstTime
    ------ ---------------- -------- -------------------
    1 ShortName3.07GB2013-10-06 17:57:43
    2 ReallyAVeryLon\6.15GB2013-10-06 17:41:03 
    gNameForAJob
    
    Top 2 output bursts:
    JobIdJob Name BurstTime
    ------ ---------------- -------- -------------------
    1 ShortName4.10GB2013-10-06 17:55:13
    2 ReallyAVeryLon\8.20GB2013-10-06 17:36:03
    gNameForAJob
    
    Bursts on Interface: 'Ethernet8' in cluster: Cluster1
    Top 4 input bursts:
    JobId Job Name BurstTime
    ------- ---------------- -------- -------------------
    510001 ShortName3.07GB2013-10-06 17:57:43
    510002 ReallyAVeryLon\6.15GB2013-10-06 17:41:03
     gNameForAJob
    510003 ShortName9.22GB 2013-10-06 17:24:23
    510004 ReallyAVeryLon\12.29GB2013-10-06 17:07:43
     gNameForAJob
    
    Top 4 output bursts:
    JobIdJob NameBurstTime
    ------ ----------------- -------- -------------------
    510001ShortName 4.10GB2013-10-06 17:55:13
    510002ReallyAVeryLon\ 8.20GB2013-10-06 17:36:03
    gNameForAJob
    510003ShortName 12.29GB2013-10-06 17:16:53
    510004ReallyAVeryLon\ 16.39GB2013-10-06 16:57:43
    gNameForAJob
    
    Bursts on Interface: 'Port-Channel8' in cluster: Cluster1
    Top 4 input bursts:
    JobIdJob Name Burst Time
    ------ ---------------- --------- -------------------
    3101
    510001ShortName3.07GB2013-10-06 17:57:43
    510002ReallyAVeryLon\6.15GB2013-10-06 17:41:03
    gNameForAJob
    510003ShortName 9.22GB2013-10-06 17:24:23
    510004ReallyAVeryLon\ 12.29GB 2013-10-06 17:07:43
    gNameForAJob
    
    Top 4 output bursts:
    JobIdJob Name BurstTime
    ------ ---------------- -------- -------------------
    510001ShortName4.10GB2013-10-06 17:55:13
    510002ReallyAVeryLon\8.20GB2013-10-06 17:36:03
    gNameForAJob
    510003ShortName12.29GB2013-10-06 17:16:53
    510004ReallyAVeryLon\16.39GB2013-10-06 16:57:43
    gNameForAJob
    
    switch>
  • This command displays traffic burst for all jobs running on TaskTrackers that are accessible through Ethernet interfaces 7 and 8.
    switch>show monitor hadoop traffic burst interface Ethernet 7,8
    
    Last updated: 2013-10-06 18:14:23
    Bursts on Interface: 'Ethernet7' in cluster: Cluster0
    Top 2 input bursts:
    JobIdJob NameBurstTime
    ------ --------------- ------ -------------------
    1ShortName 3.07GB 2013-10-06 17:57:43
    2ReallyAVeryLon\ 6.15GB 2013-10-06 17:41:03
     gNameForAJob
    
    Top 2 output bursts:
    JobIdJob NameBurst Time
    ------ --------------- ------- -------------------
    1ShortName4.10GB 2013-10-06 17:55:13
    2ReallyAVeryLon\8.20GB 2013-10-06 17:36:03
     gNameForAJob
    
    Bursts on Interface: 'Ethernet8' in cluster: Cluster1
    Top 4 input bursts:
    JobIdJob Name BurstTime
    ------ ---------------- -------- -------------------
    510001ShortName 3.07GB 2013-10-06 17:57:43
    510002ReallyAVeryLon\ 6.15GB 2013-10-06 17:41:03
    gNameForAJob
    510003ShortName9.22GB 2013-10-06 17:24:23
    510004ReallyAVeryLon\12.29GB2013-10-06 17:07:43
    gNameForAJob
    
    Top 4 output bursts:
    JobIdJob NameBurstTime
    ------ --------------- -------- -------------------
    510001 ShortName4.10GB2013-10-06 17:55:13
    510002 ReallyAVeryLon\8.20GB2013-10-06 17:36:03 
     gNameForAJob
    510003 ShortName12.29GB2013-10-06 17:16:53
    510004 ReallyAVeryLon\16.39GB2013-10-06 16:57:43
     gNameForAJob
    
    switch>
  • This command displays traffic burst data for all running jobs that are accessible through port channel interface 7.
    switch>show monitor hadoop traffic burst interface Port-Channel 7
    
    Last updated: 2013-10-06 18:14:23
    Bursts on Interface: 'Port-Channel7' in cluster: Cluster0
    Top 2 input bursts:
    JobIdJob NameBurst Time
    ------ --------------- ------- -------------------
    1ShortName 3.07GB2013-10-06 17:57:43
    2ReallyAVeryLon\ 6.15GB2013-10-06 17:41:03
     gNameForAJob
    
    Top 2 output bursts:
    JobIdJob NameBurst Time
    ------ --------------- ------- -------------------
    1ShortName 4.10GB2013-10-06 17:55:13
    2ReallyAVeryLon\ 8.20GB2013-10-06 17:36:03
     gNameForAJob

show monitor hadoop

The show monitor hadoop command displays a list of jobs that are running on all monitored Hadoop clusters.

Command Mode

EXEC

Command Syntax

show monitor hadoop

Example
This command displays the jobs that are running on all monitored clusters.
switch>show monitor hadoop

Last updated: 2013-10-06 18:14:23
Currently running jobs: 4
JobIdJob Name Cluster Maps(#/%)Reduces(#/%)Start Time
--------------------- --------- ---------- ------------- -------------------
1ReallyAVeryLon\Cluster02/12.34% 0/13.45%2013-10-06 17:56:03
 gNameForAJob1
2ShortName2 Cluster02/24.68% 0/26.90%2013-10-06 17:37:43
510001 ReallyAVeryLon\Cluster12/12.34% 0/13.45%2013-10-06 17:56:03
 gNameForAJob11
510002 ShortName12Cluster12/24.68% 0/26.90%2013-10-06 17:37:43

switch>

shutdown (Monitor Hadoop Cluster)

The shutdown command disables mapreduce tracer for the configuration mode cluster. Globally disabling mapreduce tracer (show monitor hadoop) also disables the function on the individual cluster. Enabling mapreduce tracer for the cluster requires the function to be enabled globally and for the individual cluster.

The no shutdown command configures the mapreduce tracer setting as enabled for the configuration mode cluster. The shutdown and default shutdown commands disable mapreduce tracer for the cluster by removing the corresponding no shutdown command from running-config.

Command Mode

Monitor-hadoop-cluster Configuration

Command Syntax

shutdown

no shutdown

default shutdown

Related Commands
Example
  • These commands globally enable mapreduce tracer, then enables it for the CL2 cluster.
    switch(config)#monitor hadoop
    switch(config-monitor-hadoop)#no shutdown
    switch(config-monitor-hadoop)#cluster CL2
    switch(config-monitor-hadoop-CL2)#no shutdown
    switch(config-monitor-hadoop-CL2)#show active
    monitor hadoop
     cluster CL2
    no shutdown
    switch(config-monitor-hadoop-CL2)#exit
    switch(config-monitor-hadoop)#show active
     monitor hadoop
     no shutdown
     cluster CL2
    no shutdown
    switch(config-monitor-hadoop)#
  • These commands disable mapreduce tracer for the CL2 cluster. mapreduce tracer remains globally enabled.
    switch(config-monitor-hadoop)#cluster CL2
    switch(config-monitor-hadoop-CL2)#shutdown
    switch(config-monitor-hadoop-CL2)#show active
    monitor hadoop
     cluster CL2
    switch(config-monitor-hadoop-CL2)#exit
    switch(config-monitor-hadoop)#show active
     monitor hadoop
     no shutdown
     cluster CL2
    switch(config-monitor-hadoop)#

shutdown (Monitor-Hadoop)

The shutdown command globally disables mapreduce tracer on the switch. Enabling mapreduce tracer for an individual cluster requires the feature to be globally enabled through this command and enabled for the individual cluster thorough the shutdown (Monitor Hadoop Cluster) command. By default, mapreduce tracer is globally disabled.

The no shutdown command globally enables mapreduce tracer. The shutdown and default shutdown commands globally disable mapreduce tracer by removing the corresponding no shutdown command from running-config.

Command Mode

Monitor-hadoop Configuration

Command Syntax

shutdown

no shutdown

default shutdown

Related Commands
  • monitor hadoop places the switch in monitor-hadoop configuration mode.
Examples
  • These commands globally enable mapreduce tracer.
    switch(config)#monitor hadoop
    switch(config-monitor-hadoop)#no shutdown
    switch(config-monitor-hadoop)#show active
     monitor hadoop
     no shutdown
    switch(config-monitor-hadoop)#
  • This command globally disables mapreduce tracer.
    switch(config-monitor-hadoop)#shutdown
    switch(config-monitor-hadoop)#show active
    switch(config-monitor-hadoop)#

tasktracker (Monitor Hadoop Cluster)

The tasktracker command specifies the HTTP port for accessing TaskTrackers of the Hadoop cluster monitored through configuration mode statements. The switch compiles a list of the cluster’s TaskTracker addresses by periodically polling the cluster’s JobTracker (jobtracker (Monitor Hadoop Cluster)). The default TaskTracker HTTP port is 50060.

The no tasktracker and default tasktracker commands restore the configuration mode TaskTracker HTTP port to 50060 by removing the corresponding tasktracker command from running-config.

Command Mode

Monitor-hadoop-cluster Configuration

Command Syntax

tasktracker http-port port_number

no tasktracker http-port

default tasktracker http-port

Parameters
  • port_num      TaskTracker HTTP port number. Value ranges from 1 to 65535. Default value is 50060.
Related Commands
Examples
  • These commands specify a TaskTracker HTTP port address of 51000.
    switch(config)#monitor hadoop
    switch(config-monitor-hadoop)#cluster CL2
    switch(config-monitor-hadoop-CL2)#tasktracker http-port 51000
    switch(config-monitor-hadoop-CL2)#show active
    monitor hadoop
     cluster CL2
    tasktracker http-port 51000
    switch(config-monitor-hadoop-CL2)#
  • These commands restore the default TaskTracker HTTP port address of 50060.
    switch(config-monitor-hadoop-CL2)#no tasktracker http-port
    switch(config-monitor-hadoop-CL2)#show active
    monitor hadoop
     cluster CL2
    switch(config-monitor-hadoop-CL2)#show active all
    monitor hadoop
     cluster CL2
    jobtracker rpc-port 8021
    tasktracker http-port 50060
    interval 10
    shutdown
    switch(config-monitor-hadoop-CL2)#