Skip to content

[Java] mavencentral jars do not ship with libarrow_cdata_jni binding for linux/aarch64 #36469

Closed

Description

@jonathanswenson

Describe the bug, including details regarding any error messages, version, and platform.

Attempting to use the CData interface from java on linux/aarch64 fails with an exception on recent versions when using the maven central distributions:

java.lang.IllegalStateException: error loading native libraries: java.io.FileNotFoundException: aarch_64/libarrow_cdata_jni.so

Works just fine on mac (m1).

Appears the mavencentral distribution does not include the .so file for aarch64 (it does for x86).

image

Looks gandiva and dataset jars on mavencentral also do not have distributions with these.

Component(s)

Java

Activity

  1. changed the title [-]mavencentral jars do not ship with libarrow_cdata_jni binding for linux/aarch64[/-] [+][Java] mavencentral jars do not ship with libarrow_cdata_jni binding for linux/aarch64[/+] on Jul 5, 2023
  2. kou commented on Jul 5, 2023

    @kou
    Member

    We need to build aarch64 binaries by

    build-cpp-ubuntu:
    name: Build C++ libraries Ubuntu
    runs-on: ubuntu-latest
    steps:
    {{ macros.github_checkout_arrow()|indent }}
    {{ macros.github_install_archery()|indent }}
    - name: Build C++ libraries
    env:
    {{ macros.github_set_sccache_envvars()|indent(8) }}
    run: |
    archery docker run \
    -e ARROW_JAVA_BUILD=OFF \
    -e ARROW_JAVA_TEST=OFF \
    java-jni-manylinux-2014
    - name: Compress into single artifact to keep directory structure
    run: tar -cvzf arrow-shared-libs-linux.tar.gz arrow/java-dist/
    - name: Upload artifacts
    uses: actions/upload-artifact@v2
    with:
    name: ubuntu-shared-lib
    path: arrow-shared-libs-linux.tar.gz
    {% if arrow.is_default_branch() %}
    {{ macros.github_login_dockerhub()|indent }}
    - name: Push Docker image
    shell: bash
    run: archery docker push java-jni-manylinux-2014
    {% endif %}

    We can use self-hosted aarch64 runner for it:

    runs-on: ["self-hosted", "Linux", "arm64"]

  3. jonathanswenson commented on Jul 5, 2023

    @jonathanswenson
    ContributorAuthor

    Took a stab at this here: #36487.

    My main concern is pushing the Docker image for both aarch64 and x86, but I likely also do not fully understand the implications of everything I'm changing here.

  4. added a commit that references this issue on Jul 10, 2023
  5. added a commit that references this issue on Jul 12, 2023
  6. modified the milestones: 13.0.0, 14.0.0 on Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions