By default, Elasticsearch uses a randomly-generated UUID for its node name, which is not very user-friendly. This parameter is relatively simple as it controls the name for the specific node. For this setup, we'll be using elasticX, where X is the node number; node1 should be as follows:
#------------------------------Node---------------------------------
#
# Use a descriptive name for the node:
#
node.name: elastic1
Change node2 to match the naming convention, so it is elastic2.