ElasticSearch7.6.2 search_phase_execution_exception

摘要:
环境:ElasticSearch 7.6.2报告此错误。首先检查索引字段的映射,然后检查ElasticSearch的后台运行日志。

 环境:ElasticSearch7.6.2  

报这个错误 先看看索引字段 的mapping,然后查看 ElasticSearch 后台运行日志。

如果报这个错误 

bug Trying to create too many buckets. Must be less than or equal to: [10000] but was [10001]. This limit can be set by changing the [search.max_buckets] cluster level setting.

这是6.x版本才有的特性,目的:限制大批量聚合操作,规避性能风险。
解决方案:setting里设置:search.max_buckets 

 curl方式 :

curl --user 用户名:密码  -XPUT 'http://192.168.0.7:9200/_cluster/settings' -H 'Content-Type: application/json' -d'{"persistent": { "search.max_buckets": 217483647}}'

免责声明:文章转载自《ElasticSearch7.6.2 search_phase_execution_exception》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇sqlServer:convert()函数【学习】Python进行数据提取的方法总结【转载】下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Linux安装Elasticsearch-head插件

首先需要下载以下内容:   我试验的对应版本:ES:elasticsearch-6.6.1.tar.gz  Node:node-v10.15.3-linux-x64.tar  JDK:jdk-8u201-linux-x64.tar.gz   1. node-v10.15.3-linux-x64.tar 下载地址:https://nodejs.org/en/...

elasticsearch版本不同,批量查询也不相同

网上搜到批量查询可以通过TransportClient实现,但官方推荐使用RestHighLevelClient实现 注意: We plan on deprecating the TransportClient in Elasticsearch 7.0 and removing it completely in 8.0. Instead, you shou...

Windows-ElasticSearch安装与启动

步骤一:下载ES压缩包   ElasticSearch分为Linux和Window版本,基于我们主要学习的是ElasticSearch的Java客户端的使用,所以我们课程中使用的是安装较为简便的Window版本,项目上线后,公司的运维人员会安装Linux版的ES供我们连接使用。   ElasticSearch的官方地址: https://www.elast...

ES之七:elasticsearch之Index Aliases

别名解决了哪些问题? 在开发中,随着业务需求的迭代,较老的业务逻辑就要面临更新甚至是重构,而对于es来说,为了适应新的业务逻辑,可能就要对原有的索引做一些修改,比如对某些字段做调整,甚至是重建索引。而做这些操作的时候,可能会对业务造成影响,甚至是停机调整等问题。由此,es提供了索引别名来解决这些问题。索引别名就像一个快捷方式或是软连接,可以指向一个或多个索...

多种方式安装GitLabRunner

1. 使用GItLab官方仓库安装 Add GitLab’s official repository: 添加官方仓库 # For Debian/Ubuntu/Mint curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | s...

x-pack本地安装方式

一.首先下载本地安装包,我使用的ELK是5.6.1版本: https://artifacts.elastic.co/downloads 二.进入到elasticsearch/bin(所有节点)和kibana/bin安装x-pack:(都是非root) bin/elasticsearch-plugin install file:///绝对路径/x-pack....