Giter Club home page Giter Club logo

elasticsearch-consul-discovery's People

Contributors

bsvingen avatar claytonsilva avatar grantr avatar jigarjoshi avatar jvia avatar mtougeron avatar vvanholl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

elasticsearch-consul-discovery's Issues

5.5.0 tag/release incorrect

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 ๐Ÿ˜‰

elastic 7.2.0

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)

does 6.2.4.0 work

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 ๐Ÿ˜„

deef31ca4293e577d9d9f15b8fddbb5156a214c8 was a breaking change

@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

Elastic 7.x

Any plans to make releases for Elastic 7?

Is this really working for ES 5.2.0?

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]

6.2.4 Asset missing

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?

ipv6 only doesn't work

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.