मैं Elasticsearch 1.3.4 चल रहा हूँ, ताजा मैक ओएस एक्स 10.10 पर स्थापित Homebrew के माध्यम से:Elasticsearch: कर्ल के माध्यम से कनेक्ट नहीं कर सकते, अजीब असंगत व्यवहार
$ brew install elasticsearch
$ elasticsearch
ब्राउज़र में http://localhost:9200/_cluster/state
रनिंग सफल होता है:
{
"cluster_name": "elasticsearch_jbrukh",
"version": 2,
"master_node": "q6Jzcza_RwaVvc_1u95O1Q",
"blocks": {},
"nodes": {
"q6Jzcza_RwaVvc_1u95O1Q": {
"name": "Ethan Edwards",
"transport_address": "inet[/127.0.0.1:9300]",
"attributes": {}
}
},
"metadata": {
"templates": {},
"indices": {}
},
"routing_table": {
"indices": {}
},
"routing_nodes": {
"unassigned": [],
"nodes": {
"q6Jzcza_RwaVvc_1u95O1Q": []
}
},
"allocations": []
}
हालांकि, निम्नलिखित कर्ल आदेश विफल रहता है:
$ curl -XGET "http://localhost:9200/_cluster/state"
curl: (7) Failed to connect to localhost port 9200: Connection refused
इसके अलावा, curl कमांड intermittently सफल होता है, लेकिन केवल उस यूआरएल ब्राउज़र से मारा जाता है, तो यह एक बार काम करता है और फिर उपर्युक्त त्रुटि के साथ फिर से विफल होने लगता है।
मैं इसे कैसे ठीक कर सकता हूं?
। मैंने पाया कि एडब्ल्यूएस पर m3.medium उदाहरण पर मेरे मुद्दों के लिए यह मामला था। सभी मुद्दों के लिए नहीं, लेकिन आप में से कुछ को बहुमूल्य समय बचा सकता है। –