我在两个月前通过brew install
在OSX(Mavericks)上设置了Elasticsearch,事情进展顺利。
然后我转移到另一个项目,运行brew update
一次。当前的elasticsearch版本为elasticsearch: 1.2.0
当我将elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
作为brew info
建议运行时,服务正按预期启动:
[2014-05-26 14:26:15,916][INFO ][node ] [Red Nine] version[1.2.0], pid[10747], build[c82387f/2014-05-22T12:49:13Z]
[2014-05-26 14:26:15,916][INFO ][node ] [Red Nine] initializing ...
[2014-05-26 14:26:15,921][INFO ][plugins ] [Red Nine] loaded [], sites []
[2014-05-26 14:26:17,947][INFO ][node ] [Red Nine] initialized
[2014-05-26 14:26:17,947][INFO ][node ] [Red Nine] starting ...
[2014-05-26 14:26:18,039][INFO ][transport ] [Red Nine] bound_address {inet[/127.0.0.1:9300]}, publish_address {inet[/127.0.0.1:9300]}
[2014-05-26 14:26:21,070][INFO ][cluster.service ] [Red Nine] new_master [Red Nine][EytfiY9TRtmihwuNF9SieQ][geckos-mbp][inet[/127.0.0.1:9300]], reason: zen-disco-join (elected_as_master)
[2014-05-26 14:26:21,093][INFO ][discovery ] [Red Nine] elasticsearch_Gecko/EytfiY9TRtmihwuNF9SieQ
[2014-05-26 14:26:21,105][INFO ][http ] [Red Nine] bound_address {inet[/127.0.0.1:9200]}, publish_address {inet[/127.0.0.1:9200]}
[2014-05-26 14:26:21,115][INFO ][gateway ] [Red Nine] recovered [0] indices into cluster_state
[2014-05-26 14:26:21,115][INFO ][node ] [Red Nine] started
但是当我尝试curl -XGET http://localhost:9200
时,它会回复503错误。
日志中曾经有过WARN,但启动日志很好,如上所示:
[2014-05-26 13:04:22,192][WARN ][cluster.metadata ] [Balder] [video_interviews_development_20140310134134379] re-syncing mappings with cluster state for types [[video_interview]]
[2014-05-26 13:04:22,193][WARN ][cluster.metadata ] [Balder] [sections_development_20140310134135051] re-syncing mappings with cluster state for types [[section]]
[2014-05-26 13:04:22,193][WARN ][cluster.metadata ] [Balder] [announcements_development_20140310134133810] re-syncing mappings with cluster state for types [[announcement]]
[2014-05-26 13:04:22,193][WARN ][cluster.metadata ] [Balder] [articles_development_20140310134134125] re-syncing mappings with cluster state for types [[article]]
[2014-05-26 13:04:22,193][WARN ][cluster.metadata ] [Balder] [courses_development_20140310134134846] re-syncing mappings with cluster state for types [[course]]
有人可以帮忙吗?谢谢:)这是冲洗所有数据,因为只有我的本地环境有这个问题。
brew remove elasticsearch
并重新安装,无法正常工作答案 0 :(得分:2)
问题解决了。
我使用的代理服务导致503错误,将其关闭并且一切都很好:)