# How to install and setup x-pack on two node with one cluster?

**URL:** <https://discuss.elastic.co/t/how-to-install-and-setup-x-pack-on-two-node-with-one-cluster/125116>\
**Category:** Elasticsearch\
**Created:** [March 22, 2018, 7:11am UTC](https://discuss.elastic.co/t/how-to-install-and-setup-x-pack-on-two-node-with-one-cluster/125116 "2018-03-22T07:11:27Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Karthik\_Saravanan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthik_saravanan/32/28858_2.png) [@Karthik\_Saravanan](https://discuss.elastic.co/u/Karthik_Saravanan)\
**Post date:** [March 23, 2018, 11:08am UTC](https://discuss.elastic.co/t/how-to-install-and-setup-x-pack-on-two-node-with-one-cluster/125116/13 "2018-03-23T11:08:03Z")

</div>

Step 1: install elasticsearch on master and data node  
Step 2: install x-pack on Master node  
Step 3: **Master Node -** Restart elasticsearch and set up x-pack password

```
D:\ELK\elasticsearch-6.2.3\bin\x-pack>setup-passwords auto
Initiating the setup of passwords for reserved users elastic,kibana,logstash_system.
The passwords will be randomly generated and printed to the console.
Please confirm that you would like to continue [y/N]y
Connection failure to: http://34.xx.xx.xx:9200/_xpack/security/user/kibana/_password?pretty failed: Read timed out 
ERROR: Failed to set password for user [kibana].

```

Step 4: **Data Node -** Restart elasticsearch and install x-pack, again restart elasticsearch and setup password

```
D:\ELK\elasticsearch-6.2.3\bin\x-pack>setup-passwords auto
Initiating the setup of passwords for reserved users elastic,kibana,logstash_system.

Changed password for user kibana
PASSWORD kibana = LIXWOpQvVXRAsSjwe8ob

Changed password for user logstash_system
PASSWORD logstash_system = dJLYCTi9ZrHT34azxmms

Changed password for user elastic
PASSWORD elastic = C7hOKNU4Kol1hGc0DmRj

```

Reffered from [here](https://discuss.elastic.co/t/unable-to-run-set-password-in-6-x/117382/3#post_4) and point 1 to 4, How do i fix step 3 issue?

---

_[View the full topic](https://discuss.elastic.co/t/how-to-install-and-setup-x-pack-on-two-node-with-one-cluster/125116)._
