Description
Following the steps described in Knox's Confluence page results in the following error:
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
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 has the correct packages.