-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-17531] Don't initialize Hive Listeners for the Execution Client #15086
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
Conversation
|
cc @yhuai |
| assert(conf(ConfVars.METASTORE_EVENT_LISTENERS.varname) === "") | ||
| assert(conf(ConfVars.METASTORE_END_FUNCTION_LISTENERS.varname) === "") | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
LGTM pending jenkins. Once jenkins passes, I will merge this to master, branch 2.0, and branch 1.6. |
|
@yhuai This will not clearly merge into Spark 1.6 as these were in |
|
Yea. That will be great! |
|
Test build #65331 has finished for PR 15086 at commit
|
|
Thanks. Merging to master and branch 2.0. #15087 is the backport for branch 1.6. |
## What changes were proposed in this pull request? If a user provides listeners inside the Hive Conf, the configuration for these listeners are passed to the Hive Execution Client as well. This may cause issues for two reasons: 1. The Execution Client will actually generate garbage 2. The listener class needs to be both in the Spark Classpath and Hive Classpath This PR empties the listener configurations in `HiveUtils.newTemporaryConfiguration` so that the execution client will not contain the listener confs, but the metadata client will. ## How was this patch tested? Unit tests Author: Burak Yavuz <[email protected]> Closes #15086 from brkyvz/null-listeners. (cherry picked from commit 72edc7e) Signed-off-by: Yin Huai <[email protected]>
## What changes were proposed in this pull request? If a user provides listeners inside the Hive Conf, the configuration for these listeners are passed to the Hive Execution Client as well. This may cause issues for two reasons: 1. The Execution Client will actually generate garbage 2. The listener class needs to be both in the Spark Classpath and Hive Classpath This PR empties the listener configurations in `HiveUtils.newTemporaryConfiguration` so that the execution client will not contain the listener confs, but the metadata client will. ## How was this patch tested? Unit tests Author: Burak Yavuz <[email protected]> Closes apache#15086 from brkyvz/null-listeners.
What changes were proposed in this pull request?
If a user provides listeners inside the Hive Conf, the configuration for these listeners are passed to the Hive Execution Client as well. This may cause issues for two reasons:
This PR empties the listener configurations in
HiveUtils.newTemporaryConfigurationso that the execution client will not contain the listener confs, but the metadata client will.How was this patch tested?
Unit tests