Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Elasticsearch正在运行,但无法连接到:9200端口_Ruby On Rails_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch - Fatal编程技术网 elasticsearch,Ruby On Rails,elasticsearch" /> elasticsearch,Ruby On Rails,elasticsearch" />

Ruby on rails Elasticsearch正在运行,但无法连接到:9200端口

Ruby on rails Elasticsearch正在运行,但无法连接到:9200端口,ruby-on-rails,elasticsearch,Ruby On Rails,elasticsearch,大约两个月前,我通过brew安装在OSX(Mavericks)上设置了Elasticsearch,一切正常 然后我转到另一个项目,运行brew update一次。当前elasticsearch版本为elasticsearch:1.2.0 当我按照brew info的建议运行elasticsearch--config=/usr/local/opt/elasticsearch/config/elasticsearch.yml时,服务将按预期启动: [2014-05-26 14:26:15,916][

大约两个月前,我通过
brew安装
在OSX(Mavericks)上设置了Elasticsearch,一切正常

然后我转到另一个项目,运行
brew update
一次。当前elasticsearch版本为
elasticsearch:1.2.0

当我按照
brew info
的建议运行
elasticsearch--config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
时,服务将按预期启动:

[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错误

日志中有一次警告,但启动日志良好,如上图所示:

[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]]
有人能帮忙吗?谢谢:)可以刷新所有数据,因为只有我的本地环境存在此问题

更多信息
  • 我还没有接触elasticsearch.yml文件
  • 已尝试
    brew删除elasticsearch
    并重新安装,但不起作用
    • 问题已解决


      这是我使用的代理服务导致503错误,关闭后一切正常:)

      /usr/local/ceral/elasticsearch/0.1.2/config/elasticsearch.yml-尝试配置文件的此路径-可能他们将某些内容从一个更新更改为另一个更新-始终使用特定版本one@marvwhere谢谢你的提示,我已经试过你的建议了,但遗憾的是仍然有503个错误:(