[
https://issues.apache.org/jira/browse/SLIDER-1081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Loughran resolved SLIDER-1081.
------------------------------------
Resolution: Fixed
new command {{slider tokens}}
>From the manpage
{code}
slider tokens [--source <file>] [--out file] [--keytab <keytab> --principal
<principal>]
{code}
Lists current delegation tokens, or, on a secure cluster creates new ones.
This is useful for testing
the delegation token mechanism offered by Oozie, in which Oozie collects
the tokens needed by slider, saves them to a file, then starts slider in
with the environment variable {{HADOOP_TOKEN_FILE_LOCATION}} set to the
location of this file. For ease of doing that, the bash command to set the
property is printed.
For reference the tokens needed are:
* An HDFS token.
* A YARN client token to interact with the RM.
* If the timeline server is enabled, a timeline server delegation token.
If the {{keytab}} and {{principal}} arguments are supplied, then the credentials
will be generated with the named principal logged in from the specific keytab.
> add a command, "slider tokens" to save/list tokens to a file
> ------------------------------------------------------------
>
> Key: SLIDER-1081
> URL: https://issues.apache.org/jira/browse/SLIDER-1081
> Project: Slider
> Issue Type: New Feature
> Components: client, security
> Affects Versions: Slider 0.91
> Environment: secure cluster, trying to set up for oozie
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Fix For: Slider 0.91
>
>
> We need to test SLIDER-1077 without oozie, which means identifying all needed
> tokens and saving them to a file, setting {{HADOOP_TOKEN_FILE_LOCATION}} env
> var to it.
> the {{hadoop hdfs --fetchdt}} command isn't enough, as that only does
> hdfs/webhdfs, we need to add: RM and timeline.
> Solution: a new {{slider tokens}} command to collect all the tokens it needs,
> saves them to a file, ready for use by slider (or other apps). It can also
> list tokens in a file or the current environment.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)