Can't connect to localhost port with EtcdNettyClient in plugin code

Hi all!

I am developing a script plugin that uses a dynamic config via etcd. I am using elasticsearch 6.3.2.
However, when I run an etcd cluster locally (and verify it is actually up) on the port 2379, and I try to connect to the etcd cluster (via EtcdKeyGetRequest.send()), I see this error in the logs:

DEBUG mousio.etcd4j.transport.EtcdNettyClient - Connection failed to http://127.0.0.1:2379

I don't see any reason why the connection would fail. Is there any limitation in the plugin framework?

Please let me know if you have any insight regarding my issue.

Thanks!

Pierre

Do you have a full stacktrace error?

May be you need to adapt this: https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html#plugin-authors-jsm

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.