org.apache.hadoop.hdfs.server.namenode
Interface NameNodeMXBean


@InterfaceAudience.Public
@InterfaceStability.Stable
public interface NameNodeMXBean

This is the JMX management interface for namenode information


Method Summary
 String getBlockPoolId()
          Gets the block pool id.
 long getBlockPoolUsedSpace()
          Get the total space used by the block pools of this namenode
 long getCacheCapacity()
          Returns the total cache capacity of the datanode (in bytes).
 long getCacheUsed()
          Returns the amount of cache used by the datanode (in bytes).
 String getClusterId()
          Gets the cluster id.
 String getCompileInfo()
          Get the compilation information which contains date, user and branch
 String getCorruptFiles()
          Get the list of corrupt files
 String getDeadNodes()
          Gets the dead node information of the cluster.
 String getDecomNodes()
          Gets the decommissioning node information of the cluster.
 int getDistinctVersionCount()
          Get the number of distinct versions of live datanodes
 Map<String,Integer> getDistinctVersions()
          Get the number of live datanodes for each distinct versions
 long getFree()
          Gets total non-used raw bytes.
 String getJournalTransactionInfo()
          Get information about the transaction ID, including the last applied transaction ID and the most recent checkpoint's transaction ID
 String getLiveNodes()
          Gets the live node information of the cluster.
 String getNameDirStatuses()
          Get status information about the directories storing image and edits logs of the NN.
 String getNameJournalStatus()
          Get status information about the journals of the NN.
 String getNNStarted()
          Gets the NN start time
 String getNodeUsage()
          Get Max, Median, Min and Standard Deviation of DataNodes usage.
 long getNonDfsUsedSpace()
          Gets total used space by data nodes for non DFS purposes such as storing temporary files on the local file system
 long getNumberOfMissingBlocks()
          Gets the total number of missing blocks on the cluster
 float getPercentBlockPoolUsed()
          Get the total space used by the block pool as percentage of total capacity
 float getPercentRemaining()
          Gets the total remaining space by data nodes as percentage of total capacity
 float getPercentUsed()
          Gets the total used space by data nodes as percentage of total capacity
 RollingUpgradeInfo.Bean getRollingUpgradeStatus()
          Gets the RollingUpgrade information
 String getSafemode()
          Gets the safemode status
 String getSoftwareVersion()
          Get the version of software running on the Namenode
 int getThreads()
          Gets the number of threads.
 long getTotal()
          Gets total raw bytes including non-dfs used space.
 long getTotalBlocks()
          Gets the total numbers of blocks on the cluster.
 long getTotalFiles()
          Gets the total number of files on the cluster
 long getUsed()
          Gets the used space by data nodes.
 String getVersion()
          Gets the version of Hadoop.
 boolean isUpgradeFinalized()
          Checks if upgrade is finalized.
 

Method Detail

getVersion

String getVersion()
Gets the version of Hadoop.

Returns:
the version

getSoftwareVersion

String getSoftwareVersion()
Get the version of software running on the Namenode

Returns:
a string representing the version

getUsed

long getUsed()
Gets the used space by data nodes.

Returns:
the used space by data nodes

getFree

long getFree()
Gets total non-used raw bytes.

Returns:
total non-used raw bytes

getTotal

long getTotal()
Gets total raw bytes including non-dfs used space.

Returns:
the total raw bytes including non-dfs used space

getSafemode

String getSafemode()
Gets the safemode status

Returns:
the safemode status

isUpgradeFinalized

boolean isUpgradeFinalized()
Checks if upgrade is finalized.

Returns:
true, if upgrade is finalized

getRollingUpgradeStatus

RollingUpgradeInfo.Bean getRollingUpgradeStatus()
Gets the RollingUpgrade information

Returns:
Rolling upgrade information

getNonDfsUsedSpace

long getNonDfsUsedSpace()
Gets total used space by data nodes for non DFS purposes such as storing temporary files on the local file system

Returns:
the non dfs space of the cluster

getPercentUsed

float getPercentUsed()
Gets the total used space by data nodes as percentage of total capacity

Returns:
the percentage of used space on the cluster.

getPercentRemaining

float getPercentRemaining()
Gets the total remaining space by data nodes as percentage of total capacity

Returns:
the percentage of the remaining space on the cluster

getCacheUsed

long getCacheUsed()
Returns the amount of cache used by the datanode (in bytes).


getCacheCapacity

long getCacheCapacity()
Returns the total cache capacity of the datanode (in bytes).


getBlockPoolUsedSpace

long getBlockPoolUsedSpace()
Get the total space used by the block pools of this namenode


getPercentBlockPoolUsed

float getPercentBlockPoolUsed()
Get the total space used by the block pool as percentage of total capacity


getTotalBlocks

long getTotalBlocks()
Gets the total numbers of blocks on the cluster.

Returns:
the total number of blocks of the cluster

getTotalFiles

long getTotalFiles()
Gets the total number of files on the cluster

Returns:
the total number of files on the cluster

getNumberOfMissingBlocks

long getNumberOfMissingBlocks()
Gets the total number of missing blocks on the cluster

Returns:
the total number of files and blocks on the cluster

getThreads

int getThreads()
Gets the number of threads.

Returns:
the number of threads

getLiveNodes

String getLiveNodes()
Gets the live node information of the cluster.

Returns:
the live node information

getDeadNodes

String getDeadNodes()
Gets the dead node information of the cluster.

Returns:
the dead node information

getDecomNodes

String getDecomNodes()
Gets the decommissioning node information of the cluster.

Returns:
the decommissioning node information

getClusterId

String getClusterId()
Gets the cluster id.

Returns:
the cluster id

getBlockPoolId

String getBlockPoolId()
Gets the block pool id.

Returns:
the block pool id

getNameDirStatuses

String getNameDirStatuses()
Get status information about the directories storing image and edits logs of the NN.

Returns:
the name dir status information, as a JSON string.

getNodeUsage

String getNodeUsage()
Get Max, Median, Min and Standard Deviation of DataNodes usage.

Returns:
the DataNode usage information, as a JSON string.

getNameJournalStatus

String getNameJournalStatus()
Get status information about the journals of the NN.

Returns:
the name journal status information, as a JSON string.

getJournalTransactionInfo

String getJournalTransactionInfo()
Get information about the transaction ID, including the last applied transaction ID and the most recent checkpoint's transaction ID


getNNStarted

String getNNStarted()
Gets the NN start time

Returns:
the NN start time

getCompileInfo

String getCompileInfo()
Get the compilation information which contains date, user and branch

Returns:
the compilation information, as a JSON string.

getCorruptFiles

String getCorruptFiles()
Get the list of corrupt files

Returns:
the list of corrupt files, as a JSON string.

getDistinctVersionCount

int getDistinctVersionCount()
Get the number of distinct versions of live datanodes

Returns:
the number of distinct versions of live datanodes

getDistinctVersions

Map<String,Integer> getDistinctVersions()
Get the number of live datanodes for each distinct versions

Returns:
the number of live datanodes for each distinct versions


Copyright © 2014 Apache Software Foundation. All Rights Reserved.