<?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: RangerKMS failed to start up with ERROR org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer: Error Enabling RangerKMSPlugin java.lang.IllegalArgumentException: bound must be positive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318164#M227416</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35149"&gt;@Scharan&lt;/a&gt;&amp;nbsp; &amp;nbsp;Appreciated your great help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After adding&amp;nbsp;&lt;EM&gt;ranger.plugin.kms.policy.rest.url :&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31503iE9E9B4C077675547/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ranger KMS server started up ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31504iEE42CF23EADE99C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG" alt="4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jake Zhang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 01:43:58 GMT</pubDate>
    <dc:creator>jakezhang</dc:creator>
    <dc:date>2021-06-11T01:43:58Z</dc:date>
    <item>
      <title>RangerKMS failed to start up with ERROR org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer: Error Enabling RangerKMSPlugin java.lang.IllegalArgumentException: bound must be positive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318159#M227413</link>
      <description>&lt;P&gt;CDP 7.1.6 with Isilon OneFS v8.2.2.0,&amp;nbsp; AD kerberos enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While installing RangerKMS service, it failed to start up with the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31501i937BBD77B9F1A652/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31502i83EFC777C71E646F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@n04 ~]# less /var/log/ranger/kms/ranger-kms-n04.gz.local-kms.log&lt;/P&gt;&lt;P&gt;2021-06-11 08:30:32,179 INFO org.apache.hadoop.crypto.key.kms.server.KMSWebApp: -------------------------------------------------------------&lt;BR /&gt;2021-06-11 08:30:32,181 INFO org.apache.hadoop.crypto.key.kms.server.KMSWebApp: Java runtime version : 1.8.0_232-b09&lt;BR /&gt;2021-06-11 08:30:32,185 INFO org.apache.hadoop.crypto.key.kms.server.KMSWebApp: KMS Hadoop Version: 3.1.1.7.1.6.0-297&lt;BR /&gt;2021-06-11 08:30:32,185 INFO org.apache.hadoop.crypto.key.kms.server.KMSWebApp: -------------------------------------------------------------&lt;BR /&gt;2021-06-11 08:30:32,208 INFO org.apache.ranger.plugin.classloader.RangerPluginClassLoaderUtil: getFilesInDirectory('/opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/ranger-kms/ews/webapp/WEB-INF/classes/lib/ranger-kms-plugin-impl'): adding /opt/cloudera/parcels/CDH-7.1.6-1.cdh7.1.6.p0.10506313/lib/ranger-kms/ews/webapp/WEB-INF/classes/lib/ranger-kms-plugin-impl/solr-solrj-8.4.1.7.1.6.0-297.jar&lt;/P&gt;&lt;P&gt;&amp;lt;snip&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2021-06-11 08:31:16,787 INFO org.apache.ranger.audit.provider.AuditProviderFactory: RangerAsyncAuditCleanup: Waiting to audit cleanup start signal&lt;BR /&gt;2021-06-11 08:31:16,856 ERROR org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer: Error Enabling RangerKMSPlugin&lt;BR /&gt;java.lang.IllegalArgumentException: bound must be positive&lt;BR /&gt;at java.util.Random.nextInt(Random.java:388)&lt;BR /&gt;at org.apache.ranger.plugin.util.RangerRESTClient.&amp;lt;init&amp;gt;(RangerRESTClient.java:124)&lt;BR /&gt;at org.apache.ranger.admin.client.RangerAdminRESTClient.init(RangerAdminRESTClient.java:771)&lt;BR /&gt;at org.apache.ranger.admin.client.RangerAdminRESTClient.init(RangerAdminRESTClient.java:116)&lt;BR /&gt;at org.apache.ranger.plugin.service.RangerBasePlugin.createAdminClient(RangerBasePlugin.java:659)&lt;BR /&gt;at org.apache.ranger.plugin.util.PolicyRefresher.&amp;lt;init&amp;gt;(PolicyRefresher.java:93)&lt;BR /&gt;at org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:182)&lt;BR /&gt;at org.apache.ranger.authorization.kms.authorizer.RangerKMSPlugin.init(RangerKmsAuthorizer.java:347)&lt;BR /&gt;at org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer.init(RangerKmsAuthorizer.java:304)&lt;BR /&gt;at org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer.&amp;lt;init&amp;gt;(RangerKmsAuthorizer.java:128)&lt;BR /&gt;at org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer.&amp;lt;init&amp;gt;(RangerKmsAuthorizer.java:154)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;BR /&gt;at java.lang.Class.newInstance(Class.java:442)&lt;BR /&gt;at org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer.init(RangerKmsAuthorizer.java:71)&lt;BR /&gt;at org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer.&amp;lt;init&amp;gt;(RangerKmsAuthorizer.java:51)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;BR /&gt;at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)&lt;BR /&gt;at org.apache.hadoop.crypto.key.kms.server.KMSWebApp.getAcls(KMSWebApp.java:239)&lt;BR /&gt;at org.apache.hadoop.crypto.key.kms.server.KMSWebApp.contextInitialized(KMSWebApp.java:138)&lt;BR /&gt;at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4689)&lt;BR /&gt;at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5155)&lt;BR /&gt;at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)&lt;BR /&gt;at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)&lt;BR /&gt;at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2021-06-11 08:31:16,863 INFO org.apache.ranger.audit.provider.AuditProviderFactory: ==&amp;gt; JVMShutdownHook.run()&lt;BR /&gt;2021-06-11 08:31:16,864 INFO org.apache.ranger.audit.provider.AuditProviderFactory: JVMShutdownHook: Signalling async audit cleanup to start.&lt;BR /&gt;2021-06-11 08:31:16,864 INFO org.apache.ranger.audit.provider.AuditProviderFactory: JVMShutdownHook: Waiting up to 30 seconds for audit cleanup to finish.&lt;BR /&gt;2021-06-11 08:31:16,864 INFO org.apache.ranger.audit.provider.AuditProviderFactory: RangerAsyncAuditCleanup: Starting cleanup&lt;BR /&gt;2021-06-11 08:31:16,864 INFO org.apache.ranger.audit.destination.HDFSAuditDestination: Flush called. name=kms.async.summary.multi_dest.batch.hdfs&lt;BR /&gt;2021-06-11 08:31:16,864 INFO org.apache.ranger.audit.queue.AuditAsyncQueue: Stop called. name=kms.async&lt;BR /&gt;2021-06-11 08:31:16,864 INFO org.apache.ranger.audit.queue.AuditAsyncQueue: Interrupting consumerThread. name=kms.async, consumer=kms.async.summary&lt;BR /&gt;2021-06-11 08:31:16,865 INFO org.apache.ranger.audit.provider.AuditProviderFactory: RangerAsyncAuditCleanup: Done cleanup&lt;BR /&gt;2021-06-11 08:31:16,865 INFO org.apache.ranger.audit.provider.AuditProviderFactory: RangerAsyncAuditCleanup: Waiting to audit cleanup start signal&lt;BR /&gt;2021-06-11 08:31:16,865 INFO org.apache.ranger.audit.provider.AuditProviderFactory: JVMShutdownHook: Audit cleanup finished after 1 milli seconds&lt;BR /&gt;2021-06-11 08:31:16,865 INFO org.apache.ranger.audit.provider.AuditProviderFactory: JVMShutdownHook: Interrupting ranger async audit cleanup thread&lt;BR /&gt;2021-06-11 08:31:16,865 INFO org.apache.ranger.audit.provider.AuditProviderFactory: &amp;lt;== JVMShutdownHook.run()&lt;BR /&gt;2021-06-11 08:31:16,865 INFO org.apache.ranger.audit.provider.AuditProviderFactory: RangerAsyncAuditCleanup: Interrupted while waiting for audit startCleanup signal! Exiting the thread...&lt;BR /&gt;java.lang.InterruptedException&lt;BR /&gt;at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:998)&lt;BR /&gt;at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)&lt;BR /&gt;at java.util.concurrent.Semaphore.acquire(Semaphore.java:312)&lt;BR /&gt;at org.apache.ranger.audit.provider.AuditProviderFactory$RangerAsyncAuditCleanup.run(AuditProviderFactory.java:506)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;2021-06-11 08:31:16,865 INFO org.apache.ranger.audit.queue.AuditAsyncQueue: Caught exception in consumer thread. Shutdown might be in progress&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 09:02:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318159#M227413</guid>
      <dc:creator>jakezhang</dc:creator>
      <dc:date>2026-04-21T09:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: RangerKMS failed to start up with ERROR org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer: Error Enabling RangerKMSPlugin java.lang.IllegalArgumentException: bound must be positive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318160#M227414</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31768"&gt;@jakezhang&lt;/a&gt;&amp;nbsp; Can you try adding ranger url in&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Ranger KMS Server Advanced Configuration Snippet (Safety Valve) for conf/ranger-kms-security.xml” &lt;EM&gt;ranger.plugin.kms.policy.rest.url=&lt;A href="http://%3Crangerhostname%3E:6082/" target="_blank" rel="noopener"&gt;http://&amp;lt;rangerhostname&amp;gt;:&amp;lt;port no&amp;gt;&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, make sure that DB for ranger and ranger kms are separate&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 01:19:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318160#M227414</guid>
      <dc:creator>Scharan</dc:creator>
      <dc:date>2021-06-11T01:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: RangerKMS failed to start up with ERROR org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer: Error Enabling RangerKMSPlugin java.lang.IllegalArgumentException: bound must be positive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318161#M227415</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;yes,&amp;nbsp; I created separated DBs for Ranger and RangerKMS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;postgres=# \l
                                   List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |    Access privileges
-----------+----------+----------+-------------+-------------+--------------------------
 amon      | amon     | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 hue       | hue      | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 metastore | hive     | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 oozie     | oozie    | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 ranger    | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres            +
           |          |          |             |             | postgres=CTc/postgres   +
           |          |          |             |             | rangeradmin=CTc/postgres+
           |          |          |             |             | rangerkms=CTc/postgres
 rangerkms | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres            +
           |          |          |             |             | postgres=CTc/postgres   +
           |          |          |             |             | rangerkms=CTc/postgres
 rman      | rman     | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 scm       | scm      | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres             +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres             +
           |          |          |             |             | postgres=CTc/postgres
(11 rows)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;will try ""Ranger KMS Server Advanced Configuration Snippet (Safety Valve) for conf/ranger-kms-security.xml” &lt;EM&gt;ranger.plugin.kms.policy.rest.url=&lt;A href="http://%3Crangerhostname%3E:6082/" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://&amp;lt;rangerhostname&amp;gt;:&amp;lt;port no&amp;gt;&lt;/A&gt;&lt;/EM&gt;"&amp;nbsp; and see if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jake Zhang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 01:24:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318161#M227415</guid>
      <dc:creator>jakezhang</dc:creator>
      <dc:date>2021-06-11T01:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: RangerKMS failed to start up with ERROR org.apache.ranger.authorization.kms.authorizer.RangerKmsAuthorizer: Error Enabling RangerKMSPlugin java.lang.IllegalArgumentException: bound must be positive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318164#M227416</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35149"&gt;@Scharan&lt;/a&gt;&amp;nbsp; &amp;nbsp;Appreciated your great help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After adding&amp;nbsp;&lt;EM&gt;ranger.plugin.kms.policy.rest.url :&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31503iE9E9B4C077675547/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ranger KMS server started up ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31504iEE42CF23EADE99C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG" alt="4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jake Zhang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 01:43:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/RangerKMS-failed-to-start-up-with-ERROR-org-apache-ranger/m-p/318164#M227416</guid>
      <dc:creator>jakezhang</dc:creator>
      <dc:date>2021-06-11T01:43:58Z</dc:date>
    </item>
  </channel>
</rss>

