Interface DataNodeMXBean

All Known Implementing Classes:
DataNode

@Private @Stable public interface DataNodeMXBean
This is the JMX management interface for data node information. End users shouldn't be implementing these interfaces, and instead access this information through the JMX APIs.
  • Method Details

    • getVersion

      String getVersion()
      Gets the version of Hadoop.
      Returns:
      the version of Hadoop
    • getSoftwareVersion

      String getSoftwareVersion()
      Get the version of software running on the DataNode
      Returns:
      a string representing the version
    • getRpcPort

      String getRpcPort()
      Gets the rpc port.
      Returns:
      the rpc port
    • getHttpPort

      String getHttpPort()
      Gets the http port.
      Returns:
      the http port
    • getDataPort

      String getDataPort()
      Gets the data port.
      Returns:
      the data port
    • getNamenodeAddresses

      String getNamenodeAddresses()
      Gets the namenode IP addresses.
      Returns:
      the namenode IP addresses that the datanode is talking to
    • getDatanodeHostname

      String getDatanodeHostname()
      Gets the datanode hostname.
      Returns:
      the datanode hostname for the datanode.
    • getBPServiceActorInfo

      String getBPServiceActorInfo()
      Gets information of the block pool service actors.
      Returns:
      block pool service actors info
    • getVolumeInfo

      String getVolumeInfo()
      Gets the information of each volume on the Datanode. Please see the implementation for the format of returned information.
      Returns:
      the volume info
    • getClusterId

      String getClusterId()
      Gets the cluster id.
      Returns:
      the cluster id
    • getXceiverCount

      int getXceiverCount()
      Returns the number of active xceivers.
    • getActiveTransferThreadCount

      int getActiveTransferThreadCount()
      Returns the number of Datanode threads actively transferring blocks.
    • getXmitsInProgress

      int getXmitsInProgress()
      Returns an estimate of the number of data replication/reconstruction tasks running currently.
    • getDatanodeNetworkCounts

      Map<String,Map<String,Long>> getDatanodeNetworkCounts()
      Gets the network error counts on a per-Datanode basis.
    • getDiskBalancerStatus

      String getDiskBalancerStatus()
      Gets the diskBalancer Status. Please see implementation for the format of the returned information.
      Returns:
      DiskBalancer Status
    • getSendPacketDownstreamAvgInfo

      String getSendPacketDownstreamAvgInfo()
      Gets the average info (e.g. time) of SendPacketDownstream when the DataNode acts as the penultimate (2nd to the last) node in pipeline.

      Example Json: {"[185.164.159.81:9801]RollingAvgTime":504.867, "[49.236.149.246:9801]RollingAvgTime":504.463, "[84.125.113.65:9801]RollingAvgTime":497.954}

    • getSlowDisks

      String getSlowDisks()
      Gets the slow disks in the Datanode.
      Returns:
      list of slow disks
    • isSecurityEnabled

      boolean isSecurityEnabled()
      Gets if security is enabled.
      Returns:
      true, if security is enabled.
    • getDNStartedTimeInMillis

      long getDNStartedTimeInMillis()
      Get the start time of the DataNode.
      Returns:
      Start time of the DataNode.