Skip to content

Commit

Permalink
[CARMEL-3500] Catch potential exception for renew kerberos ticket (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan, Xuedong authored and mingmwang committed Aug 11, 2020
1 parent 88e9d8b commit dcd6c6a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ private[spark] class HadoopDelegationTokenManager(
// not need to be renewed yet.
val tgtRenewalTask = new Runnable() {
override def run(): Unit = {
ugi.checkTGTAndReloginFromKeytab()
try {
ugi.checkTGTAndReloginFromKeytab()
} catch {
case e: Throwable =>
logWarning("Failed to renew TGT from keytab file", e)
}
}
}
val tgtRenewalPeriod = sparkConf.get(KERBEROS_RELOGIN_PERIOD)
Expand Down

0 comments on commit dcd6c6a

Please sign in to comment.