首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:无法成功连接到ElasticSearch。检查您的群集状态是否为红色,以及ElasticSearch是否正常运行

错误:无法成功连接到ElasticSearch。检查您的群集状态是否为红色,以及ElasticSearch是否正常运行
EN

Stack Overflow用户
提问于 2014-08-30 19:37:23
回答 2查看 9.5K关注 0票数 7

我已经参考了Setup a graylog2 server with elasticsearch in a vagrant machine,并且我有正确的ElasticSearch版本。

我还根据tutorial为Graylog2和ElasticSearch添加了正确的选项。

代码语言:javascript
复制
ERROR: Could not successfully connect to ElasticSearch. Check that your cluster state is not RED and that ElasticSearch is running properly.

Need help?

* Official documentation: http://support.torch.sh/help/kb
* Mailing list: http://support.torch.sh/help/kb/general/forums-mailing-list
* Issue tracker: http://support.torch.sh/help/kb/general/issue-trackers
* Commercial support: http://www.torch.sh/

But we also got some specific help pages that might help you in this case:

* http://support.torch.sh/help/kb/graylog2-server/configuring-and-tuning-elasticsearch-for-graylog2-v0200

Terminating. :(

当我运行以下命令时,仍然会遇到这个错误:

代码语言:javascript
复制
sudo java -jar /opt/graylog2-server/graylog2-server.jar --debug

我还检查了ElasticSearch是否正常运行-

代码语言:javascript
复制
central@central:~$ curl -XGET 'http://127.0.0.1:9200/_cluster/health?pretty=true'
{
  "cluster_name" : "graylog2",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 0,
  "active_shards" : 0,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0
}

对我应该做什么有什么建议吗?我不明白问题出在哪里。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-08-30 20:50:40

我让安装程序运行以下附加功能-

代码语言:javascript
复制
# /etc/elasticsearch/elasticsearch.yml
cluster.name: graylog2
node.master: true
node.data: true
bootstrap.mlockall: true
ES_HEAP_SIZE: 8192 (@ 16GB memory)
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicasts.hosts: [“127.0.0.1”, "SERVER IP"]

# /etc/graylog2.conf
elasticsearch_discovery_zen_ping_multicast_enabled = false
elasticsearch_discovery_zen_ping_unicast_hosts = IP_ARR:9300
票数 12
EN

Stack Overflow用户

发布于 2014-10-26 00:53:56

我不确定为什么A23的问题被否决了。我也无法运行graylog2-server。关键似乎是将elasticsearch_discovery_zen_ping_unicast_hosts设置为有效的IP集。

当然,在graylog文档中没有提到这是一个应该在graylog2.conf文件中更改的设置:

http://www.graylog2.org/resources/documentation/setup/server

这有点烦人。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25581940

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档