Hi All,
Unable to install elasticsearch 5.5.1 and facing the below error.
Could you please help me for further
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: memory locking requested for elasticsearch process but memory is not locked
Error :
bin]$ ./elasticsearch
[2017-08-01T05:35:39,427][WARN ][o.e.b.JNANatives ] Unable to lock JVM Memory: error=12, reason=Cannot allocate memory
[2017-08-01T05:35:39,429][WARN ][o.e.b.JNANatives ] This can result in part of the JVM being swapped out.
[2017-08-01T05:35:39,429][WARN ][o.e.b.JNANatives ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2017-08-01T05:35:39,429][WARN ][o.e.b.JNANatives ] These can be adjusted by modifying /etc/security/limits.conf, for example:
# allow user 'ec2-user' mlockall
ec2-user soft memlock unlimited
ec2-user hard memlock unlimited
[2017-08-01T05:35:39,430][WARN ][o.e.b.JNANatives ] If you are logged in interactively, you will have to re-login for the new limits to take effect.
[2017-08-01T05:35:39,544][INFO ][o.e.n.Node ] [] initializing ...
[2017-08-01T05:35:39,606][INFO ][o.e.e.NodeEnvironment ] [Ih_X-z-] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [95.8gb], net total_space [98.3gb], spins? [no], types [ext4]
[2017-08-01T05:35:39,606][INFO ][o.e.e.NodeEnvironment ] [Ih_X-z-] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-08-01T05:35:39,607][INFO ][o.e.n.Node ] node name [Ih_X-z-] derived from node ID [Ih_X-z-cT4ain1knIbRuEw]; set [node.name] to override
[2017-08-01T05:35:39,607][INFO ][o.e.n.Node ] version[5.5.1], pid[16527], build[19c13d0/2017-07-18T20:44:24.823Z], OS[Linux/4.9.38-16.33.amzn1.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_141/25.141-b15]
[2017-08-01T05:35:39,607][INFO ][o.e.n.Node ] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/home/ec2-user/elasticsearch-5.5.1]
[2017-08-01T05:35:40,430][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [aggs-matrix-stats]
[2017-08-01T05:35:40,431][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [ingest-common]
[2017-08-01T05:35:40,431][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [lang-expression]
[2017-08-01T05:35:40,431][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [lang-groovy]
[2017-08-01T05:35:40,431][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [lang-mustache]
[2017-08-01T05:35:40,431][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [lang-painless]
[2017-08-01T05:35:40,432][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [parent-join]
[2017-08-01T05:35:40,432][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [percolator]
[2017-08-01T05:35:40,432][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [reindex]
[2017-08-01T05:35:40,432][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [transport-netty3]
[2017-08-01T05:35:40,432][INFO ][o.e.p.PluginsService ] [Ih_X-z-] loaded module [transport-netty4]
[2017-08-01T05:35:40,433][INFO ][o.e.p.PluginsService ] [Ih_X-z-] no plugins loaded
[2017-08-01T05:35:41,923][INFO ][o.e.d.DiscoveryModule ] [Ih_X-z-] using discovery type [zen]
[2017-08-01T05:35:42,572][INFO ][o.e.n.Node ] initialized
[2017-08-01T05:35:42,572][INFO ][o.e.n.Node ] [Ih_X-z-] starting ...
[2017-08-01T05:35:42,700][INFO ][o.e.t.TransportService ] [Ih_X-z-] publish_address {172.18.7.177:9300}, bound_addresses {172.18.7.177:9300}
[2017-08-01T05:35:42,713][INFO ][o.e.b.BootstrapChecks ] [Ih_X-z-] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: [2] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: memory locking requested for elasticsearch process but memory is not locked
[2017-08-01T05:35:42,725][INFO ][o.e.n.Node ] [Ih_X-z-] stopping ...
[2017-08-01T05:35:42,740][INFO ][o.e.n.Node ] [Ih_X-z-] stopped
[2017-08-01T05:35:42,740][INFO ][o.e.n.Node ] [Ih_X-z-] closing ...
[2017-08-01T05:35:42,752][INFO ][o.e.n.Node ] [Ih_X-z-] closed