Uh oh!
There was an error while loading. Please reload this page.
[SPARK-15730][SQL] Respect the --hiveconf in the spark-sql command line - #13542
[SPARK-15730][SQL] Respect the --hiveconf in the spark-sql command line#13542chenghao-intel wants to merge 2 commits into
Conversation
SparkQA
commented
Jun 7, 2016
Test build #60127 has finished for PR 13542 at commit
|
SparkQA
commented
Jun 8, 2016
Test build #60144 has finished for PR 13542 at commit
|
chenghao-intel
commented
Jun 10, 2016
cc @yhuai |
chenghao-intel
commented
Jun 10, 2016
| | --hiveconf ${ConfVars.METASTOREWAREHOUSE}=$warehousePath | ||
| | --hiveconf ${ConfVars.SCRATCHDIR}=$scratchDirPath | ||
| | --hiveconf conf1=conftest | ||
| | --hiveconf conf2=1 |
There was a problem hiding this comment.
@chenghao-intel Does --hiveconf ${ConfVars.METASTORECONNECTURLKEY}=$jdbcUrl work?
There was a problem hiding this comment.
yes, it works, that's intention, right?
But seems the below code in SparkSQLCliDriver will not work as we expected.
if (key !="javax.jdo.option.ConnectionURL") {
conf.set(key, value)
sessionState.getOverriddenConfigurations.put(key, value)
}Why do we have to ignore the connection url?
There was a problem hiding this comment.
Do you know why those work but something like --hiveconf conf1=conftest does not?
jameszhouyi
commented
Jun 14, 2016
Hi @chenghao-intel |
chenghao-intel
commented
Jun 15, 2016
Thanks @jameszhouyi , I've removed the |
jameszhouyi
commented
Jun 30, 2016
Hi Spark community , |
yhuai
commented
Jun 30, 2016
Can you provide more information on the root cause? Seems it is not clear why it does not work. |
yhuai
commented
Jul 1, 2016
also, can you try |
chenghao-intel
commented
Jul 1, 2016
@yhuai I couldn't find any piece of code to copy the Probably that's the reason why --hiveconf doesn't work. |
jameszhouyi
commented
Jul 5, 2016
Hi, |
yhuai
commented
Jul 5, 2016
I have opened https://github.com/apache/spark/pull/14058/files (it has one update). |
## What changes were proposed in this pull request? This PR makes spark-sql (backed by SparkSQLCLIDriver) respects confs set by hiveconf, which is what we do in previous versions. The change is that when we start SparkSQLCLIDriver, we explicitly set confs set through --hiveconf to SQLContext's conf (basically treating those confs as a SparkSQL conf). ## How was this patch tested? A new test in CliSuite. Closes#13542 Author: Cheng Hao <hao.cheng@intel.com> Author: Yin Huai <yhuai@databricks.com> Closes#14058 from yhuai/hiveConfThriftServer. (cherry picked from commit 920cb5f) Signed-off-by: Reynold Xin <rxin@databricks.com>
What changes were proposed in this pull request?
We should respect the --hiveconf in the spark-sql command line, otherwise, the existing applications based on the spark 1.6 and earlier will broke, as the configurations specified via --hiveconf are missing
How was this patch tested?
I've added the unit test, but still need to be verified with real application.