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

Build image from source Dockerfile error in main

    XMLWordPrintableJSON

Details

    • Can successfully build the 1.5.0 container using podman while on Red Hat 9.0 and podman version 4.4.1

    Description

      I'm noticing a problem trying to build the Debian Flink Operator image from the Dockerfile in the main branch.

       

      podman build -f Dockerfile -t debian-release:1.5.0-rc1

      ....

      [INFO] Compiling 9 source files to /app/flink-kubernetes-operator-autoscaler/target/test-classes

      ....

      [ERROR] COMPILATION ERROR :

      [INFO] -------------------------------------------------------------

      [ERROR] /app/flink-kubernetes-operator-autoscaler/src/test/java/org/apache/flink/kubernetes/operator/autoscaler/ScalingMetricEvaluatorTest.java:[59,8] error while writing org.apache.flink.kubernetes.operator.autoscaler.ScalingMetricEvaluatorTest: /app/flink-kubernetes-operator-autoscaler/target/test-classes/org/apache/flink/kubernetes/operator/autoscaler/ScalingMetricEvaluatorTest.class: Too many open files

      [ERROR] /app/flink-kubernetes-operator-autoscaler/src/test/java/org/apache/flink/kubernetes/operator/autoscaler/JobVertexScalerTest.java:[78,29] cannot access org.apache.flink.kubernetes.operator.autoscaler.ScalingSummary

        bad class file: /app/flink-kubernetes-operator-autoscaler/target/classes/org/apache/flink/kubernetes/operator/autoscaler/ScalingSummary.class

          unable to access file: java.nio.file.FileSystemException: /app/flink-kubernetes-operator-autoscaler/target/classes/org/apache/flink/kubernetes/operator/autoscaler/ScalingSummary.class: Too many open files

          Please remove or make sure it appears in the correct subdirectory of the classpath.

      [ERROR] /app/flink-kubernetes-operator-autoscaler/src/test/java/org/apache/flink/kubernetes/operator/autoscaler/JobVertexScalerTest.java:[84,29] incompatible types: inferred type does not conform to equality constraint(s)

       

      I've tried increasing my nofiles to unlimited, but still see the error.

      I tried building the release 1.4.0 and it built fine, so not certain what's recently changed in 1.5.0. Maybe it builds fine in Docker instead of podman?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jbusche James Busche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: