Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-35175

HadoopDataInputStream can't compile with Hadoop 3.2.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.20.0
    • 1.20.0
    • None

    Description

      Unfortunately, introduced in FLINK-35045: PREADWRITEBUFFER was added in Hadoop releases 3.3.0 and 2.10.0.

      It doesn't exist in flink.hadoop.version 3.2.3, which we are using in end-to-end tests.

      00:23:55.093 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project flink-hadoop-fs: Compilation failure: Compilation failure: 
      00:23:55.093 [ERROR] /home/vsts/work/1/s/flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/fs/hdfs/HadoopDataInputStream.java:[151,63] cannot find symbol
      00:23:55.094 [ERROR]   symbol:   variable READBYTEBUFFER
      00:23:55.094 [ERROR]   location: interface org.apache.hadoop.fs.StreamCapabilities
      00:23:55.094 [ERROR] /home/vsts/work/1/s/flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/fs/hdfs/HadoopDataInputStream.java:[182,63] cannot find symbol
      00:23:55.094 [ERROR]   symbol:   variable PREADBYTEBUFFER
      00:23:55.094 [ERROR]   location: interface org.apache.hadoop.fs.StreamCapabilities
      00:23:55.094 [ERROR] /home/vsts/work/1/s/flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/fs/hdfs/HadoopDataInputStream.java:[183,43] incompatible types: long cannot be converted to org.apache.hadoop.io.ByteBufferPool
      00:23:55.094 [ERROR] -> [Help 1] 

      Attachments

        Issue Links

          Activity

            People

              masteryhx Hangxiang Yu
              rskraba Ryan Skraba
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: