<?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: Wrong timezone in Ranger admin in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160846#M41194</link>
    <description>&lt;P&gt;This is fixed in the next maintenance version of HDP 2.5 as well as HDP 2.6 (Ranger 0.7)&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2017 02:55:15 GMT</pubDate>
    <dc:creator>vperiasamy</dc:creator>
    <dc:date>2017-03-02T02:55:15Z</dc:date>
    <item>
      <title>Wrong timezone in Ranger admin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160840#M41188</link>
      <description>&lt;P&gt;I'm running HDP 2.5 and are having problems with the timezone/dates for the audit records in ranger. The underlaying storage of the data is Solr. This is my setup/environment:&lt;/P&gt;&lt;P&gt;- My current timezone is UTC +2.
- I log audit data to both HDFS and Solr
- Audit data on HDFS shows the correct date
- A query direct in Solr gives me dates in correct UTC time.
- Ranger Admin interface / Audit shows the dates that is 2 hours into the future.&lt;/P&gt;&lt;P&gt;Example:
Ranger Admin Audit date: &lt;EM&gt;09/20/2016 09:36:29 AM&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;Solr query date: &lt;EM&gt;"evtTime": "2016-09-20T05:36:29.586Z"&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;HDFS Audit date: &lt;EM&gt;"evtTime":"2016-09-20 07:36:29.586"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;My quess is that when Ranger reads the data from Solr, Solr converts the date to localtime (UTC +2), and then Ranger do the same conversion once more. Not the first system that have done this misstake. &lt;/P&gt;&lt;P&gt;Can anybody give me some help/pointer on where to look to fix this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 14:28:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160840#M41188</guid>
      <dc:creator>berry_osterlund</dc:creator>
      <dc:date>2016-09-20T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong timezone in Ranger admin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160841#M41189</link>
      <description>&lt;P&gt;ranger admin shows time in timezone of your local machine where you have opened the ranger ui &lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 14:40:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160841#M41189</guid>
      <dc:creator>dsharma</dc:creator>
      <dc:date>2016-09-20T14:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong timezone in Ranger admin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160842#M41190</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13196/berryosterlund.html" nodeid="13196"&gt;@Berry Österlund&lt;/A&gt; Please check &lt;A href="https://issues.apache.org/jira/browse/RANGER-798" target="_blank"&gt;https://issues.apache.org/jira/browse/RANGER-798&lt;/A&gt; , the patch on this JIRA should be resolving this issue. &lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 14:47:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160842#M41190</guid>
      <dc:creator>hyadav</dc:creator>
      <dc:date>2016-09-20T14:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong timezone in Ranger admin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160843#M41191</link>
      <description>&lt;P&gt;Yes, that looks like a valid solution. But RANGER-798 should be implemented in 0.6.0, and thats what I'm running. Will investigate this further and update with my findings.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 16:54:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160843#M41191</guid>
      <dc:creator>berry_osterlund</dc:creator>
      <dc:date>2016-09-28T16:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong timezone in Ranger admin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160844#M41192</link>
      <description>&lt;P&gt;I have a solution....&lt;/P&gt;&lt;P&gt;We had this issue, caused by this: &lt;A href="https://issues.apache.org/jira/browse/RANGER-1249"&gt;https://issues.apache.org/jira/browse/RANGER-1249&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To fix it, create a file: /etc/ranger/admin/ranger-admin-env-tz.sh&lt;/P&gt;&lt;P&gt;Add this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;JAVA_OPTS="$JAVA_OPTS -Duser.timezone=UTC"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now chmod +x /etc/ranger/admin/ranger-admin-env-tz.sh&lt;/P&gt;&lt;P&gt;Now restart ranger admin.&lt;/P&gt;&lt;P&gt;I know this was asked long ago, but if this solves your problem (which it did for me), please accept the answer.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 04:21:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160844#M41192</guid>
      <dc:creator>james_jones</dc:creator>
      <dc:date>2017-01-25T04:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong timezone in Ranger admin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160845#M41193</link>
      <description>&lt;P&gt;Thanks, that worked! The bug still appears in Ranger-0.6 included in HDP-2.5.3.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 16:37:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160845#M41193</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-02-22T16:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong timezone in Ranger admin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160846#M41194</link>
      <description>&lt;P&gt;This is fixed in the next maintenance version of HDP 2.5 as well as HDP 2.6 (Ranger 0.7)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 02:55:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Wrong-timezone-in-Ranger-admin/m-p/160846#M41194</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2017-03-02T02:55:15Z</dc:date>
    </item>
  </channel>
</rss>

