Get the following error whenever trying to install and run elasticsearch on aarch64 rocky9.5 or fedora 6.11.4
stdoout:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000ffff97d410a8, pid=2022, tid=2031
#
# JRE version: (23.0+37) (build )
# Java VM: OpenJDK 64-Bit Server VM (23+37-2369, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
# Problematic frame:
# j java.lang.System.registerNatives()V+0 java.base@23
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /usr/share/elasticsearch/core.2022)
#
# An error report file with more information is saved as:
# /usr/share/elasticsearch/hs_err_pid2022.log
[0.015s][warning][os] Loading hsdis library failed
#
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
uname:
Linux localhost.localdomain 6.11.4-301.fc41.aarch64 #1 SMP PREEMPT_DYNAMIC Sun Oct 20 15:21:05 UTC 2024 aarch64 GNU/Linux
JAVA Bundled:
/usr/share/elasticsearch/jdk/bin$ sudo ./java --version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x0000ffff93d411a8, pid=2112, tid=2113
#
# JRE version: (23.0+37) (build )
# Java VM: OpenJDK 64-Bit Server VM (23+37-2369, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# j java.lang.System.registerNatives()V+0 java.base@23
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /usr/share/elasticsearch/jdk/bin/core.2112)
#
# An error report file with more information is saved as:
# /usr/share/elasticsearch/jdk/bin/hs_err_pid2112.log
[0.015s][warning][os] Loading hsdis library failed
#
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted```
YUM:
elasticsearch-0:8.16.1-1.aarch64
```sudo yum install --enablerepo=elasticsearch elasticsearch
Updating and loading repositories:
Elasticsearch repository for 8.x packages 100% | 9.7 KiB/s | 1.3 KiB | 00m00s
Repositories loaded.
Package Arch Version Repository Size
Installing:
elasticsearch aarch64 8.16.1-1 elasticsearch 733.1 MiB
Transaction Summary:
Installing: 1 package
Total size of inbound packages is 461 MiB. Need to download 461 MiB.
After this operation, 733 MiB extra will be used (install 733 MiB, remove 0 B).
Is this ok [y/N]: y
[1/1] elasticsearch-0:8.16.1-1.aarch64 100% | 21.1 MiB/s | 460.9 MiB | 00m22s
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total 100% | 21.1 MiB/s | 460.9 MiB | 00m22s
Running transaction
[1/3] Verify package files 100% | 1.0 B/s | 1.0 B | 00m01s
[2/3] Prepare transaction 100% | 23.0 B/s | 1.0 B | 00m00s
[3/3] Installing elasticsearch-0:8.16.1-1.aarch64 100% [==================] | 324.6 MiB/s | 733.3 MiB | -00m00s
>>> Running post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
>>> Non-critical error in post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
>>> Scriptlet output:
[3/3] Installing elasticsearch-0:8.16.1-1.aarch64 100% | 270.1 MiB/s | 733.3 MiB | 00m03s
>>> Running post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
>>> Non-critical error in post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
>>> Scriptlet output:
>>> #
>>> # A fatal error has been detected by the Java Runtime Environment:
>>> #
>>> # SIGILL (0x4) at pc=0x0000ffff87d410a8, pid=1627, tid=1636
>>> #
>>> # JRE version: (23.0+37) (build )
>>> # Java VM: OpenJDK 64-Bit Server VM (23+37-2369, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
>>> # Problematic frame:
>>> # j java.lang.System.registerNatives()V+0 java.base@23
>>> #
>>> # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /usr/share/elasticsearch/core.1627)
>>> #
>>> # An error report file with more information is saved as:
>>> # /usr/share/elasticsearch/hs_err_pid1627.log
>>> [0.007s][warning][os] Loading hsdis library failed
>>> #
>>> # The crash happened outside the Java Virtual Machine in native code.
>>> # See problematic frame for where to report the bug.
>>> #
>>> /var/tmp/rpm-tmp.ErwOMr: line 27: 1627 Aborted (core dumped) /usr/share/elasticsearch/bin/elasticsearch-keystore create
>>>
>>> Stop post-transaction scriptlet: elasticsearch-0:8.16.1-1.aarch64
Complete!```