Skip to content

Commit

Permalink
Config Change for ES 6
Browse files Browse the repository at this point in the history
I was trying to run this and it kept failing with this error:
"org.elasticsearch.bootstrap.StartupException:
java.lang.IllegalArgumentException: Unknown discovery type [consul]".
I started working back through the elasticsearch versions and
when I got to 5.6.7 it threw this error: "[WARN
][o.e.d.p.d.ConsulDiscoveryPlugin] Using discovery.type setting to set
hosts provider is deprecated. Set "discovery.zen.hosts_provider: consul"
instead"  Once I set that instead of discovery.type 6.2.1 started up
with this message which I used to know it loaded the plugin: "[INFO
][o.e.p.d.ConsulDiscoveryPlugin] Starting Consul discovery plugin"
  • Loading branch information
Will Soula committed Feb 16, 2018
1 parent 9343e50 commit 4fb0158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The plugin zip archive will be under build/distributions/

```
discovery:
type: consul
discovery.zen.hosts_provider: consul
consul:
service-names: ["CONSUL_SERVICE_NAME1", "CONSUL_SERVICE_NAME2"]
healthy: true
Expand Down

0 comments on commit 4fb0158

Please sign in to comment.