It seems it failed to start and status stayed to RED. Any idea? Thanks
Following errors are in elasticsearch log file:
[2019-11-26T10:53:03,141][WARN ][o.e.b.Natives ] cannot register console handler because JNA is not available
[2019-11-26T10:53:03,143][WARN ][o.e.b.Natives ] cannot getrlimit RLIMIT_NPROC because JNA is not available
[2019-11-26T10:53:03,143][WARN ][o.e.b.Natives ] cannot getrlimit RLIMIT_AS beacuse JNA is not available
[2019-11-26T10:53:03,672][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [elasticsearch-node1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unable to parse policy file file:/....../modules/lang-expression/plugin-security.policy
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[elasticsearch-5.4.1.jar:5.4.1]
...
Caused by: java.lang.IllegalArgumentException: unable to parse policy file file:/.../modules/lang-expression/plugin-security.policy
...
Caused by: java.security.NoSuchAlgorithmException: JavaPolicy Policy not available
......
The plugin-security.policy file looks normal as following
grant {
// needed to generate runtime classes
permission java.lang.RuntimePermission "createClassLoader";
// expression runtime
permission org.elasticsearch.script.ClassPermission "java.lang.String";
permission org.elasticsearch.script.ClassPermission "org.apache.lucene.expressions.Expression";
permission org.elasticsearch.script.ClassPermission "org.apache.lucene.search.DoubleValues";
// available functions
permission org.elasticsearch.script.ClassPermission "java.lang.Math";
permission org.elasticsearch.script.ClassPermission "org.apache.lucene.util.MathUtil";
permission org.elasticsearch.script.ClassPermission "org.apache.lucene.util.SloppyMath";
};