Update:
I mounted host directory with elasticsearch.yml
file with a Docker container:
discovery.zen.minimum_master_nodes: 1
bootstrap.system_call_filter: false
xpack.security.enabled: false
The previous error is still displayed but as a warning now. Elasticsearch started successfully but I am not able to reach it at port 9200
.
netstat -an:
bash-4.3$ netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 ::ffff:xxx.x.x.x:9200 :::* LISTEN
tcp 0 0 ::1:9200 :::* LISTEN
tcp 0 0 ::ffff:xxx.x.x.x:9300 :::* LISTEN
tcp 0 0 ::1:9300 :::* LISTEN
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] STREAM CONNECTED 94584
unix 2 [ ] STREAM CONNECTED 94334
Elasticsearch log:
[2017-04-15T01:55:14,698][INFO ][o.e.p.PluginsService ] [x-FTlx2] loaded module [transport-netty4]
[2017-04-15T01:55:14,699][INFO ][o.e.p.PluginsService ] [x-FTlx2] loaded plugin [x-pack]
[2017-04-15T01:55:32,746][INFO ][o.e.n.Node ] initialized
[2017-04-15T01:55:32,746][INFO ][o.e.n.Node ] [x-FTlx2] starting ...
[2017-04-15T01:55:34,594][WARN ][i.n.u.i.MacAddressUtil ] Failed to find a usable hardware address from the network interfaces; using random bytes: f2:38:9a:10:86:b5:8b:dc
[2017-04-15T01:55:35,161][INFO ][o.e.t.TransportService ] [x-FTlx2] publish_address {xxx.x.x.x:9300}, bound_addresses {[::1]:9300}, {xxx.x.x.x:9300}
[2017-04-15T01:55:35,348][WARN ][o.e.b.BootstrapChecks ] [x-FTlx2] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2017-04-15T01:55:35,807][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][2] overhead, spent [354ms] collecting in the last [1.1s]
[2017-04-15T01:55:36,842][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][3] overhead, spent [301ms] collecting in the last [1.1s]
[2017-04-15T01:55:39,873][INFO ][o.e.c.s.ClusterService ] [x-FTlx2] new_master {x-FTlx2}{x-FTlx2SSVSv879Xgq9zTg}{2km9O-FRRhueFkvNzNkrrQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-04-15T01:55:40,423][INFO ][o.e.h.n.Netty4HttpServerTransport] [x-FTlx2] publish_address {xxx.x.x.x:9200}, bound_addresses {[::1]:9200}, {xxx.x.x.x:9200}
[2017-04-15T01:55:40,431][INFO ][o.e.n.Node ] [x-FTlx2] started
[2017-04-15T01:55:42,313][INFO ][o.e.g.GatewayService ] [x-FTlx2] recovered [0] indices into cluster_state
[2017-04-15T01:55:47,393][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][12] overhead, spent [502ms] collecting in the last [1.6s]
[2017-04-15T01:55:53,848][INFO ][o.e.l.LicenseService ] [x-FTlx2] license [cd1d9ce1-eb90-4bf8-8480-ba40f4245656] mode [trial] - valid
[2017-04-15T01:56:04,749][INFO ][o.e.c.m.MetaDataCreateIndexService] [x-FTlx2] [.monitoring-data-2] creating index, cause [auto(bulk api)], templates [.monitoring-data-2], shards [1]/[1], mappings [logstash, _default_, node, kibana, cluster_info]
[2017-04-15T01:56:07,070][INFO ][o.e.c.m.MetaDataCreateIndexService] [x-FTlx2] [.monitoring-es-2-2017.04.15] creating index, cause [auto(bulk api)], templates [.monitoring-es-2], shards [1]/[1], mappings [node, shards, _default_, index_stats, index_recovery, cluster_state, cluster_stats, indices_stats, node_stats]
[2017-04-15T01:56:11,187][INFO ][o.e.c.m.MetaDataMappingService] [x-FTlx2] [.monitoring-es-2-2017.04.15/h6o8iTi6RbKIUCMVUqYQ7Q] update_mapping [cluster_stats]
[2017-04-15T01:56:13,192][INFO ][o.e.c.m.MetaDataMappingService] [x-FTlx2] [.monitoring-es-2-2017.04.15/h6o8iTi6RbKIUCMVUqYQ7Q] update_mapping [node_stats]
[2017-04-15T01:56:24,571][INFO ][o.e.c.m.MetaDataMappingService] [x-FTlx2] [.monitoring-es-2-2017.04.15/h6o8iTi6RbKIUCMVUqYQ7Q] update_mapping [cluster_stats]
[2017-04-15T01:56:25,330][INFO ][o.e.c.m.MetaDataMappingService] [x-FTlx2] [.monitoring-es-2-2017.04.15/h6o8iTi6RbKIUCMVUqYQ7Q] update_mapping [indices_stats]
[2017-04-15T01:56:26,378][INFO ][o.e.c.m.MetaDataMappingService] [x-FTlx2] [.monitoring-es-2-2017.04.15/h6o8iTi6RbKIUCMVUqYQ7Q] update_mapping [index_stats]
[2017-04-15T01:56:27,864][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][50] overhead, spent [479ms] collecting in the last [1.2s]
[2017-04-15T01:56:44,285][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][65] overhead, spent [482ms] collecting in the last [1.2s]
[2017-04-15T01:56:57,116][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][76] overhead, spent [417ms] collecting in the last [1.1s]
[2017-04-15T01:57:05,987][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][young][84][15] duration [720ms], collections [1]/[1s], total [720ms]/[4.7s], memory [134.1mb]->[78.6mb]/[1.9gb], all_pools {[young] [57.4mb]->[25.5kb]/[66.5mb]}{[survivor] [8.3mb]->[8.3mb]/[8.3mb]}{[old] [68.3mb]->[70.3mb]/[1.9gb]}
[2017-04-15T01:57:05,989][WARN ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][84] overhead, spent [720ms] collecting in the last [1s]
[2017-04-15T01:57:24,065][WARN ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][101] overhead, spent [502ms] collecting in the last [1s]
[2017-04-15T01:57:36,359][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][young][113][17] duration [963ms], collections [1]/[1s], total [963ms]/[6.2s], memory [128.6mb]->[74.7mb]/[1.9gb], all_pools {[young] [50.1mb]->[43.9kb]/[66.5mb]}{[survivor] [8.1mb]->[4.3mb]/[8.3mb]}{[old] [70.4mb]->[70.4mb]/[1.9gb]}
[2017-04-15T01:57:36,366][WARN ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][113] overhead, spent [963ms] collecting in the last [1s]
[2017-04-15T02:00:03,848][INFO ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][256] overhead, spent [444ms] collecting in the last [1s]
[2017-04-15T02:08:56,582][WARN ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][young][777][63] duration [1.1s], collections [1]/[1.3s], total [1.1s]/[14.8s], memory [158mb]->[101.1mb]/[1.9gb], all_pools {[young] [60.8mb]->[514kb]/[66.5mb]}{[survivor] [5.1mb]->[8.3mb]/[8.3mb]}{[old] [91.9mb]->[92.3mb]/[1.9gb]}
[2017-04-15T02:08:56,597][WARN ][o.e.m.j.JvmGcMonitorService] [x-FTlx2] [gc][777] overhead, spent [1.1s] collecting in the last [1.3s]