ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qiang Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (RANGER-1272) The program doesn't check the RANGER_PID_DIR_PATH variables corresponding to the path in ranger-admin-services.sh file. The "echo $VALUE_OF_PID > ${pidf}" failed when the path doesn't exist.
Date Wed, 21 Dec 2016 01:40:58 GMT

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

Qiang Zhang updated RANGER-1272:
--------------------------------
    Description: 
The following error occurred when the "ranger-admin start" command was run.
Starting Apache Ranger Admin Service
/usr/bin/ranger-admin: line 73: /var/run/ranger/rangeradmin.pid: No such file or directory
chown: cannot access '/var/run/ranger/rangeradmin.pid': No such file or directory
chmod: cannot access '/var/run/ranger/rangeradmin.pid': No such file or directory
cat: /var/run/ranger/rangeradmin.pid: No such file or directory
Apache Ranger Admin Service with pid  has started.

The program doesn't check the RANGER_PID_DIR_PATH variables corresponding to the path in ranger-admin-services.sh
file. The "echo $VALUE_OF_PID > ${pidf}" failed when the path doesn't exist. 

Reproducible Steps in ubuntu 16.04 system:
1. Configure install.properties. Using mysql database to save audit information.
2. Using 'sudo ./setup.sh' command to install ranger-admin under program directory.
3. Using 'sudo ranger-admin start' command to start security admin when the second step return
success.

  was:
The following error occurred when the "ranger-admin start" command was run.
Starting Apache Ranger Admin Service
/usr/bin/ranger-admin: line 73: /var/run/ranger/rangeradmin.pid: No such file or directory
chown: cannot access '/var/run/ranger/rangeradmin.pid': No such file or directory
chmod: cannot access '/var/run/ranger/rangeradmin.pid': No such file or directory
cat: /var/run/ranger/rangeradmin.pid: No such file or directory
Apache Ranger Admin Service with pid  has started.

The program doesn't check the RANGER_PID_DIR_PATH variables corresponding to the path in ranger-admin-services.sh
file. The "echo $VALUE_OF_PID > ${pidf}" failed when the path doesn't exist. 

Reproducible Steps in ubuntu 16.04 system:
1. Configure install.properties. Using mysql database to save audit information.
2. Using 'sudo ./setup.sh command' to install ranger-admin under program directory.
3. Using 'sudo ranger-admin start' command to start security admin when the second step return
success.


> The program doesn't check the RANGER_PID_DIR_PATH variables corresponding to the path
in ranger-admin-services.sh file. The "echo $VALUE_OF_PID > ${pidf}" failed when the path
doesn't exist. 
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1272
>                 URL: https://issues.apache.org/jira/browse/RANGER-1272
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>              Labels: patch
>         Attachments: 0001-RANGER-1272-The-program-does-not-check-the-RANGER_PI.patch
>
>
> The following error occurred when the "ranger-admin start" command was run.
> Starting Apache Ranger Admin Service
> /usr/bin/ranger-admin: line 73: /var/run/ranger/rangeradmin.pid: No such file or directory
> chown: cannot access '/var/run/ranger/rangeradmin.pid': No such file or directory
> chmod: cannot access '/var/run/ranger/rangeradmin.pid': No such file or directory
> cat: /var/run/ranger/rangeradmin.pid: No such file or directory
> Apache Ranger Admin Service with pid  has started.
> The program doesn't check the RANGER_PID_DIR_PATH variables corresponding to the path
in ranger-admin-services.sh file. The "echo $VALUE_OF_PID > ${pidf}" failed when the path
doesn't exist. 
> Reproducible Steps in ubuntu 16.04 system:
> 1. Configure install.properties. Using mysql database to save audit information.
> 2. Using 'sudo ./setup.sh' command to install ranger-admin under program directory.
> 3. Using 'sudo ranger-admin start' command to start security admin when the second step
return success.



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

Mime
View raw message