Skip to content

Conversation

@brkyvz
Copy link
Contributor

@brkyvz brkyvz commented Sep 13, 2016

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

@brkyvz
Copy link
Contributor Author

brkyvz commented Sep 13, 2016

cc @yhuai

@yhuai
Copy link
Contributor

yhuai commented Sep 13, 2016

LGTM pending jenkins.

@SparkQA
Copy link

SparkQA commented Sep 13, 2016

Test build #65335 has finished for PR 15087 at commit 0b3c5bc.

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

@yhuai
Copy link
Contributor

yhuai commented Sep 13, 2016

Thanks! Merging to branch 1.6.

asfgit pushed a commit that referenced this pull request Sep 13, 2016
…tion Client

## 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 #15087 from brkyvz/overwrite-hive-listeners.
@yhuai
Copy link
Contributor

yhuai commented Sep 13, 2016

I have merged this.

@brkyvz brkyvz closed this Sep 13, 2016
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Sep 14, 2016
…tion Client

## 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#15087 from brkyvz/overwrite-hive-listeners.

(cherry picked from commit bf3f6d2)
@brkyvz brkyvz deleted the overwrite-hive-listeners branch February 3, 2019 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants