No known master node問題
ES叢集重啟一個節點後,該節點無法加入叢集,報錯資訊:
[2017-02-14 14:35:31,868][ERROR][marvel.agent.exporter ] [es-06] error adding the marvel template to [[0:0:0:0:0:0:0:0]:9200] response code [503 Service Unavailable]. content: [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
[2017-02-14 14:35:31,868][ERROR][marvel.agent.exporter ] [es-06] failed to verify/upload the marvel template to [[0:0:0:0:0:0:0:0]:9200]:Server returned HTTP response code: 503 for URL:http://[0:0:0:0:0:0:0:0]:9200/_template/marvel]
修改配置檔案 elasticsearch.yml
network.host: 該節點IP
報錯資訊:
[2017-02-14 14:46:56,012][DEBUG][action.admin.indices.template.put] [es-06] observer: timeout notification from cluster service. timeout setting [30s], time since start [30s]
[2017-02-14 14:46:56,014][ERROR][marvel.agent.exporter] [ies-06] error adding the marvel template to [該節點IP:9200] response code [503 Service Unavailable]. content: [{"error":"MasterNotDiscoveredException[waited for [30s]]","status":503}]
[2017-02-14 14:46:56,014][ERROR][marvel.agent.exporter] [es-06] failed to verify/upload the marvel template to [該節點IP:9200]:Server returned HTTP response code: 503 for URL: http://該節點IP:9200/_template/marvel
[2017-02-14 14:46:56,014][ERROR][marvel.agent.exporter] [es-06] could not connect to any configured elasticsearch instances: [該節點IP:9200]
[2017-02-14 14:47:06,019][DEBUG][action.admin.indices.template.get] [es-06] no known master node, scheduling a retry
接著修改:
discovery.zen.ping.unicast.hosts: ["IP1", "IP2",...]
日誌正常:
[2017-02-14 14:49:32,032][INFO ][node] [es-06] starting ...
[2017-02-14 14:49:32,204][INFO ][transport] [es-06] bound_address {inet[/該節點IP:9300]}, publish_address {inet[/該節點IP:9300]}
[2017-02-14 14:49:32,214][INFO ][discovery ] [es-06] elasticsearch/PF6CtX38STGjc6D-******
[2017-02-14 14:50:02,215][WARN ][discovery] [es-06] waited for 30s and no initial state was set by the discovery
[2017-02-14 14:50:02,256][INFO ][http] [es-06] bound_address {inet[/該節點IP:9200]}, publish_address {inet[/該節點IP:9200]}
[2017-02-14 14:50:02,257][INFO ][node] [es-06] started
[2017-02-14 14:50:09,939][INFO ][cluster.service] [es-06] detected_master [es-08]
相關文章
- 切換分支時:pathspec master did not match any file(s) known to gitASTGit
- rn node 版本問題
- How to find Master Node in Oracle RAC(zt)ASTOracle
- Git使用gh-pages分支切換到master分支錯誤pathspec master did not match any files known to gitGitAST
- Spark Standalone模式 Master程式掛掉問題Spark模式AST
- 14-Architecture-Master-Node CommunicationAST
- k8s學習 - 概念 - master/nodeK8SAST
- node-sass和node版本不相容問題
- master and slave have equal MySQL server UUIDs問題解決ASTMySqlServerUI
- 關於MASTER=spark://SparkMaster:7077 ./spark-shell問題ASTSpark
- homebrew安裝問題(Failed during: git fetch origin master:refs/remotes/origin/master --tags --force)AIGitASTREM
- 解決Redis/Codis Connection with master lost(複製超時)問題RedisAST
- node-sass 安裝不上的問題
- MySQL Master/Slave Master/MasterMySqlAST
- 升級 node18 遇到的問題總結
- Nuxtjs node memory 記憶體溢位問題UXJS記憶體溢位
- SpringCloud問題解決:spring-cloud-eureka啟動出錯Cannot execute request on any known serverSpringGCCloudServer
- Master Exam中答案不正確的題AST
- 排查 k8s 叢集 master 節點無法正常工作的問題K8SAST
- git中出現”the requested upstream branch ‘origin/master‘ does not exist“問題的解決GitAST
- 前端跨域問題解決方案(基於node與nginx)前端跨域Nginx
- Kubernetes node的防火牆問題導致pod ip無法訪問防火牆
- ! [rejected] master -> master (fetch first)AST
- Mysql5.6 Master+MasterMySqlAST
- 說說如何利用 Node.js 代理解決跨域問題Node.js跨域
- Mac M系列晶片 vue前端node-sass相容問題解決Mac晶片Vue前端
- 使用npm i報錯node-sass失敗問題解決NPM
- Git 問題,一個 master,多個新功能分支,怎樣有序地合併和提交GitAST
- jenkins 配置為node程序不在時,自動連jenkins master伺服器JenkinsAST伺服器
- Mongodb的master-slave模式與master-master模式實驗MongoDBAST模式
- Blazor開發框架Known-V2.0.13Blazor框架
- Blazor開發框架Known-V2.0.7Blazor框架
- Blazor開發框架Known-V2.0.8Blazor框架
- 解決git 不同branch 下node_moudes不同步的問題Git
- 解決k8s中node拉取映象失敗問題K8S
- UE5 In xxx use pin no longer exists on node Get,...打包問題。
- change master 未指定master_log_fileAST
- 請教一個關於 STF 依賴的 node 與 Appium 依賴的 node 版本衝突問題APP