一、现象

使用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异常解决相关推荐

  1. org.elasticsearch.discovery.MasterNotDiscoveredException异常解决

    org.elasticsearch.discovery.MasterNotDiscoveredException异常解决 问题 解决 discovery.seed_hosts cluster.init ...

  2. 【IDEA】IDEA报错 illegal character U+00A0异常解决

    1. 解决方案 原因是你拷贝的的代码,空格跟空格也是不一样的,分类如下 \u00A0:不间断空格,主要用在office中,让一个单词在结尾处不会换行显示 \u0020:半角空格(英文符号),代码中常用 ...

  3. eclipse找不到java方法,Linux启动eclipse报错找不到java环境解决方法

    在Linux mint下,前几天还用得很好的的eclipse,今天开机不知为什么这样. Eclipse 3.6 在 linux mint 12 可以在终端顺利启动Eclipse,但是鼠标双击,或者用起 ...

  4. 继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错? springboot 两种方式稳定解决跨域问题

    继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错???springboot 两种方式稳定解决跨域问题! 之前我写了一篇文章,来解决CORS报错 ...

  5. 【笔记】虚拟机用Xshell登陆报错“ssh服务器拒绝了密码”解决方法

    [笔记]虚拟机用Xshell登陆报错"ssh服务器拒绝了密码"解决方法 参考文章: (1)[笔记]虚拟机用Xshell登陆报错"ssh服务器拒绝了密码"解决方法 ...

  6. eclipse中同步代码PULL报错checkout conflict with files的解决方法

    eclipse中同步代码PULL报错checkout conflict with files的解决方法 参考文章: (1)eclipse中同步代码PULL报错checkout conflict wit ...

  7. linux yum install libsdl-dev 报错:No package libsdl-dev available 解决方法

    执行 $ yum install libsdl-dev 报错:No package libsdl-dev available. 解决办法: $ yum search sdl | grep devel ...

  8. 手机系统安装打印机服务器错误代码,OKI打印机报错?各型号代码故障解决方法...

    原标题:OKI打印机报错?各型号代码故障解决方法 这一期干货贴邀请大家一起看看OKI打印机常见报错代码↓↓↓ 1.报错代码 610/611/612/613 黄色/品红色/青色/黑色碳粉盒未安装 产生原 ...

  9. VSCode内npm run build编译打包时候报错:code ELIFECYCLE - (已解决)

    文章目录 win10系统使用VSCode打包项目进行build编译的时候,报错:Module build failed: Error: "extract-text-webpack-plugi ...

最新文章

  1. 华农软件工程实验报告_华南农业大学15年软件工程复习提纲
  2. cutterman 导出html,电脑中如何使用cutterman插件
  3. Python基础——数据分析考核(基础版本)
  4. JDK动态代理底层剖析
  5. “忘恩负义”的浪胃仙,是个真狠人!
  6. webpack入门1
  7. PHPCMS怎么创建单选按钮、复选框,并在模板里怎么接收和调用。
  8. 自动控制理论 第一章 思维导图
  9. freemarker导出word文档中的复选框打钩功能
  10. uc_pass.php,discuz 论坛UCenter无法登录,闪退的终极8种解决办法
  11. 服务器pe安装win7系统安装教程,pe安装win7原版镜像系统教程
  12. python开发抢票软件_python自动抢票神器
  13. 网上申请办理杭州市民卡
  14. 宝塔面板linux账号密码忘记,宝塔面板忘记账号或密码的解决办法
  15. 使用FDDB人脸样本检测库,测试自己的人脸检测算法性能并生成ROC曲线。
  16. C# WPF窗体+WCF实现五子棋
  17. ps笔刷管理扩展面板:Brusherator for Mac
  18. 喜讯 | 南京南方电讯有限公司荣膺“2021中国年度优选雇主”称号
  19. 苹果截屏快捷键_苹果12将在10月上市,介绍下苹果手机便捷的实用技巧,
  20. Java解析eml邮件格式文件

热门文章

  1. Lua 公历转农历以及24节气计算
  2. iOS 免越狱修改微信运动步数
  3. sqli-lbs:Less-5~10通关详解
  4. CSS选择器的优先级的相关介绍
  5. 视频中的音频提取如何操作?一分钟教会你
  6. android相机权限xml,Android相机权限检测兼容问题
  7. 多任务学习——【ICML 2018】GradNorm
  8. css浮动,清除浮动,溢出属性,定位,设置透明度
  9. (Tiled官方文档翻译)第三节:Tile Layers的编辑
  10. CAD如何输入指定角度的直线、AUTOCAD——渐变填充