FAQ04【ElastiSearch】报错:org.elasticsearch.discovery.MasterNotDiscoveredException异常解决
一、现象
使用curl报503错误,如下:
curl -XPUT 'http://bigdata01:9200/test/'
日志报错如下:
org.elasticsearch.discovery.MasterNotDiscoveredException异常
找不到Master节点!
二、解决方案
原因:应该是配置文件中缺少相关的配置,配置如下即可:
全部配置文件如下:
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: 192.168.18.100
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["192.168.18.100"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: truehttp.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: "Authorization"
FAQ04【ElastiSearch】报错:org.elasticsearch.discovery.MasterNotDiscoveredException异常解决相关推荐
- org.elasticsearch.discovery.MasterNotDiscoveredException异常解决
org.elasticsearch.discovery.MasterNotDiscoveredException异常解决 问题 解决 discovery.seed_hosts cluster.init ...
- 【IDEA】IDEA报错 illegal character U+00A0异常解决
1. 解决方案 原因是你拷贝的的代码,空格跟空格也是不一样的,分类如下 \u00A0:不间断空格,主要用在office中,让一个单词在结尾处不会换行显示 \u0020:半角空格(英文符号),代码中常用 ...
- eclipse找不到java方法,Linux启动eclipse报错找不到java环境解决方法
在Linux mint下,前几天还用得很好的的eclipse,今天开机不知为什么这样. Eclipse 3.6 在 linux mint 12 可以在终端顺利启动Eclipse,但是鼠标双击,或者用起 ...
- 继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错? springboot 两种方式稳定解决跨域问题
继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错???springboot 两种方式稳定解决跨域问题! 之前我写了一篇文章,来解决CORS报错 ...
- 【笔记】虚拟机用Xshell登陆报错“ssh服务器拒绝了密码”解决方法
[笔记]虚拟机用Xshell登陆报错"ssh服务器拒绝了密码"解决方法 参考文章: (1)[笔记]虚拟机用Xshell登陆报错"ssh服务器拒绝了密码"解决方法 ...
- eclipse中同步代码PULL报错checkout conflict with files的解决方法
eclipse中同步代码PULL报错checkout conflict with files的解决方法 参考文章: (1)eclipse中同步代码PULL报错checkout conflict wit ...
- linux yum install libsdl-dev 报错:No package libsdl-dev available 解决方法
执行 $ yum install libsdl-dev 报错:No package libsdl-dev available. 解决办法: $ yum search sdl | grep devel ...
- 手机系统安装打印机服务器错误代码,OKI打印机报错?各型号代码故障解决方法...
原标题:OKI打印机报错?各型号代码故障解决方法 这一期干货贴邀请大家一起看看OKI打印机常见报错代码↓↓↓ 1.报错代码 610/611/612/613 黄色/品红色/青色/黑色碳粉盒未安装 产生原 ...
- VSCode内npm run build编译打包时候报错:code ELIFECYCLE - (已解决)
文章目录 win10系统使用VSCode打包项目进行build编译的时候,报错:Module build failed: Error: "extract-text-webpack-plugi ...
最新文章
- 华农软件工程实验报告_华南农业大学15年软件工程复习提纲
- cutterman 导出html,电脑中如何使用cutterman插件
- Python基础——数据分析考核(基础版本)
- JDK动态代理底层剖析
- “忘恩负义”的浪胃仙,是个真狠人!
- webpack入门1
- PHPCMS怎么创建单选按钮、复选框,并在模板里怎么接收和调用。
- 自动控制理论 第一章 思维导图
- freemarker导出word文档中的复选框打钩功能
- uc_pass.php,discuz 论坛UCenter无法登录,闪退的终极8种解决办法
- 服务器pe安装win7系统安装教程,pe安装win7原版镜像系统教程
- python开发抢票软件_python自动抢票神器
- 网上申请办理杭州市民卡
- 宝塔面板linux账号密码忘记,宝塔面板忘记账号或密码的解决办法
- 使用FDDB人脸样本检测库,测试自己的人脸检测算法性能并生成ROC曲线。
- C# WPF窗体+WCF实现五子棋
- ps笔刷管理扩展面板:Brusherator for Mac
- 喜讯 | 南京南方电讯有限公司荣膺“2021中国年度优选雇主”称号
- 苹果截屏快捷键_苹果12将在10月上市,介绍下苹果手机便捷的实用技巧,
- Java解析eml邮件格式文件