Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【ERROR】can't load AMD 64-bit .so on a AARCH64-bit platform #644

Open
BradyYue opened this issue Nov 11, 2024 · 1 comment
Open

【ERROR】can't load AMD 64-bit .so on a AARCH64-bit platform #644

BradyYue opened this issue Nov 11, 2024 · 1 comment

Comments

@BradyYue
Copy link

BradyYue commented Nov 11, 2024

Describe the bug
When using Spark with Blaze, an UnsatisfiedLinkError occurs, preventing the required shared object (.so) file from being loaded. The error message indicates that the system architecture is incompatible, likely due to attempting to load an AMD64 .so file on an AARCH64 platform.

To Reproduce
Steps to reproduce the error:

  1. Run Spark on an AARCH64 platform (e.g., ARM64 server) with Blaze acceleration enabled.
  2. Execute a Spark task that uses Blaze operations.
  3. Wait for Spark to attempt loading the Blaze .so file.
  4. Observe the UnsatisfiedLinkError message, and the Spark task fails.

Expected behavior
The .so file required by Blaze should load successfully, and the Spark task should complete without errors.

Screenshots
Caused by: java.lang.UnsatisfiedLinkError: /tmp/libblaze-15119770424502447665.tmp: /tmp/libblaze-15119770424502447665.tmp: cannot open shared object file: No such file or directory (Possible cause: can't load AMD 64-bit .so on a AARCH64-bit platform)
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2450)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2506)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2705)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2635)
at java.base/java.lang.Runtime.load0(Runtime.java:768)
at java.base/java.lang.System.load(System.java:1854)
at org.apache.spark.sql.blaze.BlazeCallNativeWrapper$.loadLibBlaze(BlazeCallNativeWrapper.scala:202)
...

Desktop (please complete the following information):

  • OS: Ubuntu 20.04 (AARCH64 architecture)
  • Spark Version: 3.5.3
  • Blaze Version: v4.0.0
  • Java Version: OpenJDK 11
@zmdaodao
Copy link

just blaze jar file build in x86 , you can compiled in aarch64 system。 then it will ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants