我有4个流浪机器运行和流浪环境的源代码在这里。
我成功地创建了一个群集。
[vagrant@master ~]$ docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
4j5742f3lxsm hadoop_datanode global 0/6 bde2020/hadoop-datanode:2.0.0-hadoop3.1.2-java8
xji061560z88 hadoop_historyserver replicated 0/1 bde2020/hadoop-historyserver:2.0.0-hadoop3.1.2-java8
0kbyu97c0k7i hadoop_namenode replicated 0/1 bde2020/hadoop-namenode:2.0.0-hadoop3.1.2-java8
z81o9vj3btxt hadoop_nodemanager global 0/6 bde2020/hadoop-nodemanager:2.0.0-hadoop3.1.2-java8
dj5m6b6rlsel hadoop_resourcemanager replicated 0/1 bde2020/hadoop-resourcemanager:2.0.0-hadoop3.1.2-java8
然后我尝试在这个集群上部署hadoop docker stack deploy -c docker-compose-v3.yml hadoop
```
[vagrant@master docker-hadoop-master]$ docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
2gxw29laf7eny3ulbtgqv4u8s datanode Ready Active 19.03.3
d16n9gesifbm3v6n4mva9sc48 historyserver Ready Active 19.03.3
ald04wst5ct2ewybrt1y5cl2d * master.com Ready Active Leader 19.03.3
oxo5hmcq9cqhv36ci6s0y2kwp namenode Ready Active 19.03.3
9ugmvy2bj8d67ue5w6nt7bf21 nodemanager1 Ready Active 19.03.3
9o4lmysp17jo2efyxlvbhwknr resourcemanager Ready Active 19.03.3
另外,我尝试获取namenode的日志,但它没有日志
$ docker service logs hadoop_namenode
现在我并没有任何服务的日志。
docker节点的相应ip和主机名在这里。如何解决这个问题并使hadoop集群运行vagrant swarm集群?
暂无答案!
目前还没有任何答案,快来回答吧!