Skip to content

[SPARK-26254][CORE] Extract Hive + Kafka dependencies from Core. - #23499

Closed
gaborgsomogyi wants to merge 10 commits into
apache:masterfrom
gaborgsomogyi:SPARK-26254
Closed

[SPARK-26254][CORE] Extract Hive + Kafka dependencies from Core.#23499
gaborgsomogyi wants to merge 10 commits into
apache:masterfrom
gaborgsomogyi:SPARK-26254

Conversation

@gaborgsomogyi

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

There are ugly provided dependencies inside core for the following:

  • Hive
  • Kafka

In this PR I've extracted them out. This PR contains the following:

  • Token providers are now loaded with service loader
  • Hive token provider moved to hive project
  • Kafka token provider extracted into a new project

How was this patch tested?

Existing + newly added unit tests.
Additionally tested on cluster.

@SparkQA

Copy link
Copy Markdown

Test build #100969 has finished for PR 23499 at commit cd7db2f.

  • This patch fails to build.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@SparkQA

Copy link
Copy Markdown

Test build #100970 has finished for PR 23499 at commit 47ea157.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

Copy link
Copy Markdown

Test build #100975 has finished for PR 23499 at commit d8188c0.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gaborgsomogyigaborgsomogyi changed the title [SPARK-26254][CORE] Remove Hive + Kafka dependencies from Core.[SPARK-26254][CORE] Extract Hive + Kafka dependencies from Core.Jan 9, 2019
@SparkQA

Copy link
Copy Markdown

Test build #100983 has finished for PR 23499 at commit c7a4282.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

Copy link
Copy Markdown

Test build #100984 has finished for PR 23499 at commit 6e0178c.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gaborgsomogyi

Copy link
Copy Markdown
ContributorAuthor

retest this please

Comment threadpom.xml
@SparkQA

Copy link
Copy Markdown

Test build #101021 has finished for PR 23499 at commit 6e0178c.

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

@gaborgsomogyi

gaborgsomogyi commented Jan 10, 2019

Copy link
Copy Markdown
ContributorAuthor

@gatorsmile

Copy link
Copy Markdown
Member

In Spark 3.0, shading all libraries that Spark depends is the direction we discussed in the mailing list. @gaborgsomogyi Thus, could you change your PR based on our direction? Thanks!

@vanzin

Copy link
Copy Markdown
Contributor

This is a refactoring so that spark-core doesn't depend on Hive and Kafka at compile time. It's not really related to shading, and it would be distracting to mix both in this PR.

If a decision has been made about shading everything (I don't remember a vote), then there will be a lot of work that is unrelated to this PR to get there.

@srowen

Copy link
Copy Markdown
Member

(Agree that shading is a big, important, but separate change to be considered)

@gaborgsomogyi

Copy link
Copy Markdown
ContributorAuthor

@gatorsmile happy to handle this problem in the streaming/kafka area in separate PRs. I would appreciate if you can point the details and the vote to pick up the topic.

@felixcheung

felixcheung commented Jan 15, 2019 via email

Copy link
Copy Markdown
Member

def obtainDelegationTokens(
hadoopConf: Configuration,
sparkConf: SparkConf,
fileSystems: Set[FileSystem],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit odd, and ultimately I think that YarnSparkHadoopUtil.hadoopFSsToAccess should be used for everybody (a.k.a. moved to HadoopFSDelegationTokenProvider), but that should be a separate change.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Felt the same when changed but didn't have good solution. Good suggestion, will file a jira and resolve it.

@SparkQA

Copy link
Copy Markdown

Test build #101480 has finished for PR 23499 at commit a175cc1.

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

@dongjoon-hyun

Copy link
Copy Markdown
Member

cc @wangyum since he is working on upgrading Hive dependency.

@SparkQA

Copy link
Copy Markdown

Test build #101597 has finished for PR 23499 at commit d74140d.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Comment threadproject/MimaExcludes.scala Outdated
Comment threadexternal/kafka-0-10-token-provider/pom.xml
@SparkQA

Copy link
Copy Markdown

Test build #101638 has finished for PR 23499 at commit ab41a9a.

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

@SparkQA

Copy link
Copy Markdown

Test build #101673 has finished for PR 23499 at commit 083199b.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

Copy link
Copy Markdown

Test build #101676 has finished for PR 23499 at commit 7b88592.

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

@vanzin

Copy link
Copy Markdown
Contributor

Merging to master.

jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
## What changes were proposed in this pull request?
There are ugly provided dependencies inside core for the following:
* Hive
* Kafka
In this PR I've extracted them out. This PR contains the following:
* Token providers are now loaded with service loader
* Hive token provider moved to hive project
* Kafka token provider extracted into a new project
## How was this patch tested?
Existing + newly added unit tests.
Additionally tested on cluster.
Closesapache#23499 from gaborgsomogyi/SPARK-26254.
Authored-by: Gabor Somogyi <gabor.g.somogyi@gmail.com>
Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>
Sign up for freeto 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.

8 participants

@gaborgsomogyi@SparkQA@gatorsmile@vanzin@srowen@felixcheung@dongjoon-hyun@viirya