Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3255

Lost nessary pre-check for Empty input argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0, 3.0.0, 2.2.0
    • None
    • plugins
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            it boys Shiyou xin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m