随笔分类 - elasticsearch
摘要:1.查看当前的分片 [elasticsearch@localhost bin]$ curl -u elastic:elastic -X GET "192.168.1.134:19200/_cat/shards/metric_pl?v&h=shard,prirep,node,docs,store" s
阅读全文
摘要:环境:Os:Centos 6es:6.8.5jdk:jdk1.8.0_151 发现使用jdk1.8.0_361启动不了 错误描述:java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not comp
阅读全文
摘要:环境: Os:Centos 7 ES:6.5.8 1.查看当前的分片情况 [elasticsearch@host134 bin]$ curl -u elastic:elastic -X GET "192.168.1.134:19200/_cat/shards/metric_pl?v&h=shard,
阅读全文
摘要:1.search_after # -*- coding: utf-8 -*- from elasticsearch import Elasticsearch # 初始化客户端 es = Elasticsearch( hosts=["http://192.168.1.134:19200"], http
阅读全文
摘要:环境:OS:Centos 7ES:6.8.5 1.节点角色设置master节点node.master: truenode.data: falsenode.ingest: false 数据节点:node.master: falsenode.data: truenode.ingest: false 协调
阅读全文
摘要:CREATE TABLE `tb_es_thread_pool_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `host` varchar(64) DEFAULT NULL, `name` varchar(64) DEFAULT NULL, `ty
阅读全文
摘要:环境:os:Centos 7es(单机):源端6.5.0 目的端:6.8.5 说明: a.目的端在运行ES有备份的话需要全部删除,确保目的端ES备份目录只保留源端备份过来的文件 1.确定备份的路径 源端(192.168.1.136):path.repo: /home/hxl/single_elast
阅读全文
摘要:环境:OS:Centos 7es:6.8.5 1.下载安装接种下载地址如下:https://github.com/prometheus-community/elasticsearch_exporter/releases/tag/v1.9.0我这里下载的是1.9.0版本 2.安装我这里安装在es服务器
阅读全文
摘要:环境: Python:2.7.5 ES:6.8.5 [root@script]# more /script/get_es_task_id.py #!/usr/bin/env python # -*- coding: UTF-8 -*- from elasticsearch import Elasti
阅读全文
摘要:环境: OS:Centos 4 es:6.8.5 源端:3节点组成的集群 目的端:单点 说明: a.若目的端的ES已经在用并有备份的情况下,需要删除目的端的备份或是换个一个备份目录path.repo(需要重启) ,确保目的端备份目录只存储源端备份过来的文件 1.目的端需要安装好ES 安装的版本与源端
阅读全文
摘要:环境: Os:Centos 7 ES:6.8.5 Python:2.7 get_es_stats.py #!/usr/bin/env python # -*- coding: UTF-8 -*- from elasticsearch import Elasticsearch import os, j
阅读全文
摘要:查看某个index性能curl -H "Content-Type: application/json" -X GET "http://elastic:sdr123@192.168.1.69:19200/zmzs_codes_info/_stats?&pretty" 查看集群的性能curl -H "C
阅读全文
摘要:1.下载需要的安装版本我这里下载的是8.15.1,elasticsearch-8.15.1-linux-x86_64.tar.gz下载地址:https://www.elastic.co/cn/downloads/past-releases#elasticsearch 2.创建中间件安装目录和数据文件
阅读全文
摘要:环境:192.168.1.102192.168.1.103192.168.1.105 基础安装 系统配置每个机器上都要执行1.系统参数配置修改limits.conf配置文件vi /etc/security/limits.confroot用户下添加如下2两项,然后退出使用elasticsearch用户
阅读全文
摘要:环境:OS:Centos 7es:6.8.5 jdk:jdk1.8.0_361,每台机器的jdk版本必须一致 节点1:192.168.1.101节点2:192.168.1.104节点3:192.168.1.105 ######################################每个节点安
阅读全文
摘要:环境:OS:Centos 7ES:6.8.5 1.查看索引的设置curl -u elastic:123456 -XGET "http://192.168.1.69:19200/hospital_info_demo3/_settings?pretty" 2.搜索部分设置query和fetch慢查询 c
阅读全文
摘要:环境:OS:Centos 7ES:6.8.5 1.查看当前的安装的插件[root@hadoop-slave1 soft]# curl -u elastic:123456 -X GET "http://192.168.1.63:19200/_cat/plugins?v&s=component&h=na
阅读全文
摘要:1.安装插件:[root@localhost bin]# ./logstash-plugin install logstash-output-mongodbValidating logstash-output-mongodbInstalling logstash-output-mongodb 2.查
阅读全文
摘要:环境:OS:Centos 7 说明: logstash本身不自带logstash-input-mongodb插件,需要自行安装。 项目地址: https://github.com/phutchins/logstash-input-mongodb 1.安装编译工具yum install gityum
阅读全文
摘要:说明:我们这里每个表对应一个配置文件,当然也可以使用多个表使用一个配置文件(多个jdbc进行配置) 1.准备配置文件表1: [root@host135 config]# more sync_mysql2es.conf #logstash输入配置 input { #jdbc输入配置,用来指定mysql
阅读全文
浙公网安备 33010602011771号