[
https://issues.apache.org/jira/browse/KNOX-2348?focusedWorklogId=428704&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-428704
]
ASF GitHub Bot logged work on KNOX-2348:
----------------------------------------
Author: ASF GitHub Bot
Created on: 29/Apr/20 19:10
Start Date: 29/Apr/20 19:10
Worklog Time Spent: 10m
Work Description: moresandeep opened a new pull request #331:
URL: https://github.com/apache/knox/pull/331
## What changes were proposed in this pull request?
Fix a bug in KnoxCLI that prevents creating alias when remote zookeeper
registry is used with Kerberos auth.
## How was this patch tested?
The patch was tested locally.
Please review [Knox Contributing
Process](https://cwiki.apache.org/confluence/display/KNOX/Contribution+Process#ContributionProcess-GithubWorkflow)
before opening a pull request.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 428704)
Remaining Estimate: 0h
Time Spent: 10m
> 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
> Priority: Major
> Fix For: 1.5.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)