<?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: Troubleshooting missing access logs in Ranger with SolrCloud in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103461#M66378</link>
    <description>&lt;P&gt;Thanks for the suggestion &lt;A rel="user" href="https://community.cloudera.com/users/1852/subhashparise36.html" nodeid="1852"&gt;@subhash parise&lt;/A&gt;. I am able to see updated records when I update access policies, so I don't think there is a problem with the plugins.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 16:08:03 GMT</pubDate>
    <dc:creator>nl_xceiver</dc:creator>
    <dc:date>2016-08-16T16:08:03Z</dc:date>
    <item>
      <title>Troubleshooting missing access logs in Ranger with SolrCloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103459#M66376</link>
      <description>&lt;P&gt;
	I have a kerberos &amp;amp; Ranger-secured cluster managed by Ambari.&lt;/P&gt;&lt;P&gt;
		I had Ranger set up with access data being written to both HDFS and a 2-node SolrCloud cluster (using local, not HDFS storage for its indexes) and it was working well.&lt;/P&gt;&lt;P&gt;
		However, the local volume I was writing Solr indexes to was getting full, so I thought it would move the Solr installations to a volume with more space, one node at a time.&lt;/P&gt;&lt;UL&gt;
	
&lt;LI&gt;My installation was in /opt/lucidworks-hdpsearch. /opt is part of the root volume - it has 300 GB&lt;/LI&gt;	
&lt;LI&gt;/srv is a 1 TB volume&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;
	Here's what I did on each SolrCloud node one after the other:&lt;/P&gt;&lt;OL&gt;
	
&lt;LI&gt;Stop Solr&lt;/LI&gt;	
&lt;LI&gt;mv /opt/lucidworks-hdpsearch /srv/lucidworks-hdpsearch&lt;/LI&gt;	
&lt;LI&gt;ln -s /srv/lucidworks-hdpsearch /opt/lucidworks-hdpsearch&lt;/LI&gt;	
&lt;LI&gt;Start Solr&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;
	This appears to have gone smoothly. When I do:&lt;/P&gt;
&lt;PRE&gt;ls -l /opt/lucidworks-hdpsearch/solr/ranger_audit_server/ranger_audits_shard1_replica1/data/index/
&lt;/PRE&gt;&lt;P&gt;
	I see files in there that have current time stamps so I'm assuming the plugins are sending audit data to SolrCloud correctly.&lt;/P&gt;&lt;P&gt;
However, I'm now unable to view access logs in the Ranger web UI. I just get &lt;EM&gt;No Access Audit found!&lt;/EM&gt; where I would expect to see a list of access records.&lt;/P&gt;&lt;P&gt;
I'm not seeing anything obviously related to this problem in the logs located in /var/log/ranger/admin/ on the Ranger Admin server or /var/log/solr/ranger_audits/ on the SolrCloud nodes.&lt;/P&gt;&lt;P&gt;
What can I do to troubleshoot this problem? For example, can I make the Ranger admin server's logs more verbose via Ambari? Or should I be looking elsewhere?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 07:18:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103459#M66376</guid>
      <dc:creator>nl_xceiver</dc:creator>
      <dc:date>2016-08-16T07:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting missing access logs in Ranger with SolrCloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103460#M66377</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12490/nlxceiver.html" nodeid="12490" target="_blank"&gt;@Neal Lamont&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please check the audit for plugin.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6672-ranger.png" style="width: 832px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23641i0B5FB01A8751AE63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6672-ranger.png" alt="6672-ranger.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if it not giving updated information please restart reanger services in ambari and recheck audit for plugins&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:07:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103460#M66377</guid>
      <dc:creator>subhash_parise3</dc:creator>
      <dc:date>2019-08-19T12:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting missing access logs in Ranger with SolrCloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103461#M66378</link>
      <description>&lt;P&gt;Thanks for the suggestion &lt;A rel="user" href="https://community.cloudera.com/users/1852/subhashparise36.html" nodeid="1852"&gt;@subhash parise&lt;/A&gt;. I am able to see updated records when I update access policies, so I don't think there is a problem with the plugins.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:08:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103461#M66378</guid>
      <dc:creator>nl_xceiver</dc:creator>
      <dc:date>2016-08-16T16:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting missing access logs in Ranger with SolrCloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103462#M66379</link>
      <description>&lt;P&gt;Are you sure ambari-server updating policy using ranger plugin ??&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:17:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103462#M66379</guid>
      <dc:creator>subhash_parise3</dc:creator>
      <dc:date>2016-08-16T16:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting missing access logs in Ranger with SolrCloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103463#M66380</link>
      <description>&lt;P&gt;I'm not exactly sure what you mean, &lt;A rel="user" href="https://community.cloudera.com/users/1852/subhashparise36.html" nodeid="1852"&gt;@subhash parise&lt;/A&gt; but when I update access policies in Ranger, I see those changes being pushed out to the various plugins in the Audit -&amp;gt; Plugins area (the one you took the screenshot of).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 13:13:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103463#M66380</guid>
      <dc:creator>nl_xceiver</dc:creator>
      <dc:date>2016-08-17T13:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting missing access logs in Ranger with SolrCloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103464#M66381</link>
      <description>&lt;P&gt;
	I've reinstalled SolrCloud from scratch.
&lt;/P&gt;
&lt;P&gt;
	When I do a query directly against either one of the two SolrCloud replicas I do get results which strongly suggests writes to the SolrCloud cluster are working well.
&lt;/P&gt;
&lt;PRE&gt;
$ curl "http://solrcloud1.mycluster.example.com:6083/solr/ranger_audits/select?q=*%3A*&amp;amp;wt=json&amp;amp;rows=1&amp;amp;indent=true"
{
  "responseHeader":{
    "status":0,
    "QTime":1,
    "params":{
      "q":"*:*",
      "indent":"true",
      "rows":"1",
      "wt":"json"}},
  "response":{"numFound":2270723,"start":0,"docs":[
      {
        "id":"8c799b43-8f24-4cb1-96e9-d389e79ac211",
        "access":"WRITE",
        "enforcer":"hadoop-acl",
        "repo":"mycluster_hadoop",
        "reqUser":"joesmith",
        "resource":"/bigstore/lake/shorterm/.hive-staging_hive_2016-08-16_20-04-17_799_1422618716531065881-1/-ext-10000/dt=201608071700/part-00129",
        "cliIP":"10.196.185.51",
        "logType":"RangerAudit",
        "result":1,
        "policy":-1,
        "repoType":1,
        "resType":"path",
        "reason":"/bigstore/lake/shorterm/.hive-staging_hive_2016-08-16_20-04-17_799_1422618716531065881-1/-ext-10000/dt=201608071700",
        "evtTime":"2016-08-17T03:13:11.11Z",
        "seq_num":70028864,
        "event_count":1,
        "event_dur_ms":0,
        "_version_":1542886234399965185}]
  }}
$
&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Aug 2016 14:02:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103464#M66381</guid>
      <dc:creator>nl_xceiver</dc:creator>
      <dc:date>2016-08-17T14:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting missing access logs in Ranger with SolrCloud</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103465#M66382</link>
      <description>&lt;P&gt;After re-installing SolrCloud with the data on the bigger volume from the outset everything is working again.&lt;/P&gt;&lt;P&gt;I'm not sure what the original problem was following moving the indexes. I would expect that the symlink would have worked.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 16:06:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Troubleshooting-missing-access-logs-in-Ranger-with-SolrCloud/m-p/103465#M66382</guid>
      <dc:creator>nl_xceiver</dc:creator>
      <dc:date>2016-08-17T16:06:19Z</dc:date>
    </item>
  </channel>
</rss>

