spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kei Kori (JIRA)" <>
Subject [jira] [Created] (SPARK-26125) Delegation Token seems not appropriately stored on secrets of Kubernetes/Kerberized HDFS
Date Tue, 20 Nov 2018 03:37:00 GMT
Kei Kori created SPARK-26125:

             Summary: Delegation Token seems not appropriately stored on secrets of Kubernetes/Kerberized
                 Key: SPARK-26125
             Project: Spark
          Issue Type: Bug
          Components: Kubernetes
    Affects Versions: 3.0.0
            Reporter: Kei Kori
         Attachments: spark-submit-stern.log

I tried Kerberos authentication with Kubernetes Resource Manager and an external Hadoop and
I tested built on [6c9c84f|]
(master + SPARK-23257).

$ bin/spark-submit \
      --deploy-mode cluster \
      --class org.apache.spark.examples.HdfsTest \
      --master k8s://https://master01.node:6443 \
      --conf spark.kubernetes.authenticate.driver.serviceAccountName=spark \
      --conf \
      --conf spark.executer.instances=1 \
      --conf spark.kubernetes.container.image=docker-registry/kkori/spark:6c9c84f \
      --conf spark.kubernetes.kerberos.enabled=true \
      --conf spark.kubernetes.kerberos.krb5.configMapName=krb5-conf \
      --conf spark.kubernetes.kerberos.keytab=/tmp/test.keytab \
      --conf spark.kubernetes.kerberos.principal=test@EXTERNAL.KERBEROS.REALM.COM \
      --conf spark.kubernetes.hadoop.configMapName=hadoop-conf \

I successfully submitted into Kubernetes RM and Kubernetes spawned spark-driver and executors,
but Hadoop Delegation Token seems wrongly stored into Kubernetes secrets, since that contains
only header like below:

$ kubectl get secrets spark-hdfs-1542613661459-delegation-tokens -o jsonpath='{.data.hadoop-tokens}'
| {base64 -d | cat -A; echo;}

The result of "kubectl get secrets" should be like folloing(I masked the actual result):

As a result, spark-driver threw GSSException for each access of HDFS.
Full logs(submit, driver, executor) are attached.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message