I have configured one cluster with two nodes, one is master node and another one is a data node. Now, have to install and configure xpack on these nodes,
I know the xpack installation on ELK. My question is how do I configure one cluster name with two nodes, these nodes from the different ec2 machine. do you understand what im asking?
When you create users and roles in Kibana or through the APIs, these are stored in the cluster state and distributed to all nodes in the cluster. You therefore just set up each user/role once.
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 and point 1 to 4, How do i fix step 3 issue?
You don't run setup-passwords on each node individually, you run it once for the whole cluster. You don't need to fix step 3, because you've already run step 4.
The reason step 3 is failing is because you only have a master node online, and no data nodes. The password change cannot be processed if there are no data nodes available to store the new passwords.
Your cluster topology is very strange, and is going to cause these sorts of problems. Why are you trying to run a dedicated master in a 2 node cluster?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.