From f13dbb3a4ee5019d39cb5012f3f4d426449895b3 Mon Sep 17 00:00:00 2001 From: zuotingbing <zuo.tingbing9@zte.com.cn> Date: Thu, 3 Aug 2017 10:13:52 +0100 Subject: [PATCH] [SPARK-21604][SQL] if the object extends Logging, i suggest to remove the var LOG which is useless. ## What changes were proposed in this pull request? if the object extends Logging, i suggest to remove the var LOG which is useless. ## How was this patch tested? Exist tests Author: zuotingbing <zuo.tingbing9@zte.com.cn> Closes #18811 from zuotingbing/SPARK-21604. --- .../apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala index 5e4734ad3a..7442c987ef 100644 --- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala +++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala @@ -23,7 +23,6 @@ import java.util.concurrent.atomic.AtomicBoolean import scala.collection.mutable import scala.collection.mutable.ArrayBuffer -import org.apache.commons.logging.LogFactory import org.apache.hadoop.hive.conf.HiveConf import org.apache.hadoop.hive.conf.HiveConf.ConfVars import org.apache.hive.service.cli.thrift.{ThriftBinaryCLIService, ThriftHttpCLIService} @@ -45,7 +44,6 @@ import org.apache.spark.util.{ShutdownHookManager, Utils} * `HiveThriftServer2` thrift server. */ object HiveThriftServer2 extends Logging { - var LOG = LogFactory.getLog(classOf[HiveServer2]) var uiTab: Option[ThriftServerTab] = None var listener: HiveThriftServer2Listener = _ -- GitLab