You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ilan Filonenko (JIRA)" <ji...@apache.org> on 2018/10/08 20:19:00 UTC

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

Ilan Filonenko created SPARK-25681:
--------------------------------------

             Summary: 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


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