|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NameNodeStatisticsMBean
This is the JMX management interface for getting runtime statistics of the name node. Many of the statistics are sampled and averaged on an interval which can be specified in the config file.
For the statistics that are sampled and averaged, one must specify a metrics context that does periodic update calls. Most do. The default Null metrics context however does NOT. So if you aren't using any other metrics context then you can turn on the viewing and averaging of sampled metrics by specifying the following two lines in the hadoop-meterics.properties file:
dfs.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread dfs.period=10
Note that the metrics are collected regardless of the context used. The context with the update thread is used to average the data periodically.
Name Node Status info is report in another MBean
FSNamesystemMBean
Method Summary | |
---|---|
long |
getBlockReportAverageTime()
Average time for Block Report Processing in last interval |
long |
getBlockReportMaxTime()
The Maximum Block Report Processing Time since reset was called |
long |
getBlockReportMinTime()
The Minimum Block Report Processing Time since reset was called |
int |
getBlockReportNum()
Number of block Reports processed in the last interval |
int |
getFSImageLoadTime()
Time spent loading the FS Image at startup |
long |
getJournalSyncAverageTime()
Average time for Journal Sync in last interval |
long |
getJournalSyncMaxTime()
The Maximum Journal Sync Time since reset was called |
long |
getJournalSyncMinTime()
The Minimum Journal Sync Time since reset was called |
int |
getJournalSyncNum()
Number of Journal Syncs in the last interval |
long |
getJournalTransactionAverageTime()
Average time for Journal transactions in last interval |
long |
getJournalTransactionMaxTime()
The Maximum Journal Transaction Time since reset was called |
long |
getJournalTransactionMinTime()
The Minimum Journal Transaction Time since reset was called |
int |
getJournalTransactionNum()
Number of Journal Transactions in the last interval |
int |
getNumAddBlockOps()
Number of add block operations in the last interval |
int |
getNumCreateFileOps()
Number of file creation operations in the last interval |
int |
getNumDeleteFileOps()
Number of file deletion operations in the last interval |
int |
getNumFilesCreated()
Number of files created in the last interval |
int |
getNumFilesListed()
Deprecated. Use getNumGetListingOps() instead |
int |
getNumFilesRenamed()
Number of files renamed in the last interval |
int |
getNumGetBlockLocations()
Number of NameNode.getBlockLocations(String,long,long) |
int |
getNumGetListingOps()
Number of files listed in the last interval |
int |
getSafemodeTime()
The time spent in the Safemode at startup |
void |
resetAllMinMax()
Reset all min max times |
Method Detail |
---|
int getSafemodeTime()
int getFSImageLoadTime()
int getJournalTransactionNum()
long getJournalTransactionAverageTime()
long getJournalTransactionMinTime()
long getJournalTransactionMaxTime()
int getBlockReportNum()
long getBlockReportAverageTime()
long getBlockReportMinTime()
long getBlockReportMaxTime()
int getJournalSyncNum()
long getJournalSyncAverageTime()
long getJournalSyncMinTime()
long getJournalSyncMaxTime()
void resetAllMinMax()
int getNumFilesCreated()
int getNumGetBlockLocations()
NameNode.getBlockLocations(String,long,long)
int getNumFilesRenamed()
@Deprecated int getNumFilesListed()
int getNumGetListingOps()
int getNumCreateFileOps()
int getNumDeleteFileOps()
int getNumAddBlockOps()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |