[
https://issues.apache.org/jira/browse/FLINK-31982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Busche resolved FLINK-31982.
----------------------------------
Fix Version/s: kubernetes-operator-1.5.0
Release Note: Can successfully build the 1.5.0 container using podman
while on Red Hat 9.0 and podman version 4.4.1
Resolution: Workaround
> 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
> Priority: Major
> Fix For: kubernetes-operator-1.5.0
>
>
> 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)