spark-instrumented-optimizer/core
Gabor Somogyi d75588c57a [SPARK-29082][CORE] Skip delegation token generation if no credentials are available
This PR is an enhanced version of https://github.com/apache/spark/pull/25805 so I've kept the original text. The problem with the original PR can be found in comment.

This situation can happen when an external system (e.g. Oozie) generates
delegation tokens for a Spark application. The Spark driver will then run
against secured services, have proper credentials (the tokens), but no
kerberos credentials. So trying to do things that requires a kerberos
credential fails.

Instead, if no kerberos credentials are detected, just skip the whole
delegation token code.

Tested with an application that simulates Oozie; fails before the fix,
passes with the fix. Also with other DT-related tests to make sure other
functionality keeps working.

Closes #25901 from gaborgsomogyi/SPARK-29082.

Authored-by: Gabor Somogyi <gabor.g.somogyi@gmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
2019-09-24 11:12:26 -07:00
..
benchmarks [SPARK-29192][TESTS] Extend BenchmarkBase to write JDK9+ results separately 2019-09-20 19:41:25 -07:00
src [SPARK-29082][CORE] Skip delegation token generation if no credentials are available 2019-09-24 11:12:26 -07:00
pom.xml [SPARK-29082][CORE] Skip delegation token generation if no credentials are available 2019-09-24 11:12:26 -07:00