From aa6fef9baa80b5d81308bf75883703239580ed4f Mon Sep 17 00:00:00 2001 From: Shahid Date: Mon, 21 Jan 2019 23:15:09 +0530 Subject: [PATCH] [SPARK-26650]Yarn Client throws 'ClassNotFoundException: org.apache.hadoop.hbase.HBaseConfiguration' --- .../spark/deploy/security/HBaseDelegationTokenProvider.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/scala/org/apache/spark/deploy/security/HBaseDelegationTokenProvider.scala b/core/src/main/scala/org/apache/spark/deploy/security/HBaseDelegationTokenProvider.scala index 6ef68351bc9b..ca3edfc85493 100644 --- a/core/src/main/scala/org/apache/spark/deploy/security/HBaseDelegationTokenProvider.scala +++ b/core/src/main/scala/org/apache/spark/deploy/security/HBaseDelegationTokenProvider.scala @@ -70,6 +70,10 @@ private[security] class HBaseDelegationTokenProvider getMethod("create", classOf[Configuration]) confCreate.invoke(null, conf).asInstanceOf[Configuration] } catch { + case e: ClassNotFoundException => + logWarning(s"You are attempting to use the ${getClass.getCanonicalName}, but" + + s" the HBase libraries are not provided.") + conf case NonFatal(e) => logWarning("Fail to invoke HBaseConfiguration", e) conf