[2018-09-15T00:04:42,632][ERROR][o.e.b.Bootstrap ] [PC-VISHALG] node validation exception
 bootstrap checks failed
: granting the all permission effectively disables security
I am getting this error while running ES (6.3.1) from local drive setup also. I am using JavaBuilder to run ES. On some machines, it run successfully but onothers it give above error (all machines are WIN 10).
Ryan mentioned that it is Java permission poilcy file issue. What are the permissions that ES need to start and if I can provide them to ES in Java policy file?
Something is granting the elasticsearch jar AllPermission, which defeats the purpose of using the SecurityManager. Do you manage your own environment, or does someone else? I have seen IT orgs do this granting via the system policy to "make things easy" before.
You got it right. I have .java.policy file in my user.home. How can I specify policy file during ES startup?
I tried giving using
"ES_JAVA_OPTS", "-Djava.security.policy=" + System.getProperty("java.home") + File.separator + "lib" + File.separator + "security" + File.separator + "java.policy"
but it still is having issue. If i remove .java.policy from user.home, it works fine.
It is fixed now with following (== instaed of =):
"ES_JAVA_OPTS" = "-Djava.security.policy==" + System.getProperty("java.home") + File.separator + "lib" + File.separator + "security" + File.separator + "java.policy"
I believe using == works not because of any special syntax, but because the path to the policy file then looks like it begins with = (which is of course an invalid path), and java is lax on failures there. You are effectively disabling using your system policy by using an invalid path.