Closed Yancey1989 closed 8 years ago
I did some trying.
Change the hostnmae of NM, make RM connect to NM with the special hostname. the hostname is the service name, RM connect to the NM with the service proxy.
Change the hostname is not a good idea.
10.0.0.24 hadoop-slave-demo-1-xxxx
10.0.0.24 is the CLUSTER-IP of hadoop-slave hadoop-slave-demo-1-xxxx is the pod name (hostname) of the hadoop-slave
The idea can run, but a bit ugly .
可不可能写一个bash脚本,把你做过的这些操作复现了。贴在这里,方便帮忙的人一起看看呢?
提了一个example,用第二种方法解决的。缺点是节点扩容时需要手动修改RM中的hosts信息。
I'm tring to run the example WordCount, but the app state alwasy ACCEPTED. In RM log:
It looks like RM node can not connect the pod of NM node,such as hadoop-slave-xxxx.
So my question is :
I can use dns service with the component name such as hadoop-master, but when the hadoop-master want to connect the specific pod, such as hadoop-slave-xxx, it can not find the ip.