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 2019/03/04 18:02:00 UTC

[jira] [Assigned] (SPARK-25681) Delegation Tokens fetched twice upon HadoopFSDelegationTokenProvider creation

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

Marcelo Vanzin reassigned SPARK-25681:
--------------------------------------

    Assignee:     (was: Marcelo Vanzin)

> Delegation Tokens fetched twice upon HadoopFSDelegationTokenProvider creation
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-25681
>                 URL: https://issues.apache.org/jira/browse/SPARK-25681
>             Project: Spark
>          Issue Type: Improvement
>          Components: Kubernetes, Mesos, YARN
>    Affects Versions: 2.5.0
>            Reporter: Ilan Filonenko
>            Priority: Major
>              Labels: Hadoop, Kerberos
>
> Looking for a refactor to {{HadoopFSDelegationTokenProvider.}} Within the function {{obtainDelegationTokens()}}:
> This code-block:
> {code:java}
> val fetchCreds = fetchDelegationTokens(getTokenRenewer(hadoopConf),...)
>     // Get the token renewal interval if it is not set. It will only be called once.
>     if (tokenRenewalInterval == null) {
>       tokenRenewalInterval = getTokenRenewalInterval(...)
> }{code}
>  calls {{fetchDelegationTokens()}} twice since the {{tokenRenewalInterval}} will always be null upon creation of the {{TokenManager}} which I think is unnecessary in the case of Kubernetes (as you are creating 2 DTs when only one is needed.) Could this possibly be refactored to only call {{fetchDelegationTokens()}} once upon startup or to have a param to specify {{tokenRenewalInterval}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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