Skip to content

Commit 94ab490

Browse files
Marcelo VanzinHyukjinKwon
authored andcommitted
[SPARK-26650][CORE] Demote noisy HBase-related log message.
Make it a debug message so that it doesn't show up in the vast majority of cases, where HBase classes are not available. Closes #23776 from vanzin/SPARK-26650. Authored-by: Marcelo Vanzin <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent 7a8ff15 commit 94ab490

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/security/HBaseDelegationTokenProvider.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ private[security] class HBaseDelegationTokenProvider
120120
confCreate.invoke(null, conf).asInstanceOf[Configuration]
121121
} catch {
122122
case NonFatal(e) =>
123-
logWarning("Fail to invoke HBaseConfiguration", e)
123+
// Keep at debug level since this is executed even when HBase tokens are not needed.
124+
// Avoids a noisy warning for users who don't care about HBase.
125+
logDebug("Unable to load HBaseConfiguration.", e)
124126
conf
125127
}
126128
}

0 commit comments

Comments
 (0)