欢迎您光临本小站。希望您在这里可以找到自己想要的信息。。。

elasticsearch plugin插件权限解决总结

java water 171℃ 0评论

主要是两个文件

1.# Fix for security permission error
cat /home/elasticsearch/.java.policy
grant {
  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};
终极方案

2.plugin-security.policy (修改权限)
内容如下

grant {
  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
  permission java.lang.RuntimePermission "createSecurityManager";
  permission java.lang.RuntimePermission "accessDeclaredMembers";
  permission java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
   permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";

   permission java.util.PropertyPermission "*", "read,write";

   permission javax.security.auth.AuthPermission "getSubject";
   permission javax.security.auth.AuthPermission "modifyPrincipals";
   permission javax.security.auth.AuthPermission "getLoginConfiguration";

   permission java.lang.RuntimePermission "createClassLoader";
   permission java.lang.RuntimePermission "getClassLoader";
   permission java.lang.RuntimePermission "setContextClassLoader";
   permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
   permission java.lang.RuntimePermission "accessClassInPackage.sun.nio.ch";
   permission java.lang.RuntimePermission "accessDeclaredMembers";
   permission java.lang.RuntimePermission "loadLibrary.jaas_unix";
   permission java.lang.RuntimePermission "shutdownHooks";
   permission java.lang.RuntimePermission "createSecurityManager";
   permission java.lang.RuntimePermission "closeClassLoader";

};

转载请注明:学时网 » elasticsearch plugin插件权限解决总结

喜欢 (0)or分享 (0)

您必须 登录 才能发表评论!