<?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: Create ranger_audits collection fails with &amp;quot;Could not initialize class java.time.zone.ZoneRulesProvider&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Create-ranger-audits-collection-fails-with-quot-Could-not/m-p/358803#M237940</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74402"&gt;@GregDol&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for using Cloudera Community. This is an Old Post, yet I am sharing a review for other Community Users, in case they encounter the concerned issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reviewing the Post indicates the Issue is likely caused by missing "&lt;SPAN class="s1"&gt;rt.jar" in the JDK used by the Solr Service. In other words, the concerned Class "&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;java.time.zone.ZoneRulesProvider"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;is present in "&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;/usr/java/jdk1.8.0_232-cloudera/jre/lib/rt.jar" for CDP Cluster (Path &amp;amp; Version may be different for Customer). The concerned JDK is used by the various Services running including Solr. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;In your scenario, the concerned Class appears to be missing. Assuming your team wish to confirm whether a JAR consists of the Class, you may use Command [&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;/usr/java/jdk1.8.0_232-cloudera/bin/jar -tvf /usr/java/jdk1.8.0_232-cloudera/jre/lib/rt.jar] to list the Classes, which should include&amp;nbsp;"java.time.zone.ZoneRulesProvider" as well. If your Team is using any different JDK, Review the same &amp;amp; ensure the "rt.jar" is present for&amp;nbsp;Class "java.time.zone.ZoneRulesProvider" to be loaded successfully.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Regards, Smarak&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 09:26:02 GMT</pubDate>
    <dc:creator>smdas</dc:creator>
    <dc:date>2022-12-02T09:26:02Z</dc:date>
    <item>
      <title>Create ranger_audits collection fails with "Could not initialize class java.time.zone.ZoneRulesProvider"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-ranger-audits-collection-fails-with-quot-Could-not/m-p/328879#M230357</link>
      <description>&lt;P&gt;I am trying to re-create a &lt;FONT face="courier new,courier,monospace"&gt;ranger-audits&lt;/FONT&gt; collection for Infra-Solr with &lt;FONT face="courier new,courier,monospace"&gt;numShards=2&lt;/FONT&gt; instead of 1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# curl -k --negotiate -u : "https://fqdn.example.net:8995/solr/admin/collections?action=CREATE&amp;amp;name=ranger_audits&amp;amp;collection.configName=ranger_audits&amp;amp;numShards=2" {&lt;BR /&gt;"responseHeader":{&lt;BR /&gt;"status":400,&lt;BR /&gt;"QTime":1730},&lt;BR /&gt;"failure":{&lt;BR /&gt;"fqdn.example.net:8995_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at https://ufqdn.example.net:8995/solr: Error CREATEing SolrCore 'ranger_audits_shard2_replica_n2': Unable to create core [ranger_audits_shard2_replica_n2] Caused by: Could not initialize class java.time.zone.ZoneRulesProvider"},&lt;BR /&gt;"success":{&lt;BR /&gt;"fqdn.example.net:8995_solr":{&lt;BR /&gt;"responseHeader":{&lt;BR /&gt;"status":0,&lt;BR /&gt;"QTime":1278},&lt;BR /&gt;"core":"ranger_audits_shard1_replica_n1"}},&lt;BR /&gt;"Operation create caused exception:":"org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Underlying core creation failed while creating collection: ranger_audits",&lt;BR /&gt;"exception":{&lt;BR /&gt;"msg":"Underlying core creation failed while creating collection: ranger_audits",&lt;BR /&gt;"rspCode":400},&lt;BR /&gt;"error":{&lt;BR /&gt;"metadata":[&lt;BR /&gt;"error-class","org.apache.solr.common.SolrException",&lt;BR /&gt;"root-error-class","org.apache.solr.common.SolrException"],&lt;BR /&gt;"msg":"Underlying core creation failed while creating collection: ranger_audits",&lt;BR /&gt;"code":400}}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Re-creating the collection with &lt;FONT face="courier new,courier,monospace"&gt;numShards=1&lt;/FONT&gt; does not create any issues and it is executed correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -k --negotiate -u : "https://fqdn.example.com:8995/solr/admin/collections?action=CREATE&amp;amp;name=ranger_audits&amp;amp;collection.configName=ranger_audits&amp;amp;numShards=1"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the same time, in &lt;FONT face="courier new,courier,monospace"&gt;Solr&lt;/FONT&gt; logs I receive this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[c:ranger_audits s:shard2 r:core_node4 x:ranger_audits_shard2_replica_n2] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: Error CREATEing SolrCore 'ranger_audits_shard2_replica_n2': Unable to create core [ranger_audits_shard2_replica_n2] Caused by: Could not initialize class java.time.zone.ZoneRulesProvider&lt;BR /&gt;at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1260)&lt;BR /&gt;at org.apache.solr.handler.admin.CoreAdminOperation.lambda$static$0(CoreAdminOperation.java:93)&lt;BR /&gt;at org.apache.solr.handler.admin.CoreAdminOperation.execute(CoreAdminOperation.java:362)&lt;BR /&gt;at org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:397)&lt;BR /&gt;at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:181)&lt;BR /&gt;at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:211)&lt;BR /&gt;at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:821)&lt;BR /&gt;at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:787)&lt;BR /&gt;at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:538)&lt;BR /&gt;at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:414)&lt;BR /&gt;at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:346)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1630)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:567)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)&lt;BR /&gt;at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)&lt;BR /&gt;at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)&lt;BR /&gt;at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1377)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:507)&lt;BR /&gt;at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1292)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)&lt;BR /&gt;at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)&lt;BR /&gt;at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)&lt;BR /&gt;at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)&lt;BR /&gt;at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)&lt;BR /&gt;at org.eclipse.jetty.server.Server.handle(Server.java:501)&lt;BR /&gt;at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)&lt;BR /&gt;at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)&lt;BR /&gt;at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)&lt;BR /&gt;at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)&lt;BR /&gt;at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)&lt;BR /&gt;at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)&lt;BR /&gt;at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:540)&lt;BR /&gt;at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:395)&lt;BR /&gt;at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:161)&lt;BR /&gt;at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)&lt;BR /&gt;at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)&lt;BR /&gt;at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)&lt;BR /&gt;at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)&lt;BR /&gt;at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)&lt;BR /&gt;at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)&lt;BR /&gt;at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)&lt;BR /&gt;at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)&lt;BR /&gt;at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: org.apache.solr.common.SolrException: Unable to create core [ranger_audits_shard2_replica_n2]&lt;BR /&gt;at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1354)&lt;BR /&gt;at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1221)&lt;BR /&gt;... 50 more&lt;BR /&gt;Caused by: org.apache.solr.common.SolrException: Could not initialize class java.time.zone.ZoneRulesProvider&lt;BR /&gt;at org.apache.solr.core.SolrCore.&amp;lt;init&amp;gt;(SolrCore.java:1084)&lt;BR /&gt;at org.apache.solr.core.SolrCore.&amp;lt;init&amp;gt;(SolrCore.java:905)&lt;BR /&gt;at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1333)&lt;BR /&gt;... 51 more&lt;BR /&gt;Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.time.zone.ZoneRulesProvider&lt;BR /&gt;at java.time.format.DateTimeFormatterBuilder$ZoneTextPrinterParser.getTree(DateTimeFormatterBuilder.java:3726)&lt;BR /&gt;at java.time.format.DateTimeFormatterBuilder$ZoneIdPrinterParser.parse(DateTimeFormatterBuilder.java:3856)&lt;BR /&gt;at java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2209)&lt;BR /&gt;at java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2209)&lt;BR /&gt;at java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2209)&lt;BR /&gt;at java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.parse(DateTimeFormatterBuilder.java:2219)&lt;BR /&gt;at java.time.format.DateTimeFormatter.parseUnresolved0(DateTimeFormatter.java:2010)&lt;BR /&gt;at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1939)&lt;BR /&gt;at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1819)&lt;BR /&gt;at org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.parseInstant(ParseDateFieldUpdateProcessorFactory.java:230)&lt;BR /&gt;at org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.validateFormatter(ParseDateFieldUpdateProcessorFactory.java:214)&lt;BR /&gt;at org.apache.solr.update.processor.ParseDateFieldUpdateProcessorFactory.init(ParseDateFieldUpdateProcessorFactory.java:189)&lt;BR /&gt;at org.apache.solr.core.PluginBag.initInstance(PluginBag.java:106)&lt;BR /&gt;at org.apache.solr.core.PluginBag.createPlugin(PluginBag.java:148)&lt;BR /&gt;at org.apache.solr.core.PluginBag.init(PluginBag.java:290)&lt;BR /&gt;at org.apache.solr.core.PluginBag.init(PluginBag.java:279)&lt;BR /&gt;at org.apache.solr.core.SolrCore.&amp;lt;init&amp;gt;(SolrCore.java:1008)&lt;BR /&gt;... 53 more&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cluster is kerberized and cloudera runtime&amp;nbsp;7.1.6-1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone can give me a hint on how to fix this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 18:45:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-ranger-audits-collection-fails-with-quot-Could-not/m-p/328879#M230357</guid>
      <dc:creator>GregDol</dc:creator>
      <dc:date>2021-10-26T18:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create ranger_audits collection fails with "Could not initialize class java.time.zone.ZoneRulesProvider"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-ranger-audits-collection-fails-with-quot-Could-not/m-p/358803#M237940</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74402"&gt;@GregDol&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for using Cloudera Community. This is an Old Post, yet I am sharing a review for other Community Users, in case they encounter the concerned issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reviewing the Post indicates the Issue is likely caused by missing "&lt;SPAN class="s1"&gt;rt.jar" in the JDK used by the Solr Service. In other words, the concerned Class "&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;java.time.zone.ZoneRulesProvider"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;is present in "&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;/usr/java/jdk1.8.0_232-cloudera/jre/lib/rt.jar" for CDP Cluster (Path &amp;amp; Version may be different for Customer). The concerned JDK is used by the various Services running including Solr. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;In your scenario, the concerned Class appears to be missing. Assuming your team wish to confirm whether a JAR consists of the Class, you may use Command [&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;/usr/java/jdk1.8.0_232-cloudera/bin/jar -tvf /usr/java/jdk1.8.0_232-cloudera/jre/lib/rt.jar] to list the Classes, which should include&amp;nbsp;"java.time.zone.ZoneRulesProvider" as well. If your Team is using any different JDK, Review the same &amp;amp; ensure the "rt.jar" is present for&amp;nbsp;Class "java.time.zone.ZoneRulesProvider" to be loaded successfully.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Regards, Smarak&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 09:26:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-ranger-audits-collection-fails-with-quot-Could-not/m-p/358803#M237940</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2022-12-02T09:26:02Z</dc:date>
    </item>
  </channel>
</rss>

