I have set up docker swarm cluster , use the following configuration file to deploy hdfs cluster on the overlay network named test in my swarm cluster .
version: '3'
services:
namenode:
image: bde2020/hadoop-namenode:2.0.0-hadoop3.1.2-java8
volumes:
I can see registed datanode from namenode web ui after successful deployment,
but the datanode hostname and ip don't match.And i can't access datanode 9866
port through the datanode ip,but i can access it via datanode hostname.
Can you tell me why and give me a hand?Thank you!
I have set up docker swarm cluster , use the following configuration file to deploy hdfs cluster on the overlay network named test in my swarm cluster . version: '3' services: namenode: image: bde2020/hadoop-namenode:2.0.0-hadoop3.1.2-java8 volumes:
9870:9870 deploy: mode: replicated replicas: 1 restart_policy: condition: on-failure placement: constraints:
datanode: image: bde2020/hadoop-datanode:2.0.0-hadoop3.1.2-java8 volumes:
networks: hbase: external: name: test
I can see registed datanode from namenode web ui after successful deployment, but the datanode hostname and ip don't match.And i can't access datanode 9866 port through the datanode ip,but i can access it via datanode hostname. Can you tell me why and give me a hand?Thank you!