Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-8650][SQL] Use the user-specified app name priority in SparkSQLCLIDriver or HiveThriftServer2 #7030

Closed
wants to merge 2 commits into from

Conversation

watermen
Copy link
Contributor

When run ./bin/spark-sql --name query1.sql
[Before]
before

[After]
after

@yhuai
Copy link
Contributor

yhuai commented Jun 27, 2015

test this please.

@yhuai
Copy link
Contributor

yhuai commented Jun 27, 2015

Can we query the app name in cli or beeline? If so, I am wondering if we can have a test for this change.

@SparkQA
Copy link

SparkQA commented Jun 27, 2015

Test build #35902 has finished for PR 7030 at commit e3d7647.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -38,9 +38,11 @@ private[hive] object SparkSQLEnv extends Logging {
val sparkConf = new SparkConf(loadDefaults = true)
val maybeSerializer = sparkConf.getOption("spark.serializer")
val maybeKryoReferenceTracking = sparkConf.getOption("spark.kryo.referenceTracking")
val maybeAppName = sparkConf.getOption("spark.app.name")
.filter(!_.equals("org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment to explain this filter?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor styling suggestion:

val maybeAppName = sparkConf
  .getOption("spark.app.name")
  .filterNot(_ == classOf[SparkSQLCLIDriver].getName)

@liancheng
Copy link
Contributor

LGTM

@yhuai
Copy link
Contributor

yhuai commented Jun 30, 2015

ok to test

@SparkQA
Copy link

SparkQA commented Jun 30, 2015

Test build #36088 has finished for PR 7030 at commit 51b5134.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yhuai
Copy link
Contributor

yhuai commented Jun 30, 2015

Thanks! Merging to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants