You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "royal (Jira)" <ji...@apache.org> on 2022/03/11 06:08:00 UTC

[jira] [Commented] (RANGER-3255) Lost nessary pre-check for Empty input argument

    [ https://issues.apache.org/jira/browse/RANGER-3255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504738#comment-17504738 ] 

royal commented on RANGER-3255:
-------------------------------

How do you solve it? can you share the solution?

> Lost nessary pre-check for Empty input argument
> -----------------------------------------------
>
>                 Key: RANGER-3255
>                 URL: https://issues.apache.org/jira/browse/RANGER-3255
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 2.1.0, 3.0.0, 2.2.0
>            Reporter: Shiyou xin
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)