[
https://issues.apache.org/jira/browse/FLINK-41393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147564#comment-18147564
]
Martijn Visser commented on FLINK-41393:
----------------------------------------
Besides the code in the description, AMRMClientAsyncReflector, the reflective
truncate in HadoopRecoverableFsDataOutputStream, the reflective application tag
check in YARNSessionCapacitySchedulerITCase, the Hadoop 2.8 override in
HadoopLocalFileSystemBehaviorTest (it had no @Test, so the test never ran), the
ResourceInformation entry in the YarnTestBase log whitelist and the s3:// and
s3n:// settings in YarnFileStageTestS3ITCase are only there for Hadoop 2. The
PR removes those too.
> Remove the Hadoop 2 compatibility code
> --------------------------------------
>
> Key: FLINK-41393
> URL: https://issues.apache.org/jira/browse/FLINK-41393
> Project: Flink
> Issue Type: Technical Debt
> Components: Connectors / Hadoop Compatibility
> Reporter: Martijn Visser
> Assignee: Martijn Visser
> Priority: Major
>
> With FLINK-41378 merged, the minimum Hadoop version is 3.4.3. flink-yarn
> still reaches Hadoop 2 APIs through reflection
> (ApplicationSubmissionContextReflector,
> RegisterApplicationMasterResponseReflector, ContainerRequestReflector,
> ResourceInformationReflector), and flink-hadoop-fs keeps
> isMinHadoopVersion(2, 7) checks.
> YarnFileStageTestS3ITCase#testRecursiveUploadForYarnS3n can never run and
> YarnTestUtils.isHadoopVersionGreaterThanOrEquals is unused. The docs still
> mention Hadoop < 2.7 for the FileSink and 2.10+ or 3.1+ for GPU scheduling.
> We should remove all of these.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)