<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Not able to change log directories for Ranger Admin and Ranger usersync in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-change-log-directories-for-Ranger-Admin-and/m-p/102299#M14862</link>
    <description>&lt;P&gt;Got the solution after working with support. This is BUG in current Ambari and HDP versions. &lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.jira.com/browse/BUG-38390" target="_blank"&gt;https://hortonworks.jira.com/browse/BUG-38390&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below is workaround:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Change Log directory for Ranger Admin logs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;On Ranger Admin nodes:
ADMIN LOGS (Change the symbolic link for in ews directory):&lt;/P&gt;&lt;PRE&gt; 
mkdir /opt/hadoop/log/ranger/admin 
chmod 775 /opt/hadoop/log/ranger/admin 
chown ranger_qa:ranger_qa_grp /opt/hadoop/log/ranger/admin 
cd /usr/hdp/current/ranger-admin/ews 
unlink logs
ln -s /opt/hadoop/log/ranger/admin logs &lt;/PRE&gt;&lt;P&gt;
From Ambari Web UI --&amp;gt; Change Log directory for Ranger Admin and restart Ranger.&lt;/P&gt;&lt;P&gt;Note: here ranger_qa and ranger_qa_grp are ranger user and group respectively which are customized in my case.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Change log directory for USERSYNC LOGS&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;
On Ranger Usersync node: &lt;/P&gt;&lt;PRE&gt;mkdir /opt/hadoop/log/ranger/usersync 

chmod 775 /opt/hadoop/log/ranger/usersync 

chown ranger_qa:ranger_qa_grp /opt/hadoop/log/ranger/usersync&lt;/PRE&gt;&lt;P&gt;Note: here ranger_qa and ranger_qa_grp are ranger user and group respectively which are customized in my case.&lt;/P&gt;&lt;P&gt;
1. Make a back of file /usr/hdp/current/ranger-usersync/ranger-usersync-services.sh &lt;/P&gt;&lt;P&gt;
2. Change the file to the path to your new log location.&lt;/P&gt;&lt;P&gt; 
logdir=/var/log/ranger/usersync &lt;/P&gt;&lt;PRE&gt;cd /usr/hdp/current/ranger-usersync/ 

cp ranger-usersync-services.sh{,.backup01122015} 

vi ranger-usersync-services.sh
    #logdir=/var/log/ranger/usersync          
     logdir=/opt/hadoop/log/ranger/usersync&lt;/PRE&gt;&lt;P&gt;
From Ambari Web UI --&amp;gt; Change Log directory for Ranger Usersync and restart Ranger&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 12:26:05 GMT</pubDate>
    <dc:creator>pardeep_kumar</dc:creator>
    <dc:date>2016-01-13T12:26:05Z</dc:date>
    <item>
      <title>Not able to change log directories for Ranger Admin and Ranger usersync</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-change-log-directories-for-Ranger-Admin-and/m-p/102298#M14861</link>
      <description>&lt;P&gt;While Ambari UI provides feature to change log directories from UI, but it still is not being taken by Ranger. Looks like Ranger is overriding what I am setting in Ambari.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 11:39:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-change-log-directories-for-Ranger-Admin-and/m-p/102298#M14861</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2016-01-13T11:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to change log directories for Ranger Admin and Ranger usersync</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-change-log-directories-for-Ranger-Admin-and/m-p/102299#M14862</link>
      <description>&lt;P&gt;Got the solution after working with support. This is BUG in current Ambari and HDP versions. &lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.jira.com/browse/BUG-38390" target="_blank"&gt;https://hortonworks.jira.com/browse/BUG-38390&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below is workaround:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Change Log directory for Ranger Admin logs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;On Ranger Admin nodes:
ADMIN LOGS (Change the symbolic link for in ews directory):&lt;/P&gt;&lt;PRE&gt; 
mkdir /opt/hadoop/log/ranger/admin 
chmod 775 /opt/hadoop/log/ranger/admin 
chown ranger_qa:ranger_qa_grp /opt/hadoop/log/ranger/admin 
cd /usr/hdp/current/ranger-admin/ews 
unlink logs
ln -s /opt/hadoop/log/ranger/admin logs &lt;/PRE&gt;&lt;P&gt;
From Ambari Web UI --&amp;gt; Change Log directory for Ranger Admin and restart Ranger.&lt;/P&gt;&lt;P&gt;Note: here ranger_qa and ranger_qa_grp are ranger user and group respectively which are customized in my case.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Change log directory for USERSYNC LOGS&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;
On Ranger Usersync node: &lt;/P&gt;&lt;PRE&gt;mkdir /opt/hadoop/log/ranger/usersync 

chmod 775 /opt/hadoop/log/ranger/usersync 

chown ranger_qa:ranger_qa_grp /opt/hadoop/log/ranger/usersync&lt;/PRE&gt;&lt;P&gt;Note: here ranger_qa and ranger_qa_grp are ranger user and group respectively which are customized in my case.&lt;/P&gt;&lt;P&gt;
1. Make a back of file /usr/hdp/current/ranger-usersync/ranger-usersync-services.sh &lt;/P&gt;&lt;P&gt;
2. Change the file to the path to your new log location.&lt;/P&gt;&lt;P&gt; 
logdir=/var/log/ranger/usersync &lt;/P&gt;&lt;PRE&gt;cd /usr/hdp/current/ranger-usersync/ 

cp ranger-usersync-services.sh{,.backup01122015} 

vi ranger-usersync-services.sh
    #logdir=/var/log/ranger/usersync          
     logdir=/opt/hadoop/log/ranger/usersync&lt;/PRE&gt;&lt;P&gt;
From Ambari Web UI --&amp;gt; Change Log directory for Ranger Usersync and restart Ranger&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 12:26:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-change-log-directories-for-Ranger-Admin-and/m-p/102299#M14862</guid>
      <dc:creator>pardeep_kumar</dc:creator>
      <dc:date>2016-01-13T12:26:05Z</dc:date>
    </item>
  </channel>
</rss>

