Analyze Big Data Platforms For Security and Performance

JMX Metric Monitoring

JMX metric for Apache Hadoop namenode url can be monitored using Apache Eagle (called Eagle in the following). Follow below steps to enable this feature in Eagle.

  1. Install Python script (To populate JMX metric values to Kafka1 topic periodically).
  2. Deploy “hadoopjmx” Storm2 topology.
  3. Create new site and policy in UI.
  4. Validate policy alert.



From Hortonworks sandbox just run below setup script to Install Pyton JMX script, Create Kafka topic, update Apache Hbase tables and deploy “hadoopjmx” Storm topology.

$ /usr/hdp/current/eagle/examples/
$ /usr/hdp/current/eagle/examples/  

Application Setup in UI

  1. Login to Eagle UI http://localhost:9099/eagle-service/ using username and password as “admin” and “secret”
  2. Click on “Admin” from top right and click “Management” button.
  3. On Admin management page add “New Site” name “hadoopJmxMetricDataSource”, by clicking on “New Site” link. add superuser
  4. Save the changes.
  5. On eagle home page you should see new tab called “METRIC”, beside “DAM”.
  6. Click on “JmxMetricMonitor” under “METRIC”.

You should see policy with name “safeModePolicy”.


  • First make sure that Kafka topic “nn_jmx_metric_sandbox” is populated with JMX metric data periodically.(To make sure that python script is running)

      $ /usr/hdp/ --zookeeper --topic nn_jmx_metric_sandbox
  • Genrate Alert by producing alert triggering message into Kafka topic.

      $ /usr/hdp/ --broker-list --topic nn_jmx_metric_sandbox
      $ {"host": "localhost", "timestamp": 1457033916718, "metric": "hadoop.namenode.fsnamesystemstate.fsstate", "component": "namenode", "site": "sandbox", "value": 1.0}


  1. All mentions of “kafka” on this page represent Apache Kafka. 

  2. All mentions of “storm” on this page represent Apache Storm. 

Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
Apache Eagle, Eagle, Apache Hadoop, Hadoop, Apache HBase, HBase, Apache Hive, Hive, Apache Ambari, Ambari, Apache Spark, Spark, Apache Kafka, Kafka, Apache Storm, Storm, Apache Maven, Maven, Apache Tomcat, Tomcat, Apache Derby, Derby, Apache Cassandra, Cassandra, Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache project logo are trademarks of The Apache Software Foundation.