elasticsearch-plugin install x-pack error

先记录,会有什么问题呢?

[linjinyu@localhost bin]$ ./elasticsearch-plugin install file:///mnt1t/__elasticsearch__/x-pack-6.1.1.zip 
-> Downloading file:///mnt1t/__elasticsearch__/x-pack-6.1.1.zip
[=================================================] 100%   
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.io.FilePermission \\.\pipe\* read,write
* java.lang.RuntimePermission accessClassInPackage.com.sun.activation.registries
* java.lang.RuntimePermission getClassLoader
* java.lang.RuntimePermission setContextClassLoader
* java.lang.RuntimePermission setFactory
* java.net.SocketPermission * connect,accept,resolve
* java.security.SecurityPermission createPolicy.JavaPolicy
* java.security.SecurityPermission getPolicy
* java.security.SecurityPermission putProviderProperty.BC
* java.security.SecurityPermission setPolicy
* java.util.PropertyPermission * read,write
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@        WARNING: plugin forks a native controller        @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
This plugin launches a native controller that is not subject to the Java
security manager nor to system call filters.

Continue with installation? [y/N]y
-> Installed x-pack

坑真来了

WARNING: plugin requires additional permissions

配置java相关权限上述操作提示即为需添加下述配置
添加下述配置至 , 以centos7为例

  • oraclejdk
/usr/java/jdk1.8.0_131/jre/lib/security/java.policy
  • openjdk
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre/lib/security/java.policy
permission java.lang.RuntimePermission "accessClassInPackage.com.sun.activation.registries";
permission java.lang.RuntimePermission "getClassLoader"; 
permission java.lang.RuntimePermission "setContextClassLoader"; 
permission java.lang.RuntimePermission "setFactory"; 
permission java.security.SecurityPermission "createPolicy.JavaPolicy"; 
permission java.security.SecurityPermission "getPolicy"; 
permission java.security.SecurityPermission "putProviderProperty.BC"; 
permission java.security.SecurityPermission "setPolicy"; 
permission java.util.PropertyPermission "*","read,write"; 
permission java.util.PropertyPermission "sun.nio.ch.bugLevel","write"; 
permission javax.net.ssl.SSLPermission "setHostnameVerifier";
permission java.io.FilePermission "\\.\pipe\*","read,write";
permission java.lang.RuntimePermission "accessClassInPackage.com.sun.activation.registries";
permission java.lang.RuntimePermission "getClassLoader";
permission java.lang.RuntimePermission "setContextClassLoader";
permission java.lang.RuntimePermission "setFactory";
permission java.net.SocketPermission * "connect,accept,resolve";
permission java.security.SecurityPermission "createPolicy.JavaPolicy";
permission java.security.SecurityPermission "getPolicy";
permission java.security.SecurityPermission "putProviderProperty.BC";
permission java.security.SecurityPermission "setPolicy";
permission java.util.PropertyPermission "*","read,write";

请先后发表评论
  • 最新评论
  • 总共0条评论