You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2016/07/18 19:25:20 UTC

[jira] [Resolved] (SPARK-16612) Introduce a way for users to easily add support for new services that need delegation tokens

     [ https://issues.apache.org/jira/browse/SPARK-16612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcelo Vanzin resolved SPARK-16612.
------------------------------------
    Resolution: Duplicate

> Introduce a way for users to easily add support for new services that need delegation tokens
> --------------------------------------------------------------------------------------------
>
>                 Key: SPARK-16612
>                 URL: https://issues.apache.org/jira/browse/SPARK-16612
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Submit, YARN
>    Affects Versions: 1.6.2
>            Reporter: Richard Williams
>
> Say a user wants to run a Spark job in YARN on a secure Hadoop cluster, and that job requires access to some service for which the Spark framework currently does not support getting delegation tokens. If the job runs in client mode, the user can simply fetch a delegation token for that service in their own code. If, on the other hand, the job runs in cluster mode, there does not appear to be any way for the user to get that delegation token and propagate it to the driver (apart from modifying Spark's own code to provide support for the service in question).
> It would be helpful if there were a configuration property specifying the list of supported services (perhaps defaulting to "hbase,hive"). For each service in this list, there could be two additional configuration properties; one of these would be used to disable or enable fetching of tokens, like the existing spark.yarn.security.tokens.service.enabled properties, while the other would be used to specify a class that would implement the actual task of fetching a delegation token for the service. Where Spark is currently fetching tokens for HBase and the Hive metastore, it would instead loop over the list of configured services and use the specified classes to get tokens for each of them in turn. 
> With this change, if a user wanted to add support for a new service, they would not have to modify Spark; instead, they would just have to write a class implementing the task of obtaining a token for that service, include that class on spark-submit's classpath, and change the relevant configuration properties to tell Spark to fetch tokens for that service using that class.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org