Skip to content

Commit aa6fef9

Browse files
committed
[SPARK-26650]Yarn Client throws 'ClassNotFoundException: org.apache.hadoop.hbase.HBaseConfiguration'
1 parent 8503aa3 commit aa6fef9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ private[security] class HBaseDelegationTokenProvider
7070
getMethod("create", classOf[Configuration])
7171
confCreate.invoke(null, conf).asInstanceOf[Configuration]
7272
} catch {
73+
case e: ClassNotFoundException =>
74+
logWarning(s"You are attempting to use the ${getClass.getCanonicalName}, but" +
75+
s" the HBase libraries are not provided.")
76+
conf
7377
case NonFatal(e) =>
7478
logWarning("Fail to invoke HBaseConfiguration", e)
7579
conf

0 commit comments

Comments
 (0)