-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Java][Dataset] JNI Error when reading parquet file #39919
Comments
seeing similar issue as in the linked issue from
|
It's not excatly the same issue, we also faced to it on Kotlin dataframe : Kotlin/dataframe#577 (comment) |
yes, i did see in your thread on Kotlin/dataframe#577 (comment) that downgrade to While I understand that this is not exactly the same issue as current ticket, I was pointing out that it was similar to Kotlin/dataframe#577 (comment)
in my case, im seeing this behavior with both |
Hi Team, The following Java jars were downloaded from the v15 release and compared with the v14 release: V15
U: The symbol is undefined (not found in this object) V14:
Glossary: Using https://github.com/apache/arrow/tree/a61f4af724cd06c3a9b4abd20491345997e532c0, I have built the libraries and can read dataset files. |
v15 release branch also uploaded to Gihub all Java artifacts as assets (v15 release: https://github.com/ursacomputing/crossbow/releases/tag/release-15.0.0-rc1-0-github-java-jars) @raulcd Are there some way to try to upload again release branch to Github as an assets to test it again (commit: a61f4af). It seems like there was a problem linking protobuf static libraries in the build process or something like that. |
The only thing we could do is create a new patch release but I would really like this to be diagnosed and tested / validated if we decide to do a new release. @lidavidm any thoughts? Could 15.0.0 be somehow yanked? BTW we seem to have been able to reproduce the same issue on the java cookbooks: |
I'm not sure we can yank a maven package. Why isn't this caught in the java-jars pipeline? |
Any hint about the main error of this issue ? |
seeing following error when running on
|
Java-jars is running unders macOS environment, then all the validation finished without problem on macOS: https://github.com/ursacomputing/crossbow/actions/runs/7543210134/job/20535105142
|
Error related to
|
Reviewing crossbow http://crossbow.voltrondata.com/ JNI libraries uploaded to Github Assets, we found that 2023-12-09 was the first time we saw U=Undefined on the libarrow_dataset_jni.so library.
|
Next, we will take the following steps:
@danepitkin / @lidavidm / @raulcd If you could give me some advice about next steps on this, I would really appreciate it. |
Hi @fb64, I'm sorry to discuss other errors related to this issue. Please let me review the error |
I took a look at the list of undefined symbols in the
|
arrow/dev/archery/archery/linking.py Lines 65 to 75 in a0dec7f
It seems that #39137 is the cause of this. Sorry... |
…dency We need to link system libprotobuf.a too when we link libarrow.a, ORC is enabled and system Protobuf is used.
The java jar version you provided worked as expected (actions-f7a2fd829d). Steps to reproduce - Error:
Steps to reproduce - Fix: https://github.com/ursacomputing/crossbow/releases/tag/actions-f7a2fd829d-github-java-jars
Also aarch_64/libarrow_dataset_jni.so - protobuf changed from U to V:
|
Thanks for checking the result. |
Hi @lidavidm this issue is also related with #20379 What would be the updated answer to that error today? Would you please be able to assist me with that information? |
I'm not sure about that error. |
Indeed, it seems to be the same as #20379 , I didn't find it before creating this one ... |
…40015) ### Rationale for this change We need to link system libprotobuf.a too when we link libarrow.a, ORC is enabled and system Protobuf is used. If we don't link system libprotobuf.a, some symbols are missing. ### What changes are included in this PR? Add missing `${ARROW_PROTOBUF_LIBPROTOBUF}` to `ARROW_STATIC_INSTALL_INTERFACE_LIBS`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: #39919 Lead-authored-by: Sutou Kouhei <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
Can we use #20379 for further discussion for this problem? |
…dency (apache#40015) ### Rationale for this change We need to link system libprotobuf.a too when we link libarrow.a, ORC is enabled and system Protobuf is used. If we don't link system libprotobuf.a, some symbols are missing. ### What changes are included in this PR? Add missing `${ARROW_PROTOBUF_LIBPROTOBUF}` to `ARROW_STATIC_INSTALL_INTERFACE_LIBS`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#39919 Lead-authored-by: Sutou Kouhei <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
…dency (apache#40015) ### Rationale for this change We need to link system libprotobuf.a too when we link libarrow.a, ORC is enabled and system Protobuf is used. If we don't link system libprotobuf.a, some symbols are missing. ### What changes are included in this PR? Add missing `${ARROW_PROTOBUF_LIBPROTOBUF}` to `ARROW_STATIC_INSTALL_INTERFACE_LIBS`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#39919 Lead-authored-by: Sutou Kouhei <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
…dency (apache#40015) ### Rationale for this change We need to link system libprotobuf.a too when we link libarrow.a, ORC is enabled and system Protobuf is used. If we don't link system libprotobuf.a, some symbols are missing. ### What changes are included in this PR? Add missing `${ARROW_PROTOBUF_LIBPROTOBUF}` to `ARROW_STATIC_INSTALL_INTERFACE_LIBS`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#39919 Lead-authored-by: Sutou Kouhei <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
…40015) ### Rationale for this change We need to link system libprotobuf.a too when we link libarrow.a, ORC is enabled and system Protobuf is used. If we don't link system libprotobuf.a, some symbols are missing. ### What changes are included in this PR? Add missing `${ARROW_PROTOBUF_LIBPROTOBUF}` to `ARROW_STATIC_INSTALL_INTERFACE_LIBS`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: #39919 Lead-authored-by: Sutou Kouhei <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
Describe the bug, including details regarding any error messages, version, and platform.
An JNI error happened when I try to read a parquet file with arrow-dataset (15.0.0) in a java program
Runtime : OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
It seems that's due to the usage of
NativeMemoryPool.createListenable( DirectReservationListener.instance())
instead ofNativeMemoryPool.getDefault()
By the way the error not happened with all parquet files
Full code for reproduce the error
https://gist.github.com/fb64/71880cde297bc5234b02b68b785670fd
Stack trace
Component(s)
Java
The text was updated successfully, but these errors were encountered: