MySQL数据库下载_ELASTEM是什么

MySQL数据库下载_ELASTEM是什么1、安装配置2、安装遇到的问题2.1、警告:[2019-07-09T06:53:29,541][WARN][o.e.b.JNANatives][node1]unabletoinstallsyscallfilter:ja

1、安装配置

 

2、安装遇到的问题

2.1、警告:

[2019-07-09T06:53:29,541][WARN ][o.e.b.JNANatives ] [node1] unable to install syscall filter: java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed

解决方法:

bootstrap.system_call_filter: false bootstrap.memory_lock: true #防止es内存被交换出去

2.2、报错:

[1]: max number of threads [2048] for user [es] is too low, increase to at least [4096]

解决方法:

ulimit -a 查看 vim /etc/security/limits.conf 在最后添加:*代表所有用户 hadoop soft nofile 65536 hadoop hard nofile  hadoop soft nproc 4096 hadoop hard nproc 4096

2.3、如果报错

[2]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk 

加入

bootstrap.memory_lock: false

3、配置安全

bin/elasticsearch-setup-passwords interactive

需要开启:

xpack.security.enabled: true xpack.security.transport.ssl.enabled: true

然后启动其他节点报错:

send message failed [channel: Netty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:56339, remoteAddress=/192.168.88.131:9300}] javax.net.ssl.SSLException: Received fatal alert: handshake_failure 

生成证书:

bin/elasticsearch-certutil ca bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12

 

xpack.security.transport.ssl.enabled: true xpack.security.transport.ssl.verification_mode: certificate xpack.security.transport.ssl.keystore.path: certs/elastic-certificates.p12 xpack.security.transport.ssl.truststore.path: certs/elastic-certificates.p12

在java.policy

grant{}中的最后一行加上:permission java.security.AllPermission; 因为给了所有权限 这样不对,还会报错 [1]: granting the all permission effectively disables security

加入到keystore

bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password

 

Caused by: java.security.AccessControlException: access denied (“java.io.FilePermission” “/opt/elasticsearch-7.2.0/elastic-certificates.p12” “read”)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472) ~[?:1.8.0_191]

在java.policy加入:

 permission java.io.FilePermission "/opt/elasticsearch-7.2.0", "read"; permission java.io.FilePermission "-", "read"; 

各个节点都配置

elasticsearch7.2

https://www.elastic.co/guide/en/elasticsearch/reference/7.2/configuring-tls.html#node-certificates

 

今天的文章
MySQL数据库下载_ELASTEM是什么分享到此就结束了,感谢您的阅读。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/60171.html

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注