TEZ-4688 TEZ-4648: Tez upgrade to Hadoop 3.5.0 and jersey 2.x#474
TEZ-4688 TEZ-4648: Tez upgrade to Hadoop 3.5.0 and jersey 2.x#474maheshrajus wants to merge 9 commits into
Conversation
|
FYI, |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@abstractdog @ayushtkn Can you please review and provide comments if any. Thanks ! |
|
@maheshrajus , can you please rebase this PR and resolve merge conflicts? |
|
@Aggarwal-Raghav Hi, i rebased and pushed the commit just now. Could you please take a look at this? Thanks ! |
|
The explicit dependency of |
This comment was marked as outdated.
This comment was marked as outdated.
@Aggarwal-Raghav Better this we will handle separately. thanks ! |
|
💔 -1 overall
This message was automatically generated. |
|
@abstractdog @ayushtkn @Aggarwal-Raghav |
|
@Aggarwal-Raghav Can you please check and confirm your opinion on above points which we discussed ? Thanks ! |
|
@maheshrajus , I'll check this by EOD or tomorrow. |
|
🎊 +1 overall
This message was automatically generated. |
|
@Aggarwal-Raghav Thanks for your inputs on this PR. Let me check and confirm the above discussed points. |
|
💔 -1 overall
This message was automatically generated. |
|
@Aggarwal-Raghav Fixed your review comments. Can you please check and confirm at your free time. Thanks ! |
|
the latest job (https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-474/9/console) failed with: which is strange as my job is currently successfully passing this point (https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-504/6/) @Aggarwal-Raghav: you had similar failure recently, can you recall if it was a flaky thing or if it was resolved with some magic, rebase, etc.? |
my last run also passed (https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-507/1/console), @maheshrajus , please try to force push again. |
|
@abstractdog @Aggarwal-Raghav After force push the CI pipeline is running fine. Thanks ! |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
@abstractdog @Aggarwal-Raghav I addressed all your review comments. Could you please take a look and approve it when you have a moment? |
abstractdog
left a comment
There was a problem hiding this comment.
thanks @maheshrajus for the updated PR, left some comments, this is getting close!
| public HttpURLConnection getConnection(URL url) throws IOException { | ||
| try { | ||
| AuthenticatedURL authenticatedURL= ReflectionUtils.createClazzInstance( | ||
| Object authenticatedURL = ReflectionUtils.createClazzInstance( |
There was a problem hiding this comment.
I believe this should work with AuthenticatedURL
| connConfigurator | ||
| }); | ||
| return ReflectionUtils.invokeMethod(authenticatedURL, | ||
| return (HttpURLConnection) ReflectionUtils.invokeMethod(authenticatedURL, |
There was a problem hiding this comment.
cast is not needed here
| String inputUrl = "http://host:8080/path"; | ||
| String expectedUrl = inputUrl + "?user.name=" + UserGroupInformation.getCurrentUser().getShortUserName(); | ||
| HttpURLConnection httpURLConnection = connectionFactory.getHttpURLConnection(new URL(inputUrl)); | ||
| HttpURLConnection httpURLConnection = connectionFactory.getConnection(URI.create(inputUrl).toURL()); |
There was a problem hiding this comment.
this is not related to the hadoop upgrade I think, but instead new URL becoming deprecated from Java20
if so, please create a separate ticket for handling the same in the whole tez codebase:
grep -iRH "new URL" --include="*.java"
| userName = subEntity.getString(Constants.ENTITY_ID); | ||
| break; |
There was a problem hiding this comment.
this seems unnecessary, we indent 2 spaces
it's strange that checkstyle didn't warn about this, can you please create a dummy PR to validate the same and a Jira if needed?
| ? jsonObject.getJSONObject("domain") | ||
| : jsonObject; | ||
| } else if (clazz == TimelineEntity.class) { | ||
| // TimelineEntity is annotated @XmlRootElement(name="entity"), Jersey 2/Jackson wrap it |
| </dependencies> | ||
| </dependencyManagement> | ||
|
|
||
| <dependencies> |
There was a problem hiding this comment.
why <dependencies> appeared here? afaik, we only handle dependencyManagement in the root pom.xml
What changes were proposed in this PR?
This PR upgrades Tez to support:
As part of the upgrade, several ATS Timeline API response format differences were observed between older Hadoop versions and Hadoop 3.5.0. This PR adds compatibility handling for those schema variations.
Main updates include:
Handled ATS compatibility differences including:
otherinfo↔otherInfoentity↔entityIdentitytype↔entityTypedomain/id↔domainIdAdditional fixes:
How was this patch tested?
jersey upgrade changes taken from PR : #429 by @abstractdog as they need for hadoop 3.5.0 upgrade.