
es
zwhfyy
无
展开
-
ES7.11.1 集群环境安装--仅供参考,生产环境还没试过
echo "关闭防火墙"systemctl stop firewalld.servicesystemctl stop firewalldsystemctl disable firewalldsleep 6s#修改主机名hostnamectl set-hostname node-1#修改主机名hostnamectl set-hostname node-2#修改主机名hostnamectl set-hostname node-3n1="192.168.31.241"n2=".原创 2021-03-05 10:43:18 · 407 阅读 · 1 评论 -
cerebro es监控系统部署
解压缩,然后配置下conf目录下的application.conf# A list of known hostshosts = [ { host = "http://192.168.31.205:9200" name = "dstc-elasticsearch" } # Example of host with authentication #...原创 2019-09-06 14:00:40 · 702 阅读 · 0 评论 -
linux环境下安装使用ES
修改IP能上网sed -i 's/BOOTPROTO=.*/BOOTPROTO=static/g' /etc/sysconfig/network-scripts/ifcfg-enp0s3sed -i 's/ONBOOT=.*/ONBOOT=yes/g' /etc/sysconfig/network-scripts/ifcfg-enp0s3echo IPADDR=192.168.31.220>>/etc/sysconfig/network-scripts/ifcfg-enp0s3...原创 2021-03-01 10:12:43 · 593 阅读 · 1 评论 -
centos7.x 安装elasticsearch7.x步骤
centos7.x 安装elasticsearch7.x步骤1: 增加用户# 增加用户useradd -d /home/es -m es# 设置密码passwd es2:使用root用户上传es安装包并解压# 解压tar -zxvf elasticsearch-7.0.0-linux-x86_64.tar.gz# 修改权限信息chmod -R 777 elastics...原创 2019-04-19 17:13:25 · 2575 阅读 · 0 评论 -
Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to t
Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true.解决办法:教程上是6.0的,实际使用的是7.0的。注意:audittype有两个地方都出现了。错误的:curl -H "Content-Type: applicati...原创 2019-06-25 10:13:08 · 23598 阅读 · 2 评论 -
ES插入数据报错 [2019-08-28T16:52:00,257][INFO ][logstash.outputs.elasticsearch] retrying failed action wit
https://github.com/NLPchina/elasticsearch-sql[2019-08-28T16:52:00,257][INFO ][logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({"type"=>"cluster_block_exception", "...原创 2019-08-28 17:20:04 · 932 阅读 · 0 评论 -
es 按照日期字段,统计每天总数
SELECT count(*) FROM share_lhy_violation GROUP BY date_histogram(field='wfsj_date','interval'='1d','alias'='wfsj', 'format'='yyyy-MM-dd', 'time_zone'='+08:00', 'min_doc_count'=1,order='desc')可用间...原创 2019-08-30 13:52:50 · 9365 阅读 · 0 评论 -
es优化索引写入速度,降低安全性的前提下
原理是降低刷新频率,把同步保存改为异步,丢了自己负责。PUT /kk_gc/_settings{ "index" : { "refresh_interval" : "120s" }} PUT /kk_gc/_settings{ "index" : { "translog": { "gener...原创 2019-09-03 15:39:36 · 443 阅读 · 0 评论