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

Create storm service with error configurations, test connection should not be successful.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.7.0
    • admin
    • None

    Description

      Storm is in security mode with Kerberos Authentication,
      Create storm service with error configurations in Ranger Admin with the following configurations:

      name=stormdev
      username=storm
      password=******
      nimbus.url=http://10.43.159.41:18080
      lookupprincipal=storm/zdh41@ZDH.COM
      lookupkeytab=/home/storm/apache-storm-1.0.1/conf/storm.keytab
      namerules=RULE:[2:$1@$0]([jt]t@.*ZDH.COM)s/.*/$MAPRED_USER/ RULE:[2:$1@$0]([nd]n@.*ZDH.COM)s/.*/$HDFS_USER/DEFAULT
      

      then click "TestConnection", the result is "ConnectionTest Successful",
      modify lookupprincipal to errorPrincipalName, and click "TestConnection" again,
      the result is still "ConnectionTest Successful".
      Also in creating policies for storm service which created above,
      the autocomplete for "Storm Topology" is unable to work correctly.

      To check ranger_admin.log and find the error log

      (StormClient.java:186) - Unable to get Topology list from [http://10.43.159.41:18080]
      ......
      (StormResourceMgr.java:49) - <== StormResourceMgr.validateConfig Result : {message=ConnectionTest Successful, connectivityStatus=true, objectId=null, description=ConnectionTest Successful, fieldName=null}
      

      which means the result of "TestConnection" is failed in fact, but ranger admin returns error message "ConnectionTest Successful".

      Attachments

        1. 0001-RANGER-1242-TestConnectionForStormService.patch
          1 kB
          Qiang Zhang
        2. StromTestConnection.log
          8 kB
          Qiang Zhang
        3. StormServiceTestConnection.jpg
          112 kB
          Qiang Zhang

        Activity

          People

            zhangqiang2 Qiang Zhang
            zhangqiang2 Qiang Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified