Skip to content
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

[SPARK-51039][BUILD] Fix hive-llap-common dependency to use hive.llap.scope in root pom.xml #49733

Closed
wants to merge 1 commit into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jan 30, 2025

What changes were proposed in this pull request?

This PR aims to fix hive-llap-common dependency to use hive.llap.scope in root pom for Apache Spark 3.5 and 4.0.

Why are the changes needed?

Apache Spark has been supposed to use hive.llap.scope for hive-llap-common dependency and hive module do it correctly.

spark/sql/hive/pom.xml

Lines 119 to 123 in a1b0f25

<dependency>
<groupId>${hive.group}</groupId>
<artifactId>hive-llap-common</artifactId>
<scope>${hive.llap.scope}</scope>
</dependency>

Since Apache Spark 3.0.0 (SPARK-27176), the root pom.xml file has been using a wrong scope mistakenly. Probably, it's due to -Phive-provided support. This causes a confusion to other external systems and the users. We had better fix the root pom.xml to use hive.llap.scope correctly.

Does this PR introduce any user-facing change?

No, there is no change technically because hive module has been using a correct scope.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the BUILD label Jan 30, 2025
@dongjoon-hyun dongjoon-hyun marked this pull request as draft January 30, 2025 05:43
@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review January 30, 2025 05:50
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-51039][BUILD] Fix hive-llap-common dependency to use hive.llap.scope in root pom [SPARK-51039][BUILD] Fix hive-llap-common dependency to use hive.llap.scope in root pom.xml Jan 30, 2025
@dongjoon-hyun
Copy link
Member Author

Thank you, @LuciferYang !

@dongjoon-hyun
Copy link
Member Author

The one failure is irrelevant and flaky one.

[info] *** 1 TEST FAILED ***
[error] Failed tests:
[error] 	org.apache.spark.sql.kafka010.KafkaMicroBatchV2SourceWithConsumerSuite

Merged to master/4.0/3.5.

dongjoon-hyun added a commit that referenced this pull request Jan 30, 2025
…lap.scope` in root `pom.xml`

### What changes were proposed in this pull request?

This PR aims to fix `hive-llap-common` dependency to use `hive.llap.scope` in root pom for Apache Spark 3.5 and 4.0.

### Why are the changes needed?

Apache Spark has been supposed to use `hive.llap.scope` for `hive-llap-common` dependency and `hive` module do it correctly.
https://github.com/apache/spark/blob/a1b0f256c04e5b632075358d1e2f946e64588da6/sql/hive/pom.xml#L119-L123

Since Apache Spark 3.0.0 (SPARK-27176), the root `pom.xml` file has been using a wrong scope mistakenly. Probably, it's due to `-Phive-provided` support. This causes a confusion to other external systems and the users. We had better fix the root `pom.xml` to use `hive.llap.scope` correctly.
- #23788

### Does this PR introduce _any_ user-facing change?

No, there is no change technically because `hive` module has been using a correct scope.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #49733 from dongjoon-hyun/SPARK-51039.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 7243de6)
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun added a commit that referenced this pull request Jan 30, 2025
…lap.scope` in root `pom.xml`

This PR aims to fix `hive-llap-common` dependency to use `hive.llap.scope` in root pom for Apache Spark 3.5 and 4.0.

Apache Spark has been supposed to use `hive.llap.scope` for `hive-llap-common` dependency and `hive` module do it correctly.
https://github.com/apache/spark/blob/a1b0f256c04e5b632075358d1e2f946e64588da6/sql/hive/pom.xml#L119-L123

Since Apache Spark 3.0.0 (SPARK-27176), the root `pom.xml` file has been using a wrong scope mistakenly. Probably, it's due to `-Phive-provided` support. This causes a confusion to other external systems and the users. We had better fix the root `pom.xml` to use `hive.llap.scope` correctly.
- #23788

No, there is no change technically because `hive` module has been using a correct scope.

Pass the CIs.

No.

Closes #49733 from dongjoon-hyun/SPARK-51039.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 7243de6)
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun dongjoon-hyun deleted the SPARK-51039 branch January 30, 2025 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants