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

   > @maomaodev I see what happens, the official Spark image installs 
`krb5-user` which generates a default `/etc/krb5.conf` with content
   > 
   > ```
   > $ docker run --rm apache/spark:3.5.4 cat /etc/krb5.conf
   > [libdefaults]
   >    default_realm = ATHENA.MIT.EDU
   > ...
   > ```
   > 
   > so that `KerberosUtil.getDefaultRealm` works well, this is not the 
expected behavior but happens to work. I think the root cause is 
`spark.kubernetes.kerberos.krb5.path` claims to mount on both driver and 
executors but actually not.
   > 
   > In short, creating a dummy `/etc/krb5.conf` in your base image should 
workaround your issue, and the correct solution is mounting 
`spark.kubernetes.kerberos.krb5.path` to executor pod correctly.
   
   Yes, creating a dummy /etc/krb5.conf in the base image does work. Is the 
community planning to fix this issue?


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