Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1.0, 3.0.0, 2.2.0
-
None
-
None
Description
If configure file not found, or lost nessary configure urls, then a exception happens as following :
{{2021-04-27 10:46:30,658 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.
java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Random.java:388)
at org.apache.ranger.plugin.util.RangerRESTClient.<init>(RangerRESTClient.java:120)
at org.apache.ranger.admin.client.RangerAdminRESTClient.init(RangerAdminRESTClient.java:778)
at org.apache.ranger.admin.client.RangerAdminRESTClient.init(RangerAdminRESTClient.java:116)}}
Maybe, we should add a pre-check.