ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley" <jhur...@hortonworks.com>
Subject Review Request 36268: False alert on "NameNode High Availability Health" due to Missing JMX objects
Date Tue, 07 Jul 2015 17:54:56 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36268/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez and Nate Cole.


Bugs: AMBARI-12317
    https://issues.apache.org/jira/browse/AMBARI-12317


Repository: ambari


Description
-------

HDP 2.0.11 produces an alert for NameNode HA. The script is making a call to jmx, which works
fine in HDP 2.2.0:

```
namenode:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus
```

Returns:
```
    "name" : "Hadoop:service=NameNode,name=NameNodeStatus",
    "modelerType" : "org.apache.hadoop.hdfs.server.namenode.NameNode",
    "NNRole" : "NameNode",
    "HostAndPort" : "cn030.l42scl.hortonworks.com:8020",
    "SecurityEnabled" : true,
    "State" : "active"
  } ]
}
```

In case of HDP 2.0.11, it returns: 
```
{
  "beans" : [ ]
}
```

Additionally, I noticed that the curl_timeout was not being passed in some cases, so we're
passing that now.


Diffs
-----

  ambari-agent/src/main/python/ambari_agent/alerts/metric_alert.py ece6063 
  ambari-agent/src/main/python/ambari_agent/alerts/web_alert.py 04d1b01 
  ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
b7adac4 
  ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_checkpoint_time.py
06e4c56 
  ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_ha_namenode_health.py
e09ec3a 
  ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/alerts/alert_nodemanager_health.py
a46ad93 
  ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/alerts/alert_nodemanagers_summary.py
390576d 

Diff: https://reviews.apache.org/r/36268/diff/


Testing
-------

Deploying an HA cluster on HDP 2.0 and 2.2 and verified the upgraded script works.


Thanks,

Jonathan Hurley


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message