Master not discovered or elected yet, an election requires two nodes with ids

I'm am currently trying to set up a cluster with 3 nodes in total. 1 master node and 2 data nodes. I am currently just trying to get the the first two nodes to connect. My master node runs fine when I start it but my data node is getting the following error.

`` `

[2021-01-11T08:55:19,056][WARN ][o.e.c.c.ClusterFormationFailureHelper] [data1] master not discovered or elected yet, an election requires two nodes with ids [itJNyae8SpKTxGlnvTmm4w, 8GG4guNnS
OyzUC33LYBEKw], have discovered [{data1}{itJNyae8SpKTxGlnvTmm4w}{PNdgtENGS1Cpdo-HJLksVw}{169.254.0.7}{169.254.0.7:9300}{cdhilmrstw}{ml.machine_memory=4294496256, xpack.installed=true, transfor
m.node=true, ml.max_open_jobs=20}] which is not a quorum; discovery will continue using [193.168.100.6:9300] from hosts providers and [{data1}{itJNyae8SpKTxGlnvTmm4w}{PNdgtENGS1Cpdo-HJLksVw}{1
69.254.0.7}{169.254.0.7:9300}{cdhilmrstw}{ml.machine_memory=4294496256, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 34, last-accep
ted version 0 in term 0



 
 Here are my YML files
> Master Node:
> cluster.name: my-cluster
> node.name: master1
> node.master: true
> network.host: ServerA
> http.port: 9200
> discovery.seed_hosts: [ServerB, ServerA]
> cluster.initial_master_nodes: [master1]
> 
> 
> Data Node:
> cluster.name: my-cluster
> node.name: data1
> node.data: true
> network.host:ServerB
> http.port: 9200
> discovery.seed_hosts: [ServerB, ServerA]
> cluster.initial_master_nodes: [master1]