You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2017/02/25 21:47:07 UTC

spark git commit: [SPARK-19673][SQL] "ThriftServer default app name is changed wrong"

Repository: spark
Updated Branches:
  refs/heads/master 061bcfb86 -> fe07de956


[SPARK-19673][SQL] "ThriftServer default app name is changed wrong"

## What changes were proposed in this pull request?
In spark 1.x ,the name of ThriftServer is SparkSQL:localHostName. While the ThriftServer default name is changed to the className of HiveThfift2 , which is not appropriate.

## How was this patch tested?
manual tests

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: lvdongr <lv...@zte.com.cn>

Closes #17010 from lvdongr/ThriftserverName.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/fe07de95
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/fe07de95
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/fe07de95

Branch: refs/heads/master
Commit: fe07de9566b345c7ad6a985bf1fdf1062351f6cf
Parents: 061bcfb
Author: lvdongr <lv...@zte.com.cn>
Authored: Sat Feb 25 21:47:02 2017 +0000
Committer: Sean Owen <sr...@percale.local>
Committed: Sat Feb 25 21:47:02 2017 +0000

----------------------------------------------------------------------
 .../scala/org/apache/spark/sql/hive/thriftserver/SparkSQLEnv.scala  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/fe07de95/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLEnv.scala
----------------------------------------------------------------------
diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLEnv.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLEnv.scala
index 78a3094..c0b2994 100644
--- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLEnv.scala
+++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLEnv.scala
@@ -40,6 +40,7 @@ private[hive] object SparkSQLEnv extends Logging {
       val maybeAppName = sparkConf
         .getOption("spark.app.name")
         .filterNot(_ == classOf[SparkSQLCLIDriver].getName)
+        .filterNot(_ == classOf[HiveThriftServer2].getName)
 
       sparkConf
         .setAppName(maybeAppName.getOrElse(s"SparkSQL::${Utils.localHostName()}"))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org