goutamadwant opened a new issue, #12854:
URL: https://github.com/apache/seatunnel/issues/12854

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   ### What happened
   
   Since #11545, `EngineImageJdkUpgrader` builds a Java 11 flavour of the Flink 
and Spark engine images:
   
   ```dockerfile
   FROM eclipse-temurin:11-jdk AS jdk
   FROM tyrantlucifer/spark:3.3.0
   COPY --from=jdk /opt/java/openjdk /opt/seatunnel-e2e-jdk11
   RUN ... && java -version 2>&1 | grep -q 'version "11'
   ```
   
   The `tyrantlucifer/*` engine images are amd64 only, but 
`eclipse-temurin:11-jdk` is multi-platform and resolves to the host platform. 
On an arm64 host (Apple Silicon), an aarch64 JDK is copied into the amd64 
image, `java -version` fails and the image build fails. Every Flink 
1.13/1.14/1.20 and Spark 2.4/3.3 E2E then errors with 
`ParameterResolutionException`. CI runs on amd64 and is not affected.
   
   ### SeaTunnel Version
   
   dev
   
   ### SeaTunnel Config
   
   ```conf
   # any E2E, e.g. connector-fake-e2e fake_to_assert.conf
   ```
   
   ### Running Command
   
   ```shell
   ./mvnw verify -DskipUT=true -DskipIT=false -Pci -pl :connector-fake-e2e -am 
-Dit.test=FakeIT
   ```
   
   ### Error Exception
   
   ```log
   Step 5/5 : RUN test -n "$JAVA_HOME" && rm -rf "$JAVA_HOME" && ln -s 
/opt/seatunnel-e2e-jdk11 "$JAVA_HOME" && java -version 2>&1 | grep -q 'version 
"11'
   The command '/bin/bash -o pipefail -c test -n "$JAVA_HOME" && ...' returned 
a non-zero code: 1
   org.junit.jupiter.api.extension.ParameterResolutionException
   ```
   
   The copied JDK is `OS_ARCH="aarch64"` inside an amd64 image.
   
   ### Zeta or Flink or Spark Version
   
   Flink 1.13, 1.14, 1.20; Spark 2.4, 3.3 (the images routed through 
`EngineImageJdkUpgrader`).
   
   ### Java or Scala Version
   
   Java 11 / 17, arm64 macOS with Docker Desktop.
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to