title: getting error " failed to obtain node locks, tried " when starting second node in elastic search
body: <p>I am just a beginner in learning elastic search and started to setup 2 node cluster on windows 10 box. </p>
  
  <p>I have configured the two nodes based on the forums and articles.</p>
  
  <p>However, I am able to start the first node but when starting the second node, it throws an error.</p>
  
  <pre><code>[2018-11-05T16:07:31,935][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [elastic_search_node_02] uncaught exception in thread [main]
  org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[C:\Elastic_search_cluster\data\elastic_search_cluster]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
  </code></pre>
  
  <p>The following is the setup for both the nodes,</p>
  
  <p>Node 1 dir</p>
  
  <pre><code>C:\Elastic_search_cluster\elasticsearch-6.4.2_node01\
  </code></pre>
  
  <p>Node 2 dir</p>
  
  <pre><code>C:\Elastic_search_cluster\elasticsearch-6.4.2_node02\
  </code></pre>
  
  <p>Data folder</p>
  
  <p>C:\Elastic_search_cluster\data\</p>
  
  <p>Logs folder</p>
  
  <p>C:\Elastic_search_cluster\logs\</p>
  
  <p>Node 1 configuration</p>
  
  <pre><code>cluster.name: elastic_search_cluster
  node.name: elastic_search_node_01
  node.master: true
  node.data: true
  path.data: C:\Elastic_search_cluster\data\
  path.logs: C:\Elastic_search_cluster\logs\
  network.host: localhost
  http.port: 9200
  </code></pre>
  
  <p>Node 2 configuration</p>
  
  <pre><code>cluster.name: elastic_search_cluster
  node.name: elastic_search_node_02
  node.master: false
  node.data: true
  path.data: C:\Elastic_search_cluster\data\
  path.logs: C:\Elastic_search_cluster\logs\
  network.host: localhost
  http.port: 9201
  </code></pre>
  
  <p>Please advise on the configuration or any other recommendation. Does the data and logs folder path need to be separate for each node.</p>
  
  <p>Do i need to set other parameters like the below ?</p>
  
  <pre><code>discovery.zen.ping.unicast.hosts:
  discovery.zen.minimum_master_nodes: 
  </code></pre>