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

Upgrade Hadoop to 2.10.2/3.2.4. #988

Open
wants to merge 1 commit into
base: branch-2.1.x
Choose a base branch
from

Conversation

cnauroth
Copy link
Member

No description provided.

@cnauroth
Copy link
Member Author

/gcbrun

@cnauroth cnauroth force-pushed the branch-2.1.x-upgrade-hadoop branch from 6a4a61a to dd52c91 Compare March 28, 2023 18:46
@@ -611,6 +612,24 @@ protected int getDefaultPort() {
return result;
}

public boolean hasPathCapability(Path path, String capability) throws IOException {
Copy link
Member Author

Choose a reason for hiding this comment

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

The upgrade brings in a new contract test that asserts for these capabilities. This fix is already present in master and branch-2.2.x, so I brought over the same code. The indentation on the comment looks off to me, but that's the way Spotless wants it.

@cnauroth
Copy link
Member Author

/gcbrun

@@ -611,6 +612,24 @@ protected int getDefaultPort() {
return result;
}

public boolean hasPathCapability(Path path, String capability) throws IOException {
switch (validatePathCapabilityArgs(path, capability)) {
// TODO: remove string literals in favor of Constants in CommonPathCapabilities.java
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this patch[1] even handles this TODO. Can you please take care of that too? I will take care of it in 2.2.x

[1] https://github.com/GoogleCloudDataproc/hadoop-connectors/pull/825/files#diff-d21194524e4e35a6f0e6560b57ee3c85c05b65608a58c863388c52b7cfb4ffea

Copy link
Member Author

Choose a reason for hiding this comment

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

No, we won't be able to include that change. It would work for Hadoop 3, but Hadoop 2 doesn't have the CommonPathCapabilities class that defines the constants. (Notice that the patch was committed only to master, where we dropped Hadoop 2 support.)

Copy link
Contributor

Choose a reason for hiding this comment

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

Taking into account that 1.5 DPGCE will be EOS in few days, and we do not plan support 2.1 branch after this. I think that maybe we should not submit any new commits here?

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