Sandeep More created KNOX-2348:
----------------------------------

             Summary: knoxcli fails to add alias when remote zookeeper registry 
is enabled and uses Kerberos
                 Key: KNOX-2348
                 URL: https://issues.apache.org/jira/browse/KNOX-2348
             Project: Apache Knox
          Issue Type: Bug
          Components: KnoxCLI
            Reporter: Sandeep More
            Assignee: Sandeep More
             Fix For: 1.5.0


When Zookeeper remote configuration registry is enabled and Kerberos auth is 
configured for remote registry, commands accessing zookeeper registry fail 
(e.g. create-alias).
{code:java}
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)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to