maomaodev commented on PR #41181:
URL: https://github.com/apache/spark/pull/41181#issuecomment-2574812195

   > @maomaodev Generally, the executor is supposed to use the delegation token 
instead of keytab to access kerberized HDFS. I wonder how do you set up your 
Kerberos auth for Spark? And what's the behavior before this PR.
   
   1. Yes, the executor does use delegation token, but based on the stacktrace 
provided above, the code is throwing an exception before adding the delegation 
token. 
   <img width="1101" alt="企业微信20250107-171644@2x" 
src="https://github.com/user-attachments/assets/f32dd6ce-c577-495c-bc4f-200c3c156599";
 />
   
   2. We use Kyuubi for submission, using the parameter 
spark.kubernetes.kerberos.krb5.path.
   <img width="1455" alt="企业微信20250107-173420@2x" 
src="https://github.com/user-attachments/assets/e8a4800d-75b7-4803-aaee-496971011166";
 />
   
   3. Prior to this PR, we were using Spark 3.4.2, and the executor did not 
mount the Hadoop conf during startup. The executor logs showed simple 
authentication.
   <img width="1449" alt="企业微信20250107-172445@2x" 
src="https://github.com/user-attachments/assets/c8fc9aeb-99bc-4f23-bc56-44d8a4160c08";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to