随笔分类 -  Elasticsearch

摘要:阿里OSS、华为OBS和MinIO都兼容S3,所以可以通过ES的S3插件将快照进行备份 1、先安装S3的插件 插件地址:https://artifacts.elastic.co/downloads/elasticsearch-plugins/repository-s3/repository-s3-7 阅读全文
posted @ 2020-08-13 17:21 缤纷世界 阅读(1969) 评论(1) 推荐(0) 编辑
摘要:1、先修改系统配置 vi /etc/sysctl.conf vm.max_map_count=262144 vi /etc/security/limits.conf * soft nproc 65536 * hard nproc 65536 * soft nofile 65536 * hard no 阅读全文
posted @ 2020-07-27 15:24 缤纷世界 阅读(2357) 评论(2) 推荐(0) 编辑
摘要:Elasticsearch配置独立的JDK Elasticsearch7.8的tar.gz包中会提供一个JDK为:openjdk version "14.0.1" 如果全局已经设置了其他版本的JDK,可以修改配置使用自带的openjdk 修改bin/elasticsearch-env内容 if [ 阅读全文
posted @ 2020-07-16 17:29 缤纷世界 阅读(1450) 评论(0) 推荐(1) 编辑
摘要:1、先修改Elasticsearch配置文件,增加如下配置 http.cors.allow-origin: "*" http.cors.enabled: true http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type 阅读全文
posted @ 2020-07-08 11:46 缤纷世界 阅读(1649) 评论(0) 推荐(0) 编辑
摘要:发现不同的地方 1、创建index (注意:7.0版本之前mappings中需要增加_doc,7.0版之后已去掉) PUT http://10.10.x.x:9200/test 2、Elasticsearch7.0版本在查询时需要增加 “track_total_hits”:true 来强制进行准确的 阅读全文
posted @ 2019-04-15 16:58 缤纷世界 阅读(3473) 评论(0) 推荐(0) 编辑
摘要:创建仓库 POST http://10.10.14.201:9200/_snapshot/backup { "type": "fs", "settings": { "compress" : "true", #启动压缩 "location": "/usr/local/elasticsearch_sna 阅读全文
posted @ 2019-01-31 09:40 缤纷世界 阅读(349) 评论(0) 推荐(0) 编辑
摘要:返回 阅读全文
posted @ 2019-01-30 15:02 缤纷世界 阅读(6483) 评论(3) 推荐(0) 编辑
摘要:常见的数据库都会提供备份的机制,以解决在数据库无法使用的情况下,可以开启新的实例,然后通过备份来恢复数据减少损失。虽然 Elasticsearch 有良好的容灾性,但由于以下原因,其依然需要备份机制。 Elasticsearch 做备份有两种方式,一是将数据导出成文本文件,比如通过 elasticd 阅读全文
posted @ 2019-01-18 11:45 缤纷世界 阅读(1972) 评论(0) 推荐(0) 编辑
摘要:创建模板(模板名和索引名一样都不能有大写) PUT http://222.108.x.x:9200/_template/templateds 写一些数据 POST http://222.108.x.x:9200/dsideal10/doc/1 POST http://222.108.x.x:9200 阅读全文
posted @ 2018-09-11 14:39 缤纷世界 阅读(4563) 评论(0) 推荐(1) 编辑
摘要:快照及恢复 更新时间:2018-07-31 17:47:13 快照及恢复 更新时间:2018-07-31 17:47:13 要备份您的阿里云Elasticsearch集群,您可以使用 snapshot API。该API会拿到您的集群当前的状态和数据,然后保存到一个共享仓库里。这个备份过程是”智能”的 阅读全文
posted @ 2018-08-23 11:11 缤纷世界 阅读(4009) 评论(0) 推荐(0) 编辑
摘要:详细Elasticsearch安装: https://www.cnblogs.com/littlehb/p/8406378.html 安装之前需先优化内核: https://www.cnblogs.com/kgdxpr/p/3342102.html 简单安装: 修改Elasticsearch的jvm 阅读全文
posted @ 2018-07-03 11:11 缤纷世界 阅读(239) 评论(0) 推荐(0) 编辑
摘要:Elasticsearch7.0版本在查询时需要增加 “track_total_hits”:true 来强制进行准确的计数,默认为 “track_total_hits”:10000, 而且返回的hits下结构也和Elasticsearch 6.x 版本的稍有不同,可能还有其他不同的地方,所以将6.x 阅读全文
posted @ 2018-04-16 15:47 缤纷世界 阅读(248) 评论(0) 推荐(0) 编辑
摘要:1、Elasticsearch 横向扩容以及容错机制http://www.bubuko.com/infodetail-2499254.html 2、HDFS容错机制详解https://www.cnblogs.com/zhangyinhua/p/7681146.html?utm_source=debu 阅读全文
posted @ 2018-03-22 10:45 缤纷世界 阅读(834) 评论(0) 推荐(0) 编辑
摘要:1、安装Elasticsearch插件repository-hdfs 下载地址:https://artifacts.elastic.co/downloads/elasticsearch-plugins/repository-hdfs/repository-hdfs-6.2.3.zip 将zip包放在 阅读全文
posted @ 2018-03-21 16:06 缤纷世界 阅读(1061) 评论(0) 推荐(0) 编辑
摘要:解决:Limit of total fields [1000] in index [nginx-access-log] has been exceeded" 的问题 PUT http://10.10.6.225:9200/cars/_settings { "settings": { "index.m 阅读全文
posted @ 2018-03-15 14:24 缤纷世界 阅读(1348) 评论(0) 推荐(0) 编辑
摘要:took:执行整个搜索请求耗费了多少毫秒。 /_search在所有的索引中搜索所有的类型/gb/_search在 gb 索引中搜索所有的类型/gb,us/_search在 gb 和 us 索引中搜索所有的文档/g*,u*/_search在任何以 g 或者 u 开头的索引中搜索所有的类型/gb/use 阅读全文
posted @ 2018-02-24 20:03 缤纷世界 阅读(155) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示