栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

elasticsearch 集群配置

elasticsearch 集群配置

安装包下载地址:下载中心 - Elastic 中文社区

系统级配置:

使用root登录,配置limits.conf

vi /etc/security/limits.conf

然后添加如下内容: 注意*不要去掉了

* soft nofile 65536
* hard nofile 131072
注:* 代表Linux所有用户名称(比如 hadoop)

需要保存、退出、重新登录才可生效。

使用root登录,配置sysctl.conf,配置对应的虚拟内存大小

vi /etc/sysctl.conf
vm.max_map_count=655360

然后执行:sysctl -p,刷新配置信息

jvm.options配置最大可使用内存:

-Xms8g
-Xmx8g

elasticsearch.conf配置

集群配置
cluster.name: dengta-information
node.name: node-1
network.host: 192.168.2.47
http.port: 9200
cluster.initial_master_nodes: ["node-1"]
#用户密码输入配置
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true

启动es服务

./elasticsearch -d

密码配置:

$ ./bin/elasticsearch-setup-passwords interactive

You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N] y 
Enter password for [elastic]: 
Reenter password for [elastic]: 
Enter password for [apm_system]: 
Reenter password for [apm_system]: 
Enter password for [kibana]: 
Reenter password for [kibana]: 
Enter password for [logstash_system]: 
Reenter password for [logstash_system]: 
Enter password for [beats_system]: 
Reenter password for [beats_system]: 
Enter password for [remote_monitoring_user]: 
Reenter password for [remote_monitoring_user]: 

安装创建问题:ElasticSearch在linux上安装部署 - socket强 - 博客园

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/742861.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号