Im getting the below error when starting Elastic Search fresh installation under the Centos server
[root@server2 ~]# vi /var/log/elasticsearch/elasticsearch.log
java.lang.UnsatisfiedLinkError: /tmp/elasticsearch-16951793221894502032/jna15232449961607090427.tmp: /tmp/elasticsearch-16951793221894502032/jna15232449961607090427.tmp: failed to map segment from shared object
at jdk.internal.loader.NativeLibraries.load(Native Method) ~[?:?]
at jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331) ~[?:?]
at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197) ~[?:?]
at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139) ~[?:?]
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2404) ~[?:?]
at java.lang.Runtime.load0(Runtime.java:785) ~[?:?]
at java.lang.System.load(System.java:2011) ~[?:?]
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1045) ~[jna-5.10.0.jar:5.10.0 (b0)]
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1015) ~[jna-5.10.0.jar:5.10.0 (b0)]
at com.sun.jna.Native.<clinit>(Native.java:221) ~[jna-5.10.0.jar:5.10.0 (b0)]
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:390) ~[?:?]
at java.lang.Class.forName(Class.java:381) ~[?:?]
at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:34) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:106) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:183) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:169) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:160) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) [elasticsearch-cli-7.17.9.jar:7.17.9]
at org.elasticsearch.cli.Command.main(Command.java:77) [elasticsearch-cli-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:125) [elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) [elasticsearch-7.17.9.jar:7.17.9]
[2
Elastic Search Error on Start – java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native #57018
07
Mar