Unable to create elasticsearch index from neo4j

梦想的初衷 提交于 2019-12-06 14:26:40

As this is one of the very few page that appears when you search Google for this string, I wanted to post a clear (one that J. Dimeo's answer above alludes to, but is far from specific).

In your graylog config (/etc/graylog/server/server.conf for me), set elasticsearch_discovery_enabled to false, and resart the service.

That's it :)

Are you using AWS ElasticSearch? They do not allow connecting to individual nodes. I read elsewhere (from the AWS team): "Looking over the logs, it seems that 'i.s.c.config.discovery.NodeChecker' is trying to auto discover and connect to the individual nodes of the cluster. Amazon is continuously working hard on improving the service features but unfortunately, at this moment AWS doesn't allow clients to connect to the individual nodes of the cluster. Instead, you can connect using the URL"

You need to turn off node discovery in the Jest client somehow: ClientConfig clientConfig = new ClientConfig.Builder("http://localhost:9200").discoveryEnabled(false)

See https://github.com/searchbox-io/Jest/blob/master/jest/README.md#node-discovery-through-nodes-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!