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-45432][CORE] Remove deprecated Hadoop-2 LocatedFileStatus constructor #43239

Closed
wants to merge 1 commit into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Oct 6, 2023

What changes were proposed in this pull request?

This PR aims to remove Hadoop 2's LocatedFileStatus constructor which is deprecated at Apache Hadoop 3.0.0.

Why are the changes needed?

Since SPARK-42452 removes Hadoop 2 at Apache Spark 3.5.0, we can use Hadoop 3 API completely.

HDFS-6984 deprecated this constructor in favor of new constructor at Apache Hadoop 3.0.0-beta1

Does this PR introduce any user-facing change?

No.

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 CORE label Oct 6, 2023
@dongjoon-hyun
Copy link
Member Author

Could you review this PR, @LuciferYang ?

Copy link
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

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

LGTM

@dongjoon-hyun
Copy link
Member Author

Thank you, @LuciferYang . Merged to master.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-45432 branch October 6, 2023 07:22
LuciferYang pushed a commit to LuciferYang/spark that referenced this pull request Oct 7, 2023
…nstructor

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

This PR aims to remove `Hadoop 2`'s `LocatedFileStatus` constructor which is deprecated at Apache Hadoop 3.0.0.

### Why are the changes needed?

Since SPARK-42452 removes Hadoop 2 at Apache Spark 3.5.0, we can use Hadoop 3 API completely.

[HDFS-6984](https://issues.apache.org/jira/browse/HDFS-6984) deprecated this constructor in favor of new constructor at Apache Hadoop 3.0.0-beta1

- https://hadoop.apache.org/docs/stable/api/org/apache/hadoop/fs/LocatedFileStatus.html#LocatedFileStatus-long-boolean-int-long-long-long-org.apache.hadoop.fs.permission.FsPermission-java.lang.String-java.lang.String-org.apache.hadoop.fs.Path-org.apache.hadoop.fs.Path-org.apache.hadoop.fs.BlockLocation:A-

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

No.

### How was this patch tested?

Pass the CIs.

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

No.

Closes apache#43239 from dongjoon-hyun/SPARK-45432.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
szehon-ho pushed a commit to szehon-ho/spark that referenced this pull request Aug 7, 2024
…nstructor

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

This PR aims to remove `Hadoop 2`'s `LocatedFileStatus` constructor which is deprecated at Apache Hadoop 3.0.0.

### Why are the changes needed?

Since SPARK-42452 removes Hadoop 2 at Apache Spark 3.5.0, we can use Hadoop 3 API completely.

[HDFS-6984](https://issues.apache.org/jira/browse/HDFS-6984) deprecated this constructor in favor of new constructor at Apache Hadoop 3.0.0-beta1

- https://hadoop.apache.org/docs/stable/api/org/apache/hadoop/fs/LocatedFileStatus.html#LocatedFileStatus-long-boolean-int-long-long-long-org.apache.hadoop.fs.permission.FsPermission-java.lang.String-java.lang.String-org.apache.hadoop.fs.Path-org.apache.hadoop.fs.Path-org.apache.hadoop.fs.BlockLocation:A-

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

No.

### How was this patch tested?

Pass the CIs.

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

No.

Closes apache#43239 from dongjoon-hyun/SPARK-45432.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
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