Commit 3f15ad7
[SPARK-11783][SQL] Fixes execution Hive client when using remote Hive metastore
When using remote Hive metastore, `hive.metastore.uris` is set to the metastore URI. However, it overrides `javax.jdo.option.ConnectionURL` unexpectedly, thus the execution Hive client connects to the actual remote Hive metastore instead of the Derby metastore created in the temporary directory. Cleaning this configuration for the execution Hive client fixes this issue.
Author: Cheng Lian <[email protected]>
Closes #9895 from liancheng/spark-11783.clean-remote-metastore-config.
(cherry picked from commit c7f95df)
Signed-off-by: Yin Huai <[email protected]>1 parent 0155693 commit 3f15ad7
File tree
1 file changed
+15
-0
lines changed- sql/hive/src/main/scala/org/apache/spark/sql/hive
1 file changed
+15
-0
lines changedLines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
739 | 754 | | |
740 | 755 | | |
741 | 756 | | |
| |||
0 commit comments