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

JNA error when installing elasticsearch 7.10.1 on RHEL8 #44

Open
rinaldou opened this issue Apr 8, 2021 · 2 comments
Open

JNA error when installing elasticsearch 7.10.1 on RHEL8 #44

rinaldou opened this issue Apr 8, 2021 · 2 comments

Comments

@rinaldou
Copy link

rinaldou commented Apr 8, 2021

After running the script, and looking at the logs, there was a message
"unable to load JNA native support library, native methods will be disabled.
java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-s390x/libjnidispatch.so)"
Though it started, I looked into the problem.
in the lib folder, there is the filel 'jna-5.5.0.jar'.
Inside it, there wasn't a folder com/sun/jna/linux-s390x.
So I went to the page https://github.com/java-native-access/jna/blob/master/lib/native/linux-s390x.jar and downloaded the linux-s390x.jar.
Opening the file, you can find the file you want. Create a folder with name linux-s390x and the libjnidispatch.so file inside the jar.
Replace the old jna-5.5.0.jar for the one you created.
After that, I run the elasticsearch without any warnings.
Hope it helps someone.

@cwsolee
Copy link
Contributor

cwsolee commented Apr 9, 2021

Thanks for the comment and suggestion, we'll update our instruction & script in our next publish.

@bellatrix1001
Copy link

Life-saving. Thanks for posting!

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

3 participants