You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "James Busche (Jira)" <ji...@apache.org> on 2023/05/02 19:08:00 UTC

[jira] [Created] (FLINK-31982) Build image from source Dockerfile error in main

James Busche created FLINK-31982:
------------------------------------

             Summary: Build image from source Dockerfile error in main
                 Key: FLINK-31982
                 URL: https://issues.apache.org/jira/browse/FLINK-31982
             Project: Flink
          Issue Type: Bug
          Components: Kubernetes Operator
            Reporter: James Busche


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?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)