You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2018/06/05 16:45:00 UTC

[jira] [Resolved] (AMBARI-22834) Zeppelin Alert checks wrong pid file

     [ https://issues.apache.org/jira/browse/AMBARI-22834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Risden resolved AMBARI-22834.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.6.2

> Zeppelin Alert checks wrong pid file
> ------------------------------------
>
>                 Key: AMBARI-22834
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22834
>             Project: Ambari
>          Issue Type: Bug
>          Components: alerts
>    Affects Versions: 2.6.1
>            Reporter: Kevin Risden
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.6.2
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> The Zeppelin alert check doesn't check the actual Zeppelin pid file. Instead it can pick up interpreter pid files.
> {code}
> pid_file = glob.glob(zeppelin_pid_dir + '/zeppelin-*.pid')[0]
> {code}
> This is wrong when there are multiple files in the pid dir starting with "zeppelin-".
> {code}
> ls -l /var/run/zeppelin/
> -rw-r--r-- 1 zeppelin hadoop 7 Jan 16 12:01 zeppelin-interpreter-livy-zeppelin-HOSTNAME.pid
> -rw-r--r-- 1 zeppelin hadoop 7 Jan 16 11:56 zeppelin-zeppelin-HOSTNAME.pid
> {code}
>  * [https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0/package/scripts/alert_check_zeppelin.py]
>  * [https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/ZEPPELIN/0.7.0/package/scripts/alert_check_zeppelin.py]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)