<?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 ranger is not updating access audit logs in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ranger-is-not-updating-access-audit-logs/m-p/344866#M234290</link>
    <description>&lt;P&gt;Ranger is not updating the access audits in ranger after a certa date solr logs are giving the below error:&lt;/P&gt;&lt;P&gt;ERROR (qtp246273275-120) [c:ranger_audits s:shard1 r:core_node2 x:ranger_audits_shard1_replica_n1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: Exception writing document id 8cb43886-8056-46b2-8b24-0ead48c8280b-1 to the index; possible analysis error: number of documents in the index cannot exceed 2147483519&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can this be troubleshooted?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2022 21:00:49 GMT</pubDate>
    <dc:creator>clouderaskme</dc:creator>
    <dc:date>2022-06-01T21:00:49Z</dc:date>
    <item>
      <title>ranger is not updating access audit logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ranger-is-not-updating-access-audit-logs/m-p/344866#M234290</link>
      <description>&lt;P&gt;Ranger is not updating the access audits in ranger after a certa date solr logs are giving the below error:&lt;/P&gt;&lt;P&gt;ERROR (qtp246273275-120) [c:ranger_audits s:shard1 r:core_node2 x:ranger_audits_shard1_replica_n1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: Exception writing document id 8cb43886-8056-46b2-8b24-0ead48c8280b-1 to the index; possible analysis error: number of documents in the index cannot exceed 2147483519&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can this be troubleshooted?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 21:00:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ranger-is-not-updating-access-audit-logs/m-p/344866#M234290</guid>
      <dc:creator>clouderaskme</dc:creator>
      <dc:date>2022-06-01T21:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: ranger is not updating access audit logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ranger-is-not-updating-access-audit-logs/m-p/344867#M234291</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91790"&gt;@clouderaskme&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above error message , we could tell that you would be hitting &lt;A href="https://issues.apache.org/jira/browse/SOLR-3504" target="_blank" rel="nofollow noopener noreferrer"&gt;&amp;nbsp;SOLR-3504&lt;/A&gt;. The issue is due to limitation from Solr side where 1 shard can only index upto 2.14 Billion.&lt;BR /&gt;&lt;BR /&gt;The solution would be to create a new ranger_audits collection with 2 shards instead of 1. As it can index more documents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also try to delete the older records if the solr instance is still up and running and see if the issue been resolved.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please modify the http with https if SSL is enabled and check the port as per your environment and run the below command.&lt;/P&gt;&lt;PRE&gt;curl -ikv --negotiate -u: "http://$(hostname -f):8886/solr/ranger_audits/update?commit=true" -H "Content-Type: text/xml" --data-binary "&amp;lt;delete&amp;gt;&amp;lt;query&amp;gt;evtTime:[* TO NOW-15DAYS]&amp;lt;/query&amp;gt;&amp;lt;/delete&amp;gt;"    &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is another method of splitting the shard. Please refer to the below doc&lt;BR /&gt;&lt;A href="https://my.cloudera.com/knowledge/ERROR-quotToo-many-documents-composite-IndexReaders-cannot?id=74738" target="_blank" rel="noopener"&gt;https://my.cloudera.com/knowledge/ERROR-quotToo-many-documents-composite-IndexReaders-cannot?id=74738&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 02:21:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ranger-is-not-updating-access-audit-logs/m-p/344867#M234291</guid>
      <dc:creator>Tylenol</dc:creator>
      <dc:date>2022-06-02T02:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: ranger is not updating access audit logs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ranger-is-not-updating-access-audit-logs/m-p/345064#M234357</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91790"&gt;@clouderaskme&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 17:56:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ranger-is-not-updating-access-audit-logs/m-p/345064#M234357</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2022-06-06T17:56:12Z</dc:date>
    </item>
  </channel>
</rss>

