diff options
author | lvdongr <lv.dongdong@zte.com.cn> | 2017-02-25 21:47:02 +0000 |
---|---|---|
committer | Sean Owen <srowen@percale.local> | 2017-02-25 21:47:02 +0000 |
commit | fe07de9566b345c7ad6a985bf1fdf1062351f6cf (patch) | |
tree | 5474458dd1b186fc7df9a94cd3cdbd24e01f2b39 /sql | |
parent | 061bcfb869fe5f64edd9ee2352fecd70665da317 (diff) | |
download | spark-fe07de9566b345c7ad6a985bf1fdf1062351f6cf.tar.gz spark-fe07de9566b345c7ad6a985bf1fdf1062351f6cf.tar.bz2 spark-fe07de9566b345c7ad6a985bf1fdf1062351f6cf.zip |
[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.dongdong@zte.com.cn>
Closes #17010 from lvdongr/ThriftserverName.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLEnv.scala | 1 |
1 files changed, 1 insertions, 0 deletions
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 78a309497a..c0b299411e 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()}")) |