Elasticsearch is not starting

I want to start Elasticsearch on linux system and give command like below at bin path

./elasticsearch
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2021-10-21T08:05:19,991][WARN ][o.e.b.Natives            ] [ip-10-121-17-65.alnylam.local] unable to load JNA native support library, native methods will be disabled.
	at java.lang.UnsatisfiedLinkError: /tmp/elasticsearch-2068458594361158503/jna--924648796/jna7329629454367956094.tmp: /tmp/elasticsearch-2068458594361158503/jna--924648796/jna7329629454367956094.tmp: failed to map segment from shared object
        at java.lang.ClassLoader$NativeLibrary.load0(Native Method) ~[?:?]
        at java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2440) ~[?:?]
        at java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2497) ~[?:?]
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694) ~[?:?]
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627) ~[?:?]
        at java.lang.Runtime.load0(Runtime.java:744) ~[?:?]
        at java.lang.System.load(System.java:1870) ~[?:?]
        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.<clinit>(Native.java:190) ~[jna-4.5.1.jar:4.5.1 (b0)]
        at java.lang.Class.forName0(Native Method) ~[?:?]
        at java.lang.Class.forName(Class.java:333) ~[?:?]
        at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) [elasticsearch-7.4.0.jar:7.4.0]
        at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:104) [elasticsearch-7.4.0.jar:7.4.0]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:172) [elasticsearch-7.4.0.jar:7.4.0]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) [elasticsearch-7.4.0.jar:7.4.0]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-7.4.0.jar:7.4.0]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-7.4.0.jar:7.4.0]
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.4.0.jar:7.4.0]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125) [elasticsearch-cli-7.4.0.jar:7.4.0]
        at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.4.0.jar:7.4.0]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) [elasticsearch-7.4.0.jar:7.4.0]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.4.0.jar:7.4.0]
[2021-10-21T08:05:20,019][WARN ][o.e.b.Natives            ] [ip-10-121-17-65.alnylam.local] cannot check if running as root because JNA is not available
[2021-10-21T08:05:20,022][WARN ][o.e.b.Natives            ] [ip-10-121-17-65.alnylam.local] cannot install system call filter because JNA is not available
[2021-10-21T08:05:20,025][WARN ][o.e.b.Natives            ] [ip-10-121-17-65.alnylam.local] cannot register console handler because JNA is not available
[2021-10-21T08:05:20,028][WARN ][o.e.b.Natives            ] [ip-10-121-17-65.alnylam.local] cannot getrlimit RLIMIT_NPROC because JNA is not available
[2021-10-21T08:05:20,028][WARN ][o.e.b.Natives            ] [ip-10-121-17-65.alnylam.local] cannot getrlimit RLIMIT_AS because JNA is not available
[2021-10-21T08:05:20,029][WARN ][o.e.b.Natives            ] [ip-10-121-17-65.alnylam.local] cannot getrlimit RLIMIT_FSIZE because JNA is not available
[2021-10-21T08:05:20,348][INFO ][o.e.e.NodeEnvironment    ] [ip-10-121-17-65.alnylam.local] using [1] data paths, mounts [[/ (/dev/nvme0n1p2)]], net usable_space [207gb], net total_space [499.9gb], types [xfs]
[2021-10-21T08:05:20,351][INFO ][o.e.e.NodeEnvironment    ] [ip-10-121-17-65.alnylam.local] heap size [989.8mb], compressed ordinary object pointers [true]
[2021-10-21T08:05:20,389][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] node name [ip-10-121-17-65.alnylam.local], node ID [pdKx6ekIQAaOLyCZrq_Fbw], cluster name [elasticsearch]
[2021-10-21T08:05:20,390][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] version[7.4.0], pid[3074205], build[oss/tar/22e1767283e61a198cb4db791ea66e3f11ab9910/2019-09-27T08:36:48.569419Z], OS[Linux/4.18.0-305.17.1.el8_4.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/13/13+33]
[2021-10-21T08:05:20,391][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] JVM home [/home/ec2-user/project/servers/analytics/elk-stack-7.4/elasticsearch-7.4.0/jdk]
[2021-10-21T08:05:20,392][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -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, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-2068458594361158503, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -Dio.netty.allocator.type=unpooled, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/home/ec2-user/project/servers/analytics/elk-stack-7.4/elasticsearch-7.4.0, -Des.path.conf=/home/ec2-user/project/servers/analytics/elk-stack-7.4/elasticsearch-7.4.0/config, -Des.distribution.flavor=oss, -Des.distribution.type=tar, -Des.bundled_jdk=true]
[2021-10-21T08:05:22,169][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [aggs-matrix-stats]
[2021-10-21T08:05:22,170][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [analysis-common]
[2021-10-21T08:05:22,170][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [ingest-common]
[2021-10-21T08:05:22,171][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [ingest-geoip]
[2021-10-21T08:05:22,172][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [ingest-user-agent]
[2021-10-21T08:05:22,172][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [lang-expression]
[2021-10-21T08:05:22,173][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [lang-mustache]
[2021-10-21T08:05:22,173][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [lang-painless]
[2021-10-21T08:05:22,174][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [mapper-extras]
[2021-10-21T08:05:22,174][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [parent-join]
[2021-10-21T08:05:22,175][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [percolator]
[2021-10-21T08:05:22,175][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [rank-eval]
[2021-10-21T08:05:22,176][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [reindex]
[2021-10-21T08:05:22,176][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [repository-url]
[2021-10-21T08:05:22,176][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] loaded module [transport-netty4]
[2021-10-21T08:05:22,177][INFO ][o.e.p.PluginsService     ] [ip-10-121-17-65.alnylam.local] no plugins loaded
[2021-10-21T08:05:25,936][INFO ][o.e.d.DiscoveryModule    ] [ip-10-121-17-65.alnylam.local] using discovery type [zen] and seed hosts providers [settings]
[2021-10-21T08:05:26,476][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] initialized
[2021-10-21T08:05:26,477][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] starting ...
[2021-10-21T08:05:26,659][INFO ][o.e.t.TransportService   ] [ip-10-121-17-65.alnylam.local] publish_address {127.0.0.1:9210}, bound_addresses {[::1]:9210}, {127.0.0.1:9210}
[2021-10-21T08:05:26,672][WARN ][o.e.b.BootstrapChecks    ] [ip-10-121-17-65.alnylam.local] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2021-10-21T08:05:26,672][WARN ][o.e.b.BootstrapChecks    ] [ip-10-121-17-65.alnylam.local] system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
[2021-10-21T08:05:26,673][WARN ][o.e.b.BootstrapChecks    ] [ip-10-121-17-65.alnylam.local] the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2021-10-21T08:05:26,678][INFO ][o.e.c.c.Coordinator      ] [ip-10-121-17-65.alnylam.local] cluster UUID [T0Wr7n2dQ8CcfVNiTJ-bHA]
[2021-10-21T08:05:26,692][INFO ][o.e.c.c.ClusterBootstrapService] [ip-10-121-17-65.alnylam.local] no discovery configuration found, will perform best-effort cluster bootstrapping after [3s] unless existing master is discovered
[2021-10-21T08:05:26,750][INFO ][o.e.c.s.MasterService    ] [ip-10-121-17-65.alnylam.local] elected-as-master ([1] nodes joined)[{ip-10-121-17-65.alnylam.local}{pdKx6ekIQAaOLyCZrq_Fbw}{2R1R99MHTJS73ufKe8RlwQ}{127.0.0.1}{127.0.0.1:9210}{dim} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 26, version: 524, reason: master node changed {previous [], current [{ip-10-121-17-65.alnylam.local}{pdKx6ekIQAaOLyCZrq_Fbw}{2R1R99MHTJS73ufKe8RlwQ}{127.0.0.1}{127.0.0.1:9210}{dim}]}
[2021-10-21T08:05:26,841][INFO ][o.e.c.s.ClusterApplierService] [ip-10-121-17-65.alnylam.local] master node changed {previous [], current [{ip-10-121-17-65.alnylam.local}{pdKx6ekIQAaOLyCZrq_Fbw}{2R1R99MHTJS73ufKe8RlwQ}{127.0.0.1}{127.0.0.1:9210}{dim}]}, term: 26, version: 524, reason: Publication{term=26, version=524}
[2021-10-21T08:05:26,864][INFO ][o.e.h.AbstractHttpServerTransport] [ip-10-121-17-65.alnylam.local] publish_address {10.121.17.65:9200}, bound_addresses {10.121.17.65:9200}
[2021-10-21T08:05:26,864][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] started
[2021-10-21T08:05:26,946][INFO ][o.e.g.GatewayService     ] [ip-10-121-17-65.alnylam.local] recovered [5] indices into cluster_state
[2021-10-21T08:05:27,934][INFO ][o.e.c.r.a.AllocationService] [ip-10-121-17-65.alnylam.local] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana_1][0]]]).
^C[2021-10-21T08:13:45,253][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] stopping ...
[2021-10-21T08:13:45,305][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] stopped
[2021-10-21T08:13:45,306][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] closing ...
[2021-10-21T08:13:45,314][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] closed



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 please use the latest version of Elasticsearch. 7.4.0 is really old. All bug fixes and improvements are now in 7.15.1.

I have see if it helps

So the node worked correctly until you stopped it with CTRL+C.

Why do you say it did not start?

[2021-10-21T08:05:26,864][INFO ][o.e.n.Node               ] [ip-10-121-17-65.alnylam.local] started

but its not giving output at url
10.X.X.X:9200

When did you try it? Before or after you hit CTRL+C and stopped Elasticsearch?
If before, then check that you don't have a firewall or a proxy...

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