elastic安装报错:max file descriptors [4096] for elasticsearch process is too low, increase to at least

这篇具有很好参考价值的文章主要介绍了elastic安装报错:max file descriptors [4096] for elasticsearch process is too low, increase to at least。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一、现象

因为 es 不允许使用root用户安装,在使用新建的es用户安装的时候报错如下,

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

ERROR: [3] bootstrap checks failed. You must address the points described in the following [3] lines before starting Elasticsearch.
bootstrap check failure [1] of [3]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
bootstrap check failure [2] of [3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
bootstrap check failure [3] of [3]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, clust

二、解决办法

将当前用户的软硬限制调大。找到文件 /etc/security/limits.conf,编辑,在文件的最后追加如下配置:

es soft nofile 65535
es hard nofile 65537

elastic安装报错:max file descriptors [4096] for elasticsearch process is too low, increase to at least,随手笔记,elasticsearch,大数据,big data 

说明: soft nofile表示软限制,hard nofile表示硬限制。两行语句表示,es用户的软限制为65535,硬限制为65537,即表示es用户能打开的最大文件数量为65537,不管它开启多少个shell。文章来源地址https://www.toymoban.com/news/detail-515962.html

到了这里,关于elastic安装报错:max file descriptors [4096] for elasticsearch process is too low, increase to at least的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory

    docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory 1.报错日志 library initialization failed - unable to allocate file descriptor table - out of memory/cm-server/aiboxCloud-web/boot/entrypoint.sh: line 2: 6 Aborted (core dumped) java -Xms1024m -Xmx2048m -jar -XX:+PrintGCDateStamps -XX:+PrintGCDetai

    2024年02月11日
    浏览(50)
  • IDEA中Maven报错:Failed to read artifact descriptor for解决方案

    导入spark-core依赖报错 Failed to read artifact descriptor for com.esotericsoftware:kryo-shaded:jar: 图片忘记报错了,拿一张网友的图,现象是spark-core成功导入,但是pom文件中project处报错 这个原因是因为maven版本不匹配,咱也不知道为啥不匹配,改日再研究,今天着急下班 解决方法: 1、 打开

    2024年02月05日
    浏览(44)
  • ElasticSearch插件plugin ik分词器,报错plugin-descriptor.properties

    @ES日志中报错plugin-descriptor.properties NoSuchFileException 找不到这个文件plugin-descriptor.properties。 ` 如下图所示,下载的zip文件解压之后的情况,这里是不能放到elasticsearch的plugins中的。 分析:由于是java开发的分词器,这里很明显是maven项目的目录结构。所以要执行打包命令,生成

    2024年02月11日
    浏览(28)
  • ES已经安装了ik分词器,仍然报错analyzer [ik_max_word] not found for field

    问题:在ES中创建索引,但是无法设置mapping,出现如下错误 analyzer [ik_max_word] not found for field 1.如果未安装ik分词器,先安装ik分词器 2.如果已安装ik分词器。 解决:如果你的多个节点的集群,那么需要在集群的每个实例上都要安装Ik。

    2024年02月16日
    浏览(25)
  • elasticsearch | Exception in thread “main“ java.nio.file.NoSuchFileException: /usr/share/elastics

    使用 docker-compose 启动 elasticsearch 时,出现无法访问,如下图: 使用如下命令查看 一直处于重启状态。 使用命令查看日志 缺少 jvm.options 文件 解决: 将 docker-compose.yml 中挂载的数据卷 ( volumes ) 及其子项注释 : 然后使用命令重启 elasticsearch 将需要的文件从容器中拷出到宿主机

    2024年02月13日
    浏览(41)
  • npm run dev运行出现NODE_OPTIONS=--max_old_space_size=4096 vite --mode dev --host?

    PS E:AWorkDataeaseDataEasecorecore-frontend npm run dev dataease@0.0.0 dev NODE_OPTIONS=–max_old_space_size=4096 vite --mode dev --host 0.0.0.0 ‘NODE_OPTIONS’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。 遇到 \\\'NODE_OPTIONS\\\' 不是内部或外部命令,也不是可运行的程序或批处理文件。 的问题,

    2024年02月20日
    浏览(41)
  • docker安装elasticsearch报错 main ERROR No Log4j 2 configuration file found. Using default configuration

    Exception in thread \\\"main\\\" ElasticsearchParseException[malformed, expected settings to start with \\\'object\\\', instead was [VALUE_STRING]] 报错信息 2023-04-06 15:40:50,427 main ERROR No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property \\\'lo

    2024年02月07日
    浏览(44)
  • elasticsearch&elastic-head docker安装

    Elasticsearch8.7.1 安装 拉取镜像 创建elastic 网络 执行创建 注意log中的elastic 用户密码 重置密码:docker exec -it esA /usr/share/elasticsearch/bin/elasticsearch-reset-password 4. 查看结果 拷贝证书到当前文件夹 访问9200 elasticsearch-head 安装 拉取镜像 执行创建 访问9100 elasticsearch-head 无法连接elasti

    2024年02月06日
    浏览(33)
  • Elasticsearch报错:search.max_async_search_response_size

    Elasticsearch报错: Can\\\'t store an async search response larger than [10485760] bytes. This limit can be set by changing the [search.max_async_search_response_size] setting. 导致上述问题的原因是,ES默认response的大小是10mb,而返回的值超过了,解决方案,在confgi/下面找到elasticsearch.yml,如果elasticsearch.yml没有定义

    2024年02月11日
    浏览(59)
  • Elasticsearch:如何使用自定义的证书安装 Elastic Stack 8.x

    在我之前的文章 “如何在 Linux,MacOS 及 Windows 上进行安装 Elasticsearch”,我详细描述了如何在各个平台中安装 Elastic Stack 8.x。在其中的文章中,我们大多采用默认的证书来安装 Elasticsearch。在今天的文章中,我们用自己创建的证书一步一步地来安装 Elastic Stack 8.x。我们可以参

    2024年02月08日
    浏览(28)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包