Hi,
using the elasticsearch docker image docker.elastic.co/elasticsearch/elasticsearch:6.1.2
I can't connect two nodes on different digitalocean droplets. I've created both containers with:
droplet1:
docker run -d -p 9200:9200 -p 9300:9300 --name es1 -h es-asm-1 -v /opt/esdata1:/usr/share/elasticsearch/data -e "cluster.name=btwaf" -e "bootstrap.memory_lock=true" -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "network.host=0.0.0.0" -e "network.bind_host=0.0.0.0" -e "network.publish_host=0.0.0.0" -e "transport.host=0.0.0.0" --ulimit memlock=-1:-1 docker.elastic.co/elasticsearch/elasticsearch:6.1.2
droplet2:
docker run -d -p 9200:9200 -p 9300:9300 --name es1 -h es-asm-2 -v /opt/esdata1:/usr/share/elasticsearch/data -e "cluster.name=mycluster" -e "bootstrap.memory_lock=true" -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" -e "discovery.zen.ping.unicast.hosts=droplet1:9300" -e "network.host=0.0.0.0" -e "network.bind_host=0.0.0.0" -e "network.publish_host=0.0.0.0" -e "transport.host=0.0.0.0" --ulimit memlock=-1:-1 docker.elastic.co/elasticsearch/elasticsearch:6.1.2
but on the second node I get this error:
org.elasticsearch.transport.ConnectTransportException: [Bs4USmT][172.17.0.2:9300] handshake failed. unexpected remote node
any idea?
thanks