Fix leftover node attributes usage
Previously node attributes could be set via node.* but this now requires using node.attr.*. This commit fixes some leftover usages of the old way.
This commit is contained in:
parent
656596c2a9
commit
b456823434
|
@ -49,7 +49,7 @@ import org.elasticsearch.common.settings.Settings;
|
|||
* To enable allocation awareness in this example nodes should contain a value
|
||||
* for the <tt>rack_id</tt> key like:
|
||||
* <pre>
|
||||
* node.rack_id:1
|
||||
* node.attr.rack_id:1
|
||||
* </pre>
|
||||
* <p>
|
||||
* Awareness can also be used to prevent over-allocation in the case of node or
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#
|
||||
# Add custom attributes to the node:
|
||||
#
|
||||
#node.rack: r1
|
||||
#node.attr.rack: r1
|
||||
#
|
||||
# ----------------------------------- Paths ------------------------------------
|
||||
#
|
||||
|
|
|
@ -22,7 +22,7 @@ curl localhost:9200/_nodes/10.0.0.*
|
|||
# Names
|
||||
curl localhost:9200/_nodes/node_name_goes_here
|
||||
curl localhost:9200/_nodes/node_name_goes_*
|
||||
# Attributes (set something like node.rack: 2 in the config)
|
||||
# Attributes (set something like node.attr.rack: 2 in the config)
|
||||
curl localhost:9200/_nodes/rack:2
|
||||
curl localhost:9200/_nodes/ra*:2
|
||||
curl localhost:9200/_nodes/ra*:2*
|
||||
|
|
|
@ -10,7 +10,7 @@ Elasticsearch as follows:
|
|||
|
||||
[source,sh]
|
||||
---------------------
|
||||
bin/elasticsearch --script.inline true --node.testattr test --path.repo /tmp --repositories.url.allowed_urls 'http://snapshot.*'
|
||||
bin/elasticsearch --script.inline true --node.attr.testattr test --path.repo /tmp --repositories.url.allowed_urls 'http://snapshot.*'
|
||||
---------------------
|
||||
|
||||
=======================================
|
||||
|
|
Loading…
Reference in New Issue