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

Qiang Zhang resolved RANGER-1613.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0

> There is one defect in start script for ranger-usersync process
> ---------------------------------------------------------------
>
>                 Key: RANGER-1613
>                 URL: https://issues.apache.org/jira/browse/RANGER-1613
>             Project: Ranger
>          Issue Type: Bug
>          Components: usersync
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>              Labels: patch
>             Fix For: 1.0.0
>
>         Attachments: 
> 0001-RANGER-1613-There-is-one-defect-in-start-script-for-.patch
>
>
> 1.In install.properties, I configure 'ranger_base_dir=/etc/ranger/xiehh'
> 2.I execute ranger-usersync-services.sh to start
>   [root@zdh41 ranger-1.0.0-SNAPSHOT-usersync]# ./ranger-usersync-services.sh 
> start
>   Starting Apache Ranger Usersync Service
>   Apache Ranger Usersync Service with pid 23417 has started.
> 3.[root@zdh41 ranger-1.0.0-SNAPSHOT-usersync]# ps -ef|grep 23417
>   root     23417     1 31 15:39 pts/1    00:00:03 java -Dproc_rangerusersync 
> -Dlog4j.configuration=file:/etc/ranger/usersync/conf/log4j.properties 
> -Duser=root -Dhostname=zdh41 -Dlogdir=logs -cp 
> /home/rangerusersync/ranger-1.0.0-SNAPSHOT-usersync/dist/*:/home/rangerusersync/ranger-1.0.0-SNAPSHOT-usersync/lib/*:/home/rangerusersync/ranger-1.0.0-SNAPSHOT-usersync/conf:/etc/hadoop/conf/*
>  org.apache.ranger.authentication.UnixAuthenticationService -enableUnixAuth
>   
> The Configuration 
> '-Dlog4j.configuration=file:/etc/ranger/usersync/conf/log4j.properties' will 
> not find the file log4j.properties,because the dir 
> '/etc/ranger/usersync/conf' is not right ,it should be 
> '/etc/ranger/xiehh/usersync/conf'
> So we should change 
> {code}
> nohup java -Dproc_rangerusersync 
> -Dlog4j.configuration=file:/etc/ranger/usersync/conf/log4j.properties 
> ${JAVA_OPTS} -Duser=${USER} -Dhostname=${HOSTNAME} -Dlogdir="${logdir}" -cp 
> "${cp}" org.apache.ranger.authentication.UnixAuthenticationService 
> -enableUnixAuth > ${logdir}/auth.log 2>&1 &
> {code}
> in ranger-usersync-services.sh
> Change
> {code}
> -Dlog4j.configuration=file:/etc/ranger/usersync/conf/log4j.properties
> {code}
> to
> {code}
> -Dlog4j.configuration=file:${RANGER_BASE_DIR}/usersync/conf/log4j.properties
> {code}
> for dynamic configuration.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to