You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandor Molnar (JIRA)" <ji...@apache.org> on 2019/02/25 08:32:00 UTC
[jira] [Created] (KNOX-1795) Discrepancies between DEv guide and
confluence for KnoxToken sessions in confluence
Sandor Molnar created KNOX-1795:
-----------------------------------
Summary: Discrepancies between DEv guide and confluence for KnoxToken sessions in confluence
Key: KNOX-1795
URL: https://issues.apache.org/jira/browse/KNOX-1795
Project: Apache Knox
Issue Type: Bug
Components: KnoxShell
Affects Versions: 1.2.0
Reporter: Sandor Molnar
Assignee: Sandor Molnar
Fix For: 1.3.0
Following the steps described in [Knox's Confluence page|https://cwiki.apache.org/confluence/display/KNOX/KnoxToken+Sessions+with+KnoxShell+in+Apache+Knox+0.12.0] results in the following error:
{code:java}
SNAPSHOT/samples/ExampleCachedTokenUsage.groovy: 23: unable to resolve class org.apache.hadoop.gateway.shell.Hadoop
@ line 23, column 1.
import org.apache.hadoop.gateway.shell.Hadoop
^
/Users/smolnar/test/knoxshell/knoxshell-1.3.0-SNAPSHOT/samples/ExampleCachedTokenUsage.groovy: 24: unable to resolve class org.apache.hadoop.gateway.shell.hdfs.Hdfs
@ line 24, column 1.
import org.apache.hadoop.gateway.shell.hdfs.Hdfs
^
/Users/smolnar/test/knoxshell/knoxshell-1.3.0-SNAPSHOT/samples/ExampleCachedTokenUsage.groovy: 22: unable to resolve class org.apache.hadoop.gateway.shell.Credentials
@ line 22, column 1.
import org.apache.hadoop.gateway.shell.Credentials
^
3 errors
{code}
The reason for this issue is that the above-mentioned classes have wrong package names: org.apache.*hadoop*.gateway.shell vs org.apache.*knox*.gateway.shell.
Note: the corresponding section in the [DEV guide|http://knox.apache.org/books/knox-1-2-0/user-guide.html#Client+Token+Sessions] has the correct packages.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)