Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2348

knoxcli fails to add alias when remote zookeeper registry is enabled and uses Kerberos

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • KnoxCLI
    • None

    Description

      When Zookeeper remote configuration registry is enabled and Kerberos auth is configured for remote registry, commands accessing zookeeper registry fail (e.g. create-alias).

      knox-1.4.0 bin/knoxcli.sh create-alias my-alias --value somevalue --cluster cm-demoknox-1.4.0 bin/knoxcli.sh create-alias my-alias --value somevalue --cluster cm-demoPicked up _JAVA_OPTIONS: -Djava.awt.headless=trueListening for transport dt_socket at address: 5005Listening for transport dt_socket at address: 5005java.lang.IllegalStateException: Unable to access remote path: /knox/security/topology at org.apache.knox.gateway.services.security.impl.ZookeeperRemoteAliasService.init(ZookeeperRemoteAliasService.java:333) at org.apache.knox.gateway.services.security.impl.RemoteAliasService.init(RemoteAliasService.java:260) at org.apache.knox.gateway.services.CLIGatewayServices.init(CLIGatewayServices.java:79) at org.apache.knox.gateway.util.KnoxCLI.initializeServices(KnoxCLI.java:194) at org.apache.knox.gateway.util.KnoxCLI.run(KnoxCLI.java:164) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at org.apache.knox.gateway.util.KnoxCLI.main(KnoxCLI.java:2273) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:68) at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39) at org.apache.knox.gateway.launcher.Command.run(Command.java:99) at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:75) at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:52)
      

      Attachments

        Issue Links

          Activity

            People

              smore Sandeep More
              smore Sandeep More
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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