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

Document binary compatibility situation with Scala beyond 2.12.8

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      When using 1.8 with Scala 2.12.8 and trying to parse a scala.Map (not a java.util.Map), I get a: java.lang.ClassNotFoundException: scala.math.Ordering$$anon$9

      To reproduce:

      • start with the Scala Maven archetype (org.apache.flink:flink-quickstart-scala:1.8.0)
      • in the POM, set the scala.version to 2.12.8 and the scala.binary.version to 2.12
      • in StreamingJob, add: env.fromElements[Map[String, Int]]()

      It works with Scala 2.12.7 (well, without putting anything in the job, it fails with "No operators defined in streaming topology", which is expected).

      I suspect this is linked to the binary incompatiblity of 2.12.8 with 2.12.7 (see the release note of 2.12.8), so compiling Flink with 2.12.8 instead of 2.12.7 might be enough (although it might stop working with 2.12.7?)

        Attachments

          Activity

            People

            • Assignee:
              aljoscha Aljoscha Krettek
              Reporter:
              gael Gaƫl Renoux

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment