語法如下
http://主機名:50070/jmx?get=Hadoop:service=NameNode,name=FSNamesystem::CorruptBlocks
http://主機名:50070/jmx?get=Hadoop:service=NameNode,name=NameNodeInfo::CorruptFiles
Hadoop:service=NameNode,name=FSNamesystem
和?
Hadoop:service=NameNode,name=NameNodeInfo
是?jmx?中?bean?的名字
, {
? ? "name" : "Hadoop:service=NameNode,name=FSNamesystem",
? ? "modelerType" : "FSNamesystem",
? ? "tag.Context" : "dfs",
? ? "tag.HAState" : "active",
? ? "tag.Hostname" : "主機名",
? ? "BlocksTotal" : 50692238,
? ? "MissingBlocks" : 0,
? ? "MissingReplOneBlocks" : 0,
? ? "ExpiredHeartbeats" : 843,
? ? "TransactionsSinceLastCheckpoint" : 685258,
? ? "TransactionsSinceLastLogRoll" : 95871,
? ? "LastWrittenTransactionId" : 76614145083,
? ? "LastCheckpointTime" : 1586399312212,
? ? "UnderReplicatedBlocks" : 0,
? ? "CorruptBlocks" : 0,
? ? "CapacityTotal" : 2684174503784448,
? ? "CapacityTotalGB" : 2499832.0,
? ? "CapacityUsed" : 1768071131782401,
? ? "CapacityUsedGB" : 1646645.0,
? ? "CapacityRemaining" : 765862672079949,
? ? "CapacityRemainingGB" : 713265.0,
? ? "CapacityUsedNonDFS" : 11989674986491,
? ? "TotalLoad" : 10083,
? ? "SnapshottableDirectories" : 1,
? ? "Snapshots" : 1,
? ? "NumEncryptionZones" : 0,
? ? "LockQueueLength" : 0,
? ? "NumFilesUnderConstruction" : 83782,
? ? "NumActiveClients" : 717,
? ? "FilesTotal" : 59446499,
? ? "PendingReplicationBlocks" : 0,
? ? "ScheduledReplicationBlocks" : 0,
? ? "PendingDeletionBlocks" : 60,
? ? "ExcessBlocks" : 31,
? ? "PostponedMisreplicatedBlocks" : 0,
? ? "PendingDataNodeMessageCount" : 0,
? ? "MillisSinceLastLoadedEdits" : 0,
? ? "BlockCapacity" : 134217728,
? ? "StaleDataNodes" : 0,
? ? "TotalFiles" : 59446499
? },
-----------------------
, {
? ? "name" : "Hadoop:service=NameNode,name=NameNodeInfo",
? ? "modelerType" : "org.apache.hadoop.hdfs.server.namenode.FSNamesystem",
? ? "Threads" : 250,
? ? "Total" : 2684174503784448,
? ? "ClusterId" : "cluster20",
? ? "UpgradeFinalized" : true,
? ? "BlockPoolId" : "BP-713575166-172.16.255.63-1501057570247",
? ? "Version" : "2.6.0-cdh5.14.2, r5724a4ad7a27f7af31aa725694d3df09a68bb213",
? ? "TotalBlocks" : 50692238,
? ? "Used" : 1768071131782401,
? ? "Free" : 765862672079949,
? ? "Safemode" : "",
? ? "NonDfsUsedSpace" : 11989674986491,
? ? "PercentUsed" : 65.8702,
? ? "BlockPoolUsedSpace" : 1768071131782401,
? ? "PercentBlockPoolUsed" : 65.8702,
? ? "PercentRemaining" : 28.532522,
? ? "CacheCapacity" : 962072674304,
? ? "CacheUsed" : 0,
? ? "TotalFiles" : 59446501,
? ? "NumberOfMissingBlocks" : 0,
? ? "NumberOfMissingBlocksWithReplicationFactorOne" : 0,
? ? "LiveNodes" : "...”
"SoftwareVersion" : "2.6.0-cdh5.14.2",
? ? "DeadNodes" : "{\"hadoop95.deppon.local\":{\"lastContact\":1799452,\"decommissioned\":true,\"adminState\":\"Decommissioned\",\"xferaddr\":\"172.16.255.139:50010\"},\"hadoop150.deppon.local\":{\"lastContact\":520867,\"decommissioned\":true,\"adminState\":\"Decommissioned\",\"xferaddr\":\"172.16.255.146:50010\"},\"hadoop195.deppon.local\":{\"lastContact\":2493695,\"decommissioned\":true,\"adminState\":\"Decommissioned\",\"xferaddr\":\"172.16.255.243:50010\"}}",
? ? "DecomNodes" : "{}",
? ? "EnteringMaintenanceNodes" : "{}",
? ? "NameDirStatuses" : "{\"failed\":{},\"active\":{\"/opt/hadoop/dfs/nn\":\"IMAGE_AND_EDITS\"}}",
? ? "NodeUsage" : "{\"nodeUsage\":{\"min\":\"56.28%\",\"median\":\"65.83%\",\"max\":\"71.30%\",\"stdDev\":\"2.22%\"}}",
? ? "NameJournalStatus" : "[{\"stream\":\"Writing segment beginning at txid 76614049213. \\n172.16.255.63:8485 (Written txid 76614145087), 172.16.255.64:8485 (Written txid 76614145087), 172.16.255.65:8485 (Written txid 76614145087)\",\"manager\":\"QJM to [172.16.255.63:8485, 172.16.255.64:8485, 172.16.255.65:8485]\",\"required\":\"true\",\"disabled\":\"false\"},{\"stream\":\"EditLogFileOutputStream(/opt/hadoop/dfs/nn/current/edits_inprogress_0000000076614049213)\",\"manager\":\"FileJournalManager(root=/opt/hadoop/dfs/nn)\",\"required\":\"false\",\"disabled\":\"false\"}]",
? ? "JournalTransactionInfo" : "{\"LastAppliedOrWrittenTxId\":\"76614145087\",\"MostRecentCheckpointTxId\":\"76613459825\"}",
? ? "NNStarted" : "Thu Oct 24 09:09:59 CST 2019",
? ? "NNStartedTimeInMillis" : 1571879399108,
? ? "CompileInfo" : "2018-03-27T20:40Z by jenkins from Unknown",
? ? "CorruptFiles" : "[]",
? ? "NumberOfSnapshottableDirs" : 1,
? ? "DistinctVersionCount" : 1,
? ? "DistinctVersions" : [ {
? ? ? "key" : "2.6.0-cdh5.14.2",
? ? ? "value" : 191
? ? } ],
? ? "RollingUpgradeStatus" : null
? },