Skip to content

Feature request: Add support for macOS / AArch64  #137

Open

Description

@gunnarmorling

Hi, are there plans for adding support for macOS / AArch64 (i.e. M1 Macs) to this library? I am getting this error below which I suppose is the case as the native library only is built for macOS/x64:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/2h/dglkh0gd07jfc6bqgx5g94nm0000gn/T/datafusion_jni4772271915185568606.dylib

Activity

  1. caicancai commented on Nov 1, 2024

    @caicancai
    Collaborator

    Hi, are there plans for adding support for macOS / AArch64 (i.e. M1 Macs) to this library? I am getting this error below which I suppose is the case as the native library only is built for macOS/x64:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/2h/dglkh0gd07jfc6bqgx5g94nm0000gn/T/datafusion_jni4772271915185568606.dylib
    

    I have no problem with the M3 Mac
    image

  2. jimexist commented on Nov 1, 2024

    @jimexist
    Collaborator

    Hi, are there plans for adding support for macOS / AArch64 (i.e. M1 Macs) to this library? I am getting this error below which I suppose is the case as the native library only is built for macOS/x64:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/2h/dglkh0gd07jfc6bqgx5g94nm0000gn/T/datafusion_jni4772271915185568606.dylib
    

    I have no problem with the M3 Mac image

    i think the issue was not about local dev. it's about the packaged version.

    we use GitHub runner to package and as of the time of last publish the runner had no M1 version.

    GitHub seemed to have added M series support but not sure if's available for free for open source - see https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories maybe worth trying it out

  3. bvolpato commented on May 9, 2025

    @bvolpato

    Right, having the same issue with M4:

    Unsupported OS/arch (`Osx' detected), cannot find `/jni_libs/libdatafusion_jni.dylib' or load `datafusion_jni' from system libraries. Please try building from source the jar or providing datafusion_jni in your system.
            at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2458)
            at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)
            at java.base/java.lang.System.loadLibrary(System.java:2063)
            at org.apache.arrow.datafusion.JNILoader.load(JNILoader.java:95)
            at org.apache.arrow.datafusion.SessionContexts.<clinit>(SessionContexts.java:33)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions