If you see below exception while running Big Data Jobs - Spark, MR, Tez, etc.
WARNING: YARN_OPTS has been replaced by HADOOP_OPTS.
Using value of YARN_OPTS.
javax.security.sasl.SaslException: GSS initiate failed
[Caused by GSSException: No valid credentials provided (Mechanism level: Failed
to find any Kerberos tgt)]
Caused by: GSSException: No valid credentials provided
(Mechanism level: Failed to find any Kerberos tgt)
javax.security.sasl.SaslException: GSS initiate failed
[Caused by GSSException: No valid credentials provided (Mechanism level: Failed
to find any Kerberos tgt)]
Caused by: GSSException: No valid credentials provided
(Mechanism level: Failed to find any Kerberos tgt)
javax.security.sasl.SaslException: GSS initiate failed
[Caused by GSSException: No valid credentials provided (Mechanism level: Failed
to find any Kerberos tgt)]
Solution - The simplest way is to generate kerberos Keytab & initialize same in a user session before running job -
Ex - kinit -k -t /home/<User_name>/*.keytab
Comments
Post a Comment