# Not able to configure elastic search on centos

**URL:** <https://discuss.elastic.co/t/not-able-to-configure-elastic-search-on-centos/119493>\
**Category:** Elasticsearch\
**Created:** [February 12, 2018, 3:07pm UTC](https://discuss.elastic.co/t/not-able-to-configure-elastic-search-on-centos/119493 "2018-02-12T15:07:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maheshatlas77](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@maheshatlas77](https://discuss.elastic.co/u/maheshatlas77)\
**Post date:** [February 12, 2018, 3:07pm UTC](https://discuss.elastic.co/t/not-able-to-configure-elastic-search-on-centos/119493/1 "2018-02-12T15:07:35Z")

</div>

I have installed ES on centos when i start service it shows below error.  
[2018-02-12T14:43:00,386][WARN][o.e.b.Natives] unable to load JNA native support library, native methods will be disabled.  
java.lang.UnsatisfiedLinkError: /tmp/elasticsearch.aBWmeUKL/jna--1985354563/jna402591581418938332.tmp: /tmp/elasticsearch.aBWmeUKL/jna--1985354563/jna402591581418938332.tmp: failed to map segment from shared object: Operation not permitted  
at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[?:1.8.0\_161]  
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) ~[?:1.8.0\_161]  
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) ~[?:1.8.0\_161]  
at java.lang.Runtime.load0(Runtime.java:809) ~[?:1.8.0\_161]  
at java.lang.System.load(System.java:1086) ~[?:1.8.0\_161]  
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947) ~[jna-4.5.1.jar:4.5.1 (b0)]  
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922) ~[jna-4.5.1.jar:4.5.1 (b0)]  
at com.sun.jna.Native.(Native.java:190) ~[jna-4.5.1.jar:4.5.1 (b0)]  
at java.lang.Class.forName0(Native Method) ~[?:1.8.0\_161]  
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0\_161]  
at org.elasticsearch.bootstrap.Natives.(Natives.java:45) [elasticsearch-6.2.1.jar:6.2.1]  
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:104) [elasticsearch-6.2.1.jar:6.2.1]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:172) [elasticsearch-6.2.1.jar:6.2.1]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) [elasticsearch-6.2.1.jar:6.2.1]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-6.2.1.jar:6.2.1]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-6.2.1.jar:6.2.1]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.2.1.jar:6.2.1]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.2.1.jar:6.2.1]  
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.2.1.jar:6.2.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-6.2.1.jar:6.2.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) [elasticsearch-6.2.1.jar:6.2.1]  
[2018-02-12T14:43:00,395][WARN][o.e.b.Natives] cannot check if running as root because JNA is not available  
[2018-02-12T14:43:00,395][WARN][o.e.b.Natives] cannot install system call filter because JNA is not available  
[2018-02-12T14:43:00,396][WARN][o.e.b.Natives] cannot register console handler because JNA is not available  
[2018-02-12T14:43:00,398][WARN][o.e.b.Natives] cannot getrlimit RLIMIT\_NPROC because JNA is not available  
[2018-02-12T14:43:00,398][WARN][o.e.b.Natives] cannot getrlimit RLIMIT\_AS beacuse JNA is not available  
[2018-02-12T14:43:00,398][WARN][o.e.b.Natives] cannot getrlimit RLIMIT\_FSIZE because JNA is not available  
[2018-02-12T14:43:00,647][INFO][o.e.n.Node] [] initializing ...  
[2018-02-12T14:43:00,764][INFO][o.e.e.NodeEnvironment] [q62iriF] using [1] data paths, mounts [[/ (rootfs)]], net usable\_space [38.5gb], net total\_space [117.9gb], types [rootfs]  
[2018-02-12T14:43:00,764][INFO][o.e.e.NodeEnvironment] [q62iriF] heap size [999mb], compressed ordinary object pointers [true]  
[2018-02-12T14:43:00,846][INFO][o.e.n.Node] node name [q62iriF] derived from node ID [q62iriF8RH-Pr5WvjAmguQ]; set [node.name] to override  
[2018-02-12T14:43:00,847][INFO][o.e.n.Node] version[6.2.1], pid[7428], build[7299dc3/2018-02-07T19:34:26.990113Z], OS[Linux/2.6.32-696.20.1.el6.x86\_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0\_161/25.161-b14]  
[2018-02-12T14:43:00,847][INFO][o.e.n.Node] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.aBWmeUKL, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:/var/log/elasticsearch/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [aggs-matrix-stats]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [analysis-common]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [ingest-common]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [lang-expression]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [lang-mustache]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [lang-painless]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [mapper-extras]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [parent-join]  
[2018-02-12T14:43:02,063][INFO][o.e.p.PluginsService] [q62iriF] loaded module [rank-eval]  
[2018-02-12T14:43:02,064][INFO][o.e.p.PluginsService] [q62iriF] loaded module [reindex]  
[2018-02-12T14:43:02,064][INFO][o.e.p.PluginsService] [q62iriF] loaded module [repository-url]  
[2018-02-12T14:43:02,064][INFO][o.e.p.PluginsService] [q62iriF] loaded module [transport-netty4]  
[2018-02-12T14:43:02,064][INFO][o.e.p.PluginsService] [q62iriF] loaded module [tribe]  
[2018-02-12T14:43:02,065][INFO][o.e.p.PluginsService] [q62iriF] no plugins loaded  
[2018-02-12T14:43:06,177][INFO][o.e.d.DiscoveryModule] [q62iriF] using discovery type [zen]  
[2018-02-12T14:43:06,963][INFO][o.e.n.Node] initialized  
[2018-02-12T14:43:06,964][INFO][o.e.n.Node] [q62iriF] starting ...  
[2018-02-12T14:43:07,224][INFO][o.e.t.TransportService] [q62iriF] publish\_address {162.214.14.226:9300}, bound\_addresses {162.214.14.226:9300}  
[2018-02-12T14:43:07,248][INFO][o.e.b.BootstrapChecks] [q62iriF] bound or publishing to a non-loopback address, enforcing bootstrap checks  
[2018-02-12T14:43:07,254][ERROR][o.e.b.Bootstrap] [q62iriF] node validation exception  
[1] bootstrap checks failed  
[1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

---

<div class="post-metadata">

**Author:** ![crazyserb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crazyserb/32/28456_2.png) [@crazyserb](https://discuss.elastic.co/u/crazyserb)\
**Post date:** [March 5, 2018, 10:25pm UTC](https://discuss.elastic.co/t/not-able-to-configure-elastic-search-on-centos/119493/2 "2018-03-05T22:25:15Z")

</div>

I have the same issue, after installing fresh ElasticSearch on CentOS 7:

[2018-03-05T17:02:28,099][WARN][o.e.b.Natives] unable to load JNA native support library, native methods will be disabled.  
java.lang.UnsatisfiedLinkError: /tmp/elasticsearch.IxKEQ33L/jna--1985354563/jna2264605953671220422.tmp: /tmp/elasticsearch.IxKEQ33L/jna--1985354563/jna2264605953671220422.tmp: failed to map segment from shared object: Operation not permitted  
at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[?:1.8.0\_161]  
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) ~[?:1.8.0\_161]  
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) ~[?:1.8.0\_161]  
at java.lang.Runtime.load0(Runtime.java:809) ~[?:1.8.0\_161]  
at java.lang.System.load(System.java:1086) ~[?:1.8.0\_161]  
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947) ~[jna-4.5.1.jar:4.5.1 (b0)]  
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922) ~[jna-4.5.1.jar:4.5.1 (b0)]  
at com.sun.jna.Native.(Native.java:190) ~[jna-4.5.1.jar:4.5.1 (b0)]  
at java.lang.Class.forName0(Native Method) ~[?:1.8.0\_161]  
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0\_161]  
at org.elasticsearch.bootstrap.Natives.(Natives.java:45) [elasticsearch-6.2.2.jar:6.2.2]  
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:104) [elasticsearch-6.2.2.jar:6.2.2]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:172) [elasticsearch-6.2.2.jar:6.2.2]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) [elasticsearch-6.2.2.jar:6.2.2]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-6.2.2.jar:6.2.2]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-6.2.2.jar:6.2.2]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.2.2.jar:6.2.2]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.2.2.jar:6.2.2]  
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.2.2.jar:6.2.2]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-6.2.2.jar:6.2.2]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) [elasticsearch-6.2.2.jar:6.2.2]  
[2018-03-05T17:02:28,103][WARN][o.e.b.Natives] cannot check if running as root because JNA is not available  
[2018-03-05T17:02:28,104][WARN][o.e.b.Natives] cannot install system call filter because JNA is not available  
[2018-03-05T17:02:28,104][WARN][o.e.b.Natives] cannot register console handler because JNA is not available  
[2018-03-05T17:02:28,104][WARN][o.e.b.Natives] cannot getrlimit RLIMIT\_NPROC because JNA is not available  
[2018-03-05T17:02:28,105][WARN][o.e.b.Natives] cannot getrlimit RLIMIT\_AS beacuse JNA is not available  
[2018-03-05T17:02:28,105][WARN][o.e.b.Natives] cannot getrlimit RLIMIT\_FSIZE because JNA is not available  
[2018-03-05T17:02:28,191][INFO][o.e.n.Node] [] initializing ...  
[2018-03-05T17:02:28,231][INFO][o.e.e.NodeEnvironment] [R9z\_dd2] using [1] data paths, mounts [[/ (rootfs)]], net usable\_space [373.6gb], net total\_space [870.6gb], types [rootfs]  
[2018-03-05T17:02:28,231][INFO][o.e.e.NodeEnvironment] [R9z\_dd2] heap size [989.8mb], compressed ordinary object pointers [true]  
[2018-03-05T17:02:28,232][INFO][o.e.n.Node] node name [R9z\_dd2] derived from node ID [R9z\_dd2aRNuQNB3TU4CmSw]; set [node.name] to override  
[2018-03-05T17:02:28,232][INFO][o.e.n.Node] version[6.2.2], pid[31103], build[10b1edd/2018-02-16T19:01:30.685723Z], OS[Linux/3.10.0-693.17.1.el7.x86\_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0\_161/25.161-b14]  
[2018-03-05T17:02:28,232][INFO][o.e.n.Node] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.IxKEQ33L, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:/var/log/elasticsearch/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [aggs-matrix-stats]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [analysis-common]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [ingest-common]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [lang-expression]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [lang-mustache]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [lang-painless]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [mapper-extras]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [parent-join]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [percolator]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [rank-eval]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] loaded module [tribe]  
[2018-03-05T17:02:28,642][INFO][o.e.p.PluginsService] [R9z\_dd2] no plugins loaded  
[2018-03-05T17:02:30,148][INFO][o.e.d.DiscoveryModule] [R9z\_dd2] using discovery type [zen]  
[2018-03-05T17:02:30,762][INFO][o.e.n.Node] initialized  
[2018-03-05T17:02:30,762][INFO][o.e.n.Node] [R9z\_dd2] starting ...  
[2018-03-05T17:02:30,853][INFO][o.e.t.TransportService] [R9z\_dd2] publish\_address {74.50.124.48:9300}, bound\_addresses {74.50.124.48:9300}  
[2018-03-05T17:02:30,860][INFO][o.e.b.BootstrapChecks] [R9z\_dd2] bound or publishing to a non-loopback address, enforcing bootstrap checks  
[2018-03-05T17:02:30,862][ERROR][o.e.b.Bootstrap] [R9z\_dd2] node validation exception  
[1] bootstrap checks failed  
[1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

What are we missing here?

---

<div class="post-metadata">

**Author:** ![crazyserb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crazyserb/32/28456_2.png) [@crazyserb](https://discuss.elastic.co/u/crazyserb)\
**Post date:** [March 5, 2018, 10:30pm UTC](https://discuss.elastic.co/t/not-able-to-configure-elastic-search-on-centos/119493/3 "2018-03-05T22:30:45Z")

</div>

And when running

systemctl status elasticsearch.service

I get the following:

● elasticsearch.service - Elasticsearch  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)  
Active: failed (Result: exit-code) since Mon 2018-03-05 17:18:33 EST; 10min ago  
Docs: [http://www.elastic.co](http://www.elastic.co)  
Process: 8027 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID\_DIR}/elasticsearch.pid --quiet (code=exited, status=78)  
Main PID: 8027 (code=exited, status=78)

Mar 05 17:18:29 systemd[1]: Started Elasticsearch.  
Mar 05 17:18:29 systemd[1]: Starting Elasticsearch...  
Mar 05 17:18:33 systemd[1]: elasticsearch.service: main process exited, code=exited, status=78/n/a  
Mar 05 17:18:33 systemd[1]: Unit elasticsearch.service entered failed state.  
Mar 05 17:18:33 systemd[1]: elasticsearch.service failed.

---

<div class="post-metadata">

**Author:** ![crazyserb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crazyserb/32/28456_2.png) [@crazyserb](https://discuss.elastic.co/u/crazyserb)\
**Post date:** [March 5, 2018, 10:57pm UTC](https://discuss.elastic.co/t/not-able-to-configure-elastic-search-on-centos/119493/4 "2018-03-05T22:57:49Z")

</div>

As a matter of fact, I get it to start just fine (apparently) and then 5 seconds later it is shut down, and the temporary folder /var/run/elasticsearch and PID file in it are removed/gone as if they were never there.

[root@matrix elasticsearch]# systemctl start elasticsearch.service  
[root@matrix elasticsearch]# systemctl status elasticsearch.service  
● elasticsearch.service - Elasticsearch  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)  
Active: active (running) since Mon 2018-03-05 17:54:29 EST; 1s ago  
Docs: [http://www.elastic.co](http://www.elastic.co)  
Main PID: 28330 (java)  
CGroup: /system.slice/elasticsearch.service  
└─28330 /usr/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSIniti...

Mar 05 17:54:29 systemd[1]: Started Elasticsearch.  
Mar 05 17:54:29 systemd[1]: Starting Elasticsearch...

[root@matrix elasticsearch]# systemctl status elasticsearch.service  
● elasticsearch.service - Elasticsearch  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)  
Active: failed (Result: exit-code) since Mon 2018-03-05 17:54:35 EST; 18s ago  
Docs: [http://www.elastic.co](http://www.elastic.co)  
Process: 28330 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID\_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)  
Main PID: 28330 (code=exited, status=1/FAILURE)

Mar 05 17:54:29 systemd[1]: Started Elasticsearch.  
Mar 05 17:54:29 systemd[1]: Starting Elasticsearch...  
Mar 05 17:54:35 systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE  
Mar 05 17:54:35 systemd[1]: Unit elasticsearch.service entered failed state.  
Mar 05 17:54:35 systemd[1]: elasticsearch.service failed.  
[root@matrix elasticsearch]#

Can this installation and starting of this service be made any easier? I feel like I'm trying to diffuse a bomb here, while your instructions claim that it's super easy to get this installed and started somehow.

So annoying...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 2, 2018, 10:58pm UTC](https://discuss.elastic.co/t/not-able-to-configure-elastic-search-on-centos/119493/5 "2018-04-02T22:58:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
