随笔分类 - elasticsearch
摘要:es单机备份我们在配置文件中指定path.repo参数,然后执行如下命令就可以备份了,但是备份集群的方式需要采用nfs将备份发起节点的备份目录(如我这里是:/home/es/esbak) 共享到其他的节点,其他节点挂载该目录后确保有读写权限,同时配置文件也要将参数path.repo都设置成一致 pa
阅读全文
摘要:es版本 [root@localhost bin]# ./elasticdump --help elasticdump: Import and export tools for elasticsearch version: 4.6.0 1.elasticdump 安装 su - root cd /o
阅读全文
摘要:安装部署elasticsearch 1.下载地址 下载地址:https://www.elastic.co/downloads/elasticsearch,我这里下载的是 elasticsearch-6.4.0.tar.gz 2.解压缩并创建数据目录 [root@localhost soft]# ta
阅读全文
摘要:环境:OS:Centos 7DB:6.5.0 192.168.1.135:19200 现有的单节点192.168.1.134:19200 准备新添加的节点 新节点(192.168.1.134)安装es 1.安装跟现有版本一致的es我这里的版本是6.5.0[root@localhost hxlmiao
阅读全文
摘要:1.在原来的机器上进行备份(我这里备份只保留2天,所以多了些处理脚本)##创建备份仓库目录curl -H "Content-Type: application/json" -XPUT http://192.168.1.136:19200/_snapshot/esbackup -d'{ "type":
阅读全文
摘要:根据现有ES版本,安装对应版本的插件 [es@hxl ~]$ cd elasticsearch[es@hxl elasticsearch]$ ./bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sq
阅读全文
摘要:1.下载 elastichd下载地址:https://github.com/360EntSecGroup-Skylar/ElasticHD/releases或是直接在linux下下载wget https://github.com/360EntSecGroup-Skylar/ElasticHD/rel
阅读全文
摘要:es参考手册地址: https://www.elastic.co/guide/en/elasticsearch/reference/6.8/indices-get-mapping.html https://www.elastic.co/guide/en/elasticsearch/reference
阅读全文
摘要:环境:es版本:6.5.0es创建好了mapping后是不允许修改字段类型的,要是我们想修改字段类型怎么办呢,我们可以采用reindex的方法实现,就是创建一个新的mapping,里面的字段类型按照新的类型定义,然后使用reindex的方法把原来的数据拷贝到新的index下面。 1.查看原来的map
阅读全文
摘要:以上同步的时候设置的副本数是0,目的是加快同步速度,同步完成后需要设置副本数,如下:curl -H "Content-Type: application/json" -XPUT 'http://192.168.1.118:9200/db_customer/_settings' -d '{ "numb
阅读全文
浙公网安备 33010602011771号