我尝试在elasticsearch的config中设置node.name,但是我没有看到使用我想要的名称创建的任何节点。这是我的elasticsearch.yml文件:
cluster.name: mycluster
node.name: "mynode"
# Path to directory where to store index data allocated for this node.
path.data: /path/to/data
你能告诉我这里出了什么问题吗?非常感谢你。
答案 0 :(得分:0)
它的外观 - 请注意每个未注释的设置的空格缩进。
################################### Cluster ###################################
# Cluster name identifies your cluster for auto-discovery. If you're running
# multiple clusters on the same network, make sure you're using unique names.
#
cluster.name: Test
################################### Cache ####################################
indices.cache.filter.expire: 5m
#################################### Node #####################################
# Node names are generated dynamically on startup, so you're relieved
# from configuring them manually. You can tie this node to a specific name:
#
node.name: "Test"