Repository: spark Updated Branches: refs/heads/master f13dbb3a4 -> 322147061
[SPARK-21611][SQL] Error class name for log in several classes. ## What changes were proposed in this pull request? Error class name for log in several classes. such as: `2017-08-02 16:43:37,695 INFO CompositeService: Operation log root directory is created: /tmp/mr/operation_logs` `Operation log root directory is created ... ` is in `SessionManager.java` actually. ## How was this patch tested? manual tests Author: zuotingbing <zuo.tingbi...@zte.com.cn> Closes #18816 from zuotingbing/SPARK-21611. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/32214706 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/32214706 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/32214706 Branch: refs/heads/master Commit: 32214706113789e9f2f2befe2cb1eadad41743ee Parents: f13dbb3 Author: zuotingbing <zuo.tingbi...@zte.com.cn> Authored: Thu Aug 3 11:08:18 2017 +0100 Committer: Sean Owen <so...@cloudera.com> Committed: Thu Aug 3 11:08:18 2017 +0100 ---------------------------------------------------------------------- .../src/main/java/org/apache/hive/service/ServiceOperations.java | 2 +- .../java/org/apache/hive/service/cli/session/SessionManager.java | 2 +- .../org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/32214706/sql/hive-thriftserver/src/main/java/org/apache/hive/service/ServiceOperations.java ---------------------------------------------------------------------- diff --git a/sql/hive-thriftserver/src/main/java/org/apache/hive/service/ServiceOperations.java b/sql/hive-thriftserver/src/main/java/org/apache/hive/service/ServiceOperations.java index c3219aa..f16863c 100644 --- a/sql/hive-thriftserver/src/main/java/org/apache/hive/service/ServiceOperations.java +++ b/sql/hive-thriftserver/src/main/java/org/apache/hive/service/ServiceOperations.java @@ -27,7 +27,7 @@ import org.apache.hadoop.hive.conf.HiveConf; * */ public final class ServiceOperations { - private static final Log LOG = LogFactory.getLog(AbstractService.class); + private static final Log LOG = LogFactory.getLog(ServiceOperations.class); private ServiceOperations() { } http://git-wip-us.apache.org/repos/asf/spark/blob/32214706/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/session/SessionManager.java ---------------------------------------------------------------------- diff --git a/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/session/SessionManager.java b/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/session/SessionManager.java index c1b3892..859f9c8 100644 --- a/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/session/SessionManager.java +++ b/sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/session/SessionManager.java @@ -48,7 +48,7 @@ import org.apache.hive.service.server.ThreadFactoryWithGarbageCleanup; */ public class SessionManager extends CompositeService { - private static final Log LOG = LogFactory.getLog(CompositeService.class); + private static final Log LOG = LogFactory.getLog(SessionManager.class); public static final String HIVERCFILE = ".hiverc"; private HiveConf hiveConf; private final Map<SessionHandle, HiveSession> handleToSession = http://git-wip-us.apache.org/repos/asf/spark/blob/32214706/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala ---------------------------------------------------------------------- diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala index 33e18a8..38c4589 100644 --- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala +++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala @@ -272,7 +272,7 @@ private[hive] object SparkSQLCLIDriver extends Logging { private[hive] class SparkSQLCLIDriver extends CliDriver with Logging { private val sessionState = SessionState.get().asInstanceOf[CliSessionState] - private val LOG = LogFactory.getLog("CliDriver") + private val LOG = LogFactory.getLog(classOf[SparkSQLCLIDriver]) private val console = new SessionState.LogHelper(LOG) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org