vvanholl / elasticsearch-consul-discovery Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bdclark/elasticsearch-consul-discovery
Consul based node discovery plugin for Elasticsearch
License: Other
This project forked from bdclark/elasticsearch-consul-discovery
Consul based node discovery plugin for Elasticsearch
License: Other
The 5.5.0 release tag is pointing to commit 5d0b87d which is the update to version 5.4.3 This makes it hard to build the correct version in CI ๐
Hey first thank you for the plugin!
I wonder if it works on elastic 7.2.0 since this:
[root@esdev001 bin]# ./elasticsearch-plugin install -v file:///usr/share/elasticsearch/bin/esconsul.zip
-> Downloading file:///usr/share/elasticsearch/bin/esconsul.zip
Retrieving zip from file:///usr/share/elasticsearch/bin/esconsul.zip
[=================================================] 100%
Exception in thread "main" java.lang.IllegalArgumentException: Unknown properties in plugin descriptor: [jvm, site]
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:233)
at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:714)
at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:793)
at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:776)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:231)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)
Since this is the de-facto canonical version now, would you mind unforking it? (that'll make it more obvious to people that this is the place to be).
You can simply email Github and ask them to unfork.
I've also added this issue: https://github.com/lithiumtech/elasticsearch-consul-discovery/pull/19
Hi
thanks for making this great repo, just wondering does this work for es6.2.4
discovery:
zen.hosts_provider: consul
consul:
service-names: [ "elasticsearch" ]
healthy: true
I also get this warning while i'm installing the plugin
vagrant@ubuntu-xenial:/usr/share/elasticsearch$ sudo ./bin/elasticsearch-plugin install -b https://distfiles.compuscene.net/elasticsearch/elasticsearch-consul-discovery-6.2.4.0.zip
-> Downloading https://distfiles.compuscene.net/elasticsearch/elasticsearch-consul-discovery-6.2.4.0.zip
[=================================================] 100%ย ย
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.net.SocketPermission * connect,resolve
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
-> Installed consul-discovery
i have two node, but my cluster don't seem to join ๐
Would be better to use github as the source:
https://github.com/vvanholl/elasticsearch-consul-discovery/releases/download/6.3.0.1/elasticsearch-consul-discovery-6.3.0.1.zip
Instead of the current url, under a to most unknown hostname (distfiles.compuscene.net).
@claytonsilva broke defaults with commit: deef31c
broke default behavior because the URL scheme has been removed. If I don't specify CONSUL_LOCALWSHOST
I get the following exception:
[2017-08-23T08:46:52,515][ERROR][o.e.d.c.ConsulUnicastHostsProvider] [client_2863a7f8-98e8-b13d-d565-74c1432d8e65_worker007_zone1] Failed to discover nodes, failed in making consul based discovery
java.net.MalformedURLException: unknown protocol: localhost
Any plans to make releases for Elastic 7?
Hi Vincent.
First, let me thank you for your efforts, really appreciate your work.
Recently I've been trying to build ES cluster using this plugin. Unfortunately couldn't make it work.
I have 3 ES servers with config:
---
cluster.name: svc-local
node.name: esXX-el7
path.conf: "/etc/elasticsearch"
path.data: "/var/lib/elasticsearch"
path.logs: "/var/log/elasticsearch"
network.host: _site_,_local_
discovery.zen.minimum_master_nodes: 2
discovery.consul.service-names:
- svc-elasticsearch-local
During startup, these nodes seem to not use consul discovery at all. Here is the log:
[2017-02-16T12:15:39,421][INFO ][o.e.n.Node ] [es01-el7] initialized
[2017-02-16T12:15:39,421][INFO ][o.e.n.Node ] [es01-el7] starting ...
[2017-02-16T12:15:39,588][INFO ][o.e.t.TransportService ] [es01-el7] publish_address {10.123.44.217:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}, {10.123.44.217:9300}
[2017-02-16T12:15:39,596][INFO ][o.e.b.BootstrapChecks ] [es01-el7] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-02-16T12:16:09,622][WARN ][o.e.n.Node ] [es01-el7] timed out while waiting for initial discovery state - timeout: 30s
[2017-02-16T12:16:09,633][INFO ][o.e.h.HttpServer ] [es01-el7] publish_address {10.123.44.217:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}, {10.123.44.217:9200}
[2017-02-16T12:16:09,633][INFO ][o.e.n.Node ] [es01-el7] started
[2017-02-16T12:16:10,449][DEBUG][o.e.a.a.c.s.TransportClusterStateAction] [es01-el7] no known master node, scheduling a retry
[2017-02-16T12:16:20,112][DEBUG][o.e.a.a.c.h.TransportClusterHealthAction] [es01-el7] no known master node, scheduling a retry
[2017-02-16T12:16:30,109][DEBUG][o.e.a.a.c.s.TransportClusterStateAction] [es01-el7] no known master node, scheduling a retry
[2017-02-16T12:16:40,124][DEBUG][o.e.a.a.c.h.TransportClusterHealthAction] [es01-el7] no known master node, scheduling a retry
[2017-02-16T12:16:40,451][DEBUG][o.e.a.a.c.s.TransportClusterStateAction] [es01-el7] timed out while retrying [cluster:monitor/state] after failure (timeout [30s])
[2017-02-16T12:16:40,452][WARN ][r.suppressed ] path: /_cat/master, params: {}
org.elasticsearch.discovery.MasterNotDiscoveredException: null
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$4.onTimeout(TransportMasterNodeAction.java:211) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:307) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:237) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.service.ClusterService$NotifyTimeout.run(ClusterService.java:1157) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:527) [elasticsearch-5.2.0.jar:5.2.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
[2017-02-16T12:16:50,113][DEBUG][o.e.a.a.c.h.TransportClusterHealthAction] [es01-el7] timed out while retrying [cluster:monitor/health] after failure (timeout [30s])
[2017-02-16T12:16:50,114][WARN ][r.suppressed ] path: /_cluster/health, params: {level=indices}
org.elasticsearch.discovery.MasterNotDiscoveredException: null
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$4.onTimeout(TransportMasterNodeAction.java:211) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:307) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:237) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.service.ClusterService$NotifyTimeout.run(ClusterService.java:1157) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:527) [elasticsearch-5.2.0.jar:5.2.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
[2017-02-16T12:16:50,119][DEBUG][o.e.a.a.c.s.TransportClusterStateAction] [es01-el7] no known master node, scheduling a retry
[2017-02-16T12:17:00,110][DEBUG][o.e.a.a.c.s.TransportClusterStateAction] [es01-el7] timed out while retrying [cluster:monitor/state] after failure (timeout [30s])
[2017-02-16T12:17:00,111][WARN ][r.suppressed ] path: /_cat/master, params: {}
org.elasticsearch.discovery.MasterNotDiscoveredException: null
at org.elasticsearch.action.support.master.TransportMasterNodeAction$AsyncSingleAction$4.onTimeout(TransportMasterNodeAction.java:211) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:307) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:237) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.cluster.service.ClusterService$NotifyTimeout.run(ClusterService.java:1157) [elasticsearch-5.2.0.jar:5.2.0]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:527) [elasticsearch-5.2.0.jar:5.2.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
Hi, first of thanks for maintaining this, it's very much appreciated! One issue: the latest release is missing the actual asset: elasticsearch-consul-discovery-6.2.4.0.zip
Any chance you can attach it to the release?
Hi Vincent,
Do you plan to add change that consul can be queried not only from local?
Thanks,
Bratislav
Hi!
I have ipv6 only in my network. elasticsearch-consul-discovery doesn't work in my network. I fixed this issue in my PR #15
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.