Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-18840

HDFSCredentialProvider throws exception in non-HDFS security environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.3, 2.1.0
    • 2.1.0
    • Spark Core, YARN
    • None

    Description

      Current in HDFSCredentialProvider, the code logic assumes HDFS delegation token should be existed, this is ok for HDFS environment, but for some cloud environment like Azure, HDFS is not required, so it will throw exception:

      java.util.NoSuchElementException: head of empty list
              at scala.collection.immutable.Nil$.head(List.scala:337)
              at scala.collection.immutable.Nil$.head(List.scala:334)
              at org.apache.spark.deploy.yarn.Client.getTokenRenewalInterval(Client.scala:627)
      

      We should also consider this situation.

      Attachments

        Activity

          People

            jerryshao Saisai Shao
            jerryshao Saisai Shao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: