ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13905) Add error logs to script alerts when there are failures
Date Wed, 18 Nov 2015 21:06:11 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-13905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011966#comment-15011966
] 

Hudson commented on AMBARI-13905:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #890 (See [https://builds.apache.org/job/Ambari-branch-2.1/890/])
AMBARI-13905 Add error logs to script alerts when there are failures (dsen: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c0d0ea78cbf7d452fef13da0820cda36e9fbf503])
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_webhcat_server.py
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_ha_namenode_health.py
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_thrift_port.py
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_upgrade_finalized.py
* ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/alerts/alert_nodemanagers_summary.py
* ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
* ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/alerts/alert_nodemanager_health.py
* ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
* ambari-agent/src/test/python/ambari_agent/TestMain.py
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/alerts/alert_checkpoint_time.py
* ambari-agent/src/main/python/ambari_agent/main.py
* ambari-agent/src/main/python/ambari_agent/alerts/script_alert.py


> Add error logs to script alerts when there are failures
> -------------------------------------------------------
>
>                 Key: AMBARI-13905
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13905
>             Project: Ambari
>          Issue Type: Bug
>          Components: alerts
>    Affects Versions: 2.1.2
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>            Priority: Critical
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-13905-trunk.patch
>
>
> In general, the script alerts need logging to cover error scenarios.
> For example:
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_webhcat_server.py
> {code}
>       json_response = json.loads(stdout)
>     except Exception, exception:
>       return (RESULT_CODE_CRITICAL, [str(exception) + str(stdout)])
> {code}
> If the response is not a valid JSON Ambari should log the content rather than just reporting
that json could not be parsed through the alert text. 
> Similar enhancements may be needed in several script based alerts. At least, lets cover
all the three alert scripts that are in HIVE.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message