-
Notifications
You must be signed in to change notification settings - Fork 237
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
base: branch-2.1.x
Are you sure you want to change the base?
Upgrade Hadoop to 2.10.2/3.2.4. #988
Conversation
/gcbrun |
6a4a61a
to
dd52c91
Compare
@@ -611,6 +612,24 @@ protected int getDefaultPort() { | |||
return result; | |||
} | |||
|
|||
public boolean hasPathCapability(Path path, String capability) throws IOException { |
There was a problem hiding this comment.
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.
/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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.)
There was a problem hiding this comment.
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?
No description provided.