Uh oh!
There was an error while loading. Please reload this page.
[SPARK-21662] modify the appname to [SparkSQL::localHostName] instead of [SparkSQL::lP] - #18879
[SPARK-21662] modify the appname to [SparkSQL::localHostName] instead of [SparkSQL::lP] #18879liu-zhaokun wants to merge 2 commits into
Conversation
liu-zhaokun
commented
Aug 9, 2017
Can one of the admins verify this patch? |
jiangxb1987
commented
Aug 9, 2017
I'm not convinced this deserves a separated PR because it's neither bugfix nor any improvement. Further more, the method |
srowen
commented
Aug 9, 2017
The method name is misleading internally, but we can't change this logic. |
liu-zhaokun
commented
Aug 9, 2017
@srowen@jiangxb1987 |
liu-zhaokun
commented
Aug 9, 2017
@srowen |
| if (sqlContext == null) { | ||
| val sparkConf = new SparkConf(loadDefaults = true) | ||
| // If user doesn't specify the appName, we want to get [SparkSQL::localHostName] instead of | ||
| // If user doesn't specify the appName, we will get [SparkSQL::IP] instead of |
There was a problem hiding this comment.
What is SparkSQL::IP?
I think this is not worth a JIRA / PR relative to the time spent looking at it
What problem does this cause a user?
There was a problem hiding this comment.
@srowen
It is not accurate,because the comment is different from the appname in web UI.
jiangxb1987
commented
Aug 9, 2017
I think @srowen means you should change the method name, not only the comment. |
liu-zhaokun
commented
Aug 9, 2017
Thanks for your patience.Would you @srowen agree with @jiangxb1987 . |
liu-zhaokun
commented
Aug 9, 2017
@jiangxb1987 |
Closesapache#18522Closesapache#17722Closesapache#18879Closesapache#18891Closesapache#18806Closesapache#18948Closesapache#18949Closesapache#19070Closesapache#19039Closesapache#19142Closesapache#18515Closesapache#19154Closesapache#19162Closesapache#19187
Closesapache#18522Closesapache#17722Closesapache#18879Closesapache#18891Closesapache#18806Closesapache#18948Closesapache#18949Closesapache#19070Closesapache#19039Closesapache#19142Closesapache#18515Closesapache#19154Closesapache#19162Closesapache#19187Closesapache#19091 Author: Sean Owen <sowen@cloudera.com> Closesapache#19203 from srowen/CloseStalePRs3.
https://issues.apache.org/jira/browse/SPARK-21662
As it says "If user doesn't specify the appName, we want to get [SparkSQL::localHostName]" in SparkSqlEnv.scala,line 38,appname should be SparkSQL::localHostName,but it is SparkSQL::lP in fact.So I modify the localHostName method to get localhost with getCanonicalHostName method.