Dns service is required.
Not only hadoop need dns to process the node's hostname in Yarn and HDFS, but also kubernetes node name should be resolved by dns. Currently we hard code the IP address in the hostname ( In both kubernetes and hadoop). It's too tricky. I think in the future the dns service must be included in our system.
@fanyangCS @xiaoxinla @abuccts
Should we modify /etc/hosts on each nodes or add a dns name server pod?
@abuccts You mean add all hostname and their IP to /etc/hosts?
Yes, we met the 127.0.1.1 problem on Ubuntu before and solved it by modifying all /etc/hosts. But this will also influence the host network env for other users.
1)Why commenting 127.0.1.1 will influence other user ? @abuccts 2)If the dns couldn't solve hostname correctly. It seems that this will have a bad influence on sudo. When @xiaoxinla test our system in new environment, he comes across this.
We need to add mapping records to all /etc/hosts if we use this method to solve hostname. That will influence other users since they use the same hosts file.
there exists other way to resolve the issue. it is better to reduce our service dependency to avoid single point of failure.