Elasticsearch.service problem

Dec 16 08:49:58 104-45-22-197.cprapid.com systemd-entrypoint[18969]: at org.elasticsearch.core.internal.io.IOUtils.close(IOUtils.java:99)
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd-entrypoint[18969]: at org.elasticsearch.node.Node.close(Node.java:1024)
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd-entrypoint[18969]: at org.elasticsearch.core.internal.io.IOUtils.close(IOUtils.java:74)
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd-entrypoint[18969]: at org.elasticsearch.core.internal.io.IOUtils.close(IOUtils.java:116)
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd-entrypoint[18969]: at org.elasticsearch.core.internal.io.IOUtils.close(IOUtils.java:66)
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd-entrypoint[18969]: at org.elasticsearch.bootstrap.Bootstrap$4.run(Bootstrap.java:192)
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd[1]: Failed to start Elasticsearch.
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd[1]: Unit elasticsearch.service entered failed state.
Dec 16 08:49:58 104-45-22-197.cprapid.com systemd[1]: elasticsearch.service failed.

i take this error when i try to start elasticsearch.
my yml file

>     # ======================== Elasticsearch Configuration =========================
> #
> # NOTE: Elasticsearch comes with reasonable defaults for most settings.
> #       Before you set out to tweak and tune the configuration, make sure you
> #       understand what are you trying to accomplish and the consequences.
> #
> # The primary way of configuring a node is via this file. This template lists
> # the most important settings you may want to configure for a production cluster.
> #
> # Please consult the documentation for further information on configuration options:
> # https://www.elastic.co/guide/en/elasticsearch/reference/index.html
> #
> # ---------------------------------- Cluster -----------------------------------
> #
> # Use a descriptive name for your cluster:
> #
> #cluster.name: my-application
> #
> # ------------------------------------ Node ------------------------------------
> #
> # Use a descriptive name for the node:
> #
> #node.name: node-1
> #
> # Add custom attributes to the node:
> #
> #node.attr.rack: r1
> #
> # ----------------------------------- Paths ------------------------------------
> #
> # Path to directory where to store the data (separate multiple locations by comma):
> #
> path.data: /var/lib/elasticsearch
> #
> # Path to log files:
> #
> path.logs: /var/log/elasticsearch
> #
> # ----------------------------------- Memory -----------------------------------
> #
> # Lock the memory on startup:
> #
> #bootstrap.memory_lock: true
> #
> # Make sure that the heap size is set to about half the memory available
> # on the system and that the owner of the process is allowed to use this
> # limit.
> #
> # Elasticsearch performs poorly when the system is swapping the memory.
> #
> # ---------------------------------- Network -----------------------------------
> #
> # Set the bind address to a specific IP (IPv4 or IPv6):
> #
> network.host: localhost
> #
> # Set a custom port for HTTP:
> #
> http.port: 9200
> #
> # For more information, consult the network module documentation.
> #
> # --------------------------------- Discovery ----------------------------------
> #
> # Pass an initial list of hosts to perform discovery when this node is started:
> "/etc/elasticsearch/elasticsearch.yml" 88L, 2843C

this is elasticsearch.log

[2020-12-16T07:46:12,932][WARN ][o.e.b.Natives            ] [104-45-22-197.cprapid.com] unable to load JNA native support library, native methods will be disabled.
java.lang.UnsatisfiedLinkError: /tmp/elasticsearch-9954212489355628972/jna4981601942211230469.tmp: /tmp/elasticsearch-9954212489355628972/jna4981601942211230469.tmp: failed to map segment from shared object: Operation not permitted
        at jdk.internal.loader.NativeLibraries.load(Native Method) ~[?:?]
        at jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383) ~[?:?]
        at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227) ~[?:?]
        at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169) ~[?:?]
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2407) ~[?:?]
        at java.lang.Runtime.load0(Runtime.java:747) ~[?:?]
        at java.lang.System.load(System.java:1857) ~[?:?]
        at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018) ~[jna-5.5.0.jar:5.5.0 (b0)]
        at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988) ~[jna-5.5.0.jar:5.5.0 (b0)]
        at com.sun.jna.Native.<clinit>(Native.java:195) ~[jna-5.5.0.jar:5.5.0 (b0)]
        at java.lang.Class.forName0(Native Method) ~[?:?]
        at java.lang.Class.forName(Class.java:377) ~[?:?]
        at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) [elasticsearch-7.10.1.jar:7.10.1]
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:110) [elasticsearch-7.10.1.jar:7.10.1]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178) [elasticsearch-7.10.1.jar:7.10.1]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) [elasticsearch-7.10.1.jar:7.10.1]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) [elasticsearch-7.10.1.jar:7.10.1]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) [elasticsearch-7.10.1.jar:7.10.1]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.10.1.jar:7.10.1]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) [elasticsearch-cli-7.10.1.jar:7.10.1]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.10.1.jar:7.10.1]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) [elasticsearch-7.10.1.jar:7.10.1]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.10.1.jar:7.10.1]
[2020-12-16T07:46:12,948][WARN ][o.e.b.Natives            ] [104-45-22-197.cprapid.com] cannot check if running as root because JNA is not available
[2020-12-16T07:46:12,948][WARN ][o.e.b.Natives            ] [104-45-22-197.cprapid.com] cannot install system call filter because JNA is not available
[2020-12-16T07:46:12,949][WARN ][o.e.b.Natives            ] [104-45-22-197.cprapid.com] cannot register console handler because JNA is not available
[2020-12-16T07:46:12,950][WARN ][o.e.b.Natives            ] [104-45-22-197.cprapid.com] cannot getrlimit RLIMIT_NPROC because JNA is not available
[2020-12-16T07:46:12,950][WARN ][o.e.b.Natives            ] [104-45-22-197.cprapid.com] cannot getrlimit RLIMIT_AS because JNA is not available
[2020-12-16T07:46:12,950][WARN ][o.e.b.Natives            ] [104-45-22-197.cprapid.com] cannot getrlimit RLIMIT_FSIZE because JNA is not available
[2020-12-16T07:46:13,069][INFO ][o.e.n.Node               ] [104-45-22-197.cprapid.com] version[7.10.1], pid[11305], build[oss/rpm/1c34507e66d7db1211f66f3513706fdf548736aa/2020-12-05T01:00:33.671820Z], OS[Linux/3.10.0-1127.19.1.el7.x86_$
[2020-12-16T07:46:13,070][INFO ][o.e.n.Node               ] [104-45-22-197.cprapid.com] JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]
[2020-12-16T07:46:13,070][INFO ][o.e.n.Node               ] [104-45-22-197.cprapid.com] JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.he$
[2020-12-16T07:46:13,885][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [aggs-matrix-stats]
[2020-12-16T07:46:13,886][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [analysis-common]
[2020-12-16T07:46:13,886][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [geo]
[2020-12-16T07:46:13,887][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [ingest-common]
[2020-12-16T07:46:13,887][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [ingest-geoip]
[2020-12-16T07:46:13,887][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [ingest-user-agent]
[2020-12-16T07:46:13,888][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [kibana]
[2020-12-16T07:46:13,888][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [lang-expression]
[2020-12-16T07:46:13,889][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [lang-mustache]
[2020-12-16T07:46:13,889][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [lang-painless]
[2020-12-16T07:46:13,889][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [mapper-extras]
[2020-12-16T07:46:13,889][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [parent-join]
[2020-12-16T07:46:13,889][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [percolator]
[2020-12-16T07:46:13,890][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [rank-eval]
[2020-12-16T07:46:13,890][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [reindex]
[2020-12-16T07:46:13,890][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [repository-url]
[2020-12-16T07:46:13,890][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [systemd]
[2020-12-16T07:46:13,890][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] loaded module [transport-netty4]
[2020-12-16T07:46:13,891][INFO ][o.e.p.PluginsService     ] [104-45-22-197.cprapid.com] no plugins loaded
[2020-12-16T07:46:13,936][INFO ][o.e.e.NodeEnvironment    ] [104-45-22-197.cprapid.com] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [22gb], net total_space [29.4gb], types [rootfs]
[2020-12-16T07:46:13,937][INFO ][o.e.e.NodeEnvironment    ] [104-45-22-197.cprapid.com] heap size [1gb], compressed ordinary object pointers [true]
[2020-12-16T07:46:14,018][INFO ][o.e.n.Node               ] [104-45-22-197.cprapid.com] node name [104-45-22-197.cprapid.com], node ID [ejBxe1iOS8Gdv2WeKVY44g], cluster name [elasticsearch], roles [master, remote_cluster_client, data, i$
[2020-12-16T07:46:16,557][INFO ][o.e.t.NettyAllocator     ] [104-45-22-197.cprapid.com] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=256kb, factors={es.unsafe.use_unpooled_allocator=n$
[2020-12-16T07:46:16,609][INFO ][o.e.d.DiscoveryModule    ] [104-45-22-197.cprapid.com] using discovery type [zen] and seed hosts providers [settings]
[2020-12-16T07:46:16,805][WARN ][o.e.g.DanglingIndicesState] [104-45-22-197.cprapid.com] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
[2020-12-16T07:46:16,932][INFO ][o.e.n.Node               ] [104-45-22-197.cprapid.com] initialized
[2020-12-16T07:46:16,932][INFO ][o.e.n.Node               ] [104-45-22-197.cprapid.com] starting ...

Welcome!

Please don't post images of text as they are hard to read, may not display correctly for everyone, and are not searchable.

Instead, paste the text and format it with </> icon or pairs of triple backticks (```), and check the preview window to make sure it's properly formatted before posting it. This makes it more likely that your question will receive a useful answer.

It would be great if you could update your post to solve this.

Also don't use both code format and citation.

Also share elasticsearch logs please.

yes Mr. David.

Is that the whole content of the logs? If not could you share all the logs?

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