Hi, currently I'm trying to deploy a cluster with 3 nodes on EC2 AWS. The configuration is the following:
#master node
cluster.name: woombat
node.name: node1
node.master: true
bootstrap.memory_lock: true
discovery.zen.hosts_provider: ec2
discovery.ec2.tag.ec2discovery: elk
network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
xpack.security.enabled: false
action.destructive_requires_name: true
discovery.zen.minimum_master_nodes: 2
#node 2
cluster.name: woombat
node.name: node2
node.master: true
bootstrap.memory_lock: true
discovery.zen.hosts_provider: ec2
discovery.ec2.tag.ec2discovery: elk
network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
xpack.security.enabled: false
action.destructive_requires_name: true
discovery.zen.minimum_master_nodes: 2
In node1 i'm getting this:
[2020-02-22T15:05:42,230][INFO ][o.e.c.c.Coordinator ] [node1] cluster UUID [L0Fkb2CcTGCGRc2ZP1jZew]
[2020-02-22T15:05:42,363][INFO ][o.e.c.s.MasterService ] [node1] elected-as-master ([1] nodes joined)[{node1}{IFL6k3JmTy-6MMbEpMF6YA}{uQUqHv63RXKPfPYXL3pG2w}{localhost}{127.0.0.1:9300}{ml.machine_memory=2088099840, xpack.installed=true, ml.max_open_jobs=20} elect leader, BECOME_MASTER_TASK, FINISH_ELECTION], term: 7, version: 30, reason: master node changed {previous , current [{node1}{IFL6k3JmTy-6MMbEpMF6YA}{uQUqHv63RXKPfPYXL3pG2w}{localhost}{127.0.0.1:9300}{ml.machine_memory=2088099840, xpack.installed=true, ml.max_open_jobs=20}]}
[2020-02-22T15:05:42,510][INFO ][o.e.c.s.ClusterApplierService] [node1] master node changed {previous , current [{node1}{IFL6k3JmTy-6MMbEpMF6YA}{uQUqHv63RXKPfPYXL3pG2w}{localhost}{127.0.0.1:9300}{ml.machine_memory=2088099840, xpack.installed=true, ml.max_open_jobs=20}]}, term: 7, version: 30, reason: Publication{term=7, version=30}
In node2 i'm getting this:
[2020-02-22T15:00:15,696][INFO ][o.e.c.c.Coordinator ] [node2] cluster UUID [rI_bmBNzTW2ynaNmi5dPjg]
[2020-02-22T15:00:15,841][INFO ][o.e.c.s.MasterService ] [node2] elected-as-master ([1] nodes joined)[{node2}{zn-PL4x8Qrmvqj9veBgM5Q}{pk5SXza_TL-u37gkaZBWxA}{localhost}{127.0.0.1:9300}{ml.machine_memory=2088099840, xpack.installed=true, ml.max_open_jobs=20} elect leader, BECOME_MASTER_TASK, FINISH_ELECTION], term: 10, version: 40, reason: master node changed {previous , current [{node2}{zn-PL4x8Qrmvqj9veBgM5Q}{pk5SXza_TL-u37gkaZBWxA}{localhost}{127.0.0.1:9300}{ml.machine_memory=2088099840, xpack.installed=true, ml.max_open_jobs=20}]}
[2020-02-22T15:00:15,999][INFO ][o.e.c.s.ClusterApplierService] [node2] master node changed {previous , current [{node2}{zn-PL4x8Qrmvqj9veBgM5Q}{pk5SXza_TL-u37gkaZBWxA}{localhost}{127.0.0.1:9300}{ml.machine_memory=2088099840, xpack.installed=true, ml.max_open_jobs=20}]}, term: 10, version: 40, reason: Publication{term=10, version=40}
In both nodes i'm getting this output with the warning:
[node1] Exception while retrieving instance list from AWS API: Unable to load AWS credentials from any provider in the chain: [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), com.amazonaws.auth.profile.ProfileCredentialsProvider@57915fb5: access denied ("java.io.FilePermission" "/home/ec2-user/.aws/credentials" "read"), com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@45bfaad5: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/]
Also, The cluster Id of both is different, I think is because they are not finding themselves. I installed the discovery-ec2 plugin. How can i fix this?