pai icon indicating copy to clipboard operation
pai copied to clipboard

Dns service is required.

Open ydye opened this issue 9 years ago • 7 comments

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.

ydye avatar Nov 22 '17 02:11 ydye

@fanyangCS @xiaoxinla @abuccts

ydye avatar Nov 22 '17 02:11 ydye

Should we modify /etc/hosts on each nodes or add a dns name server pod?

abuccts avatar Nov 22 '17 03:11 abuccts

@abuccts You mean add all hostname and their IP to /etc/hosts?

ydye avatar Nov 22 '17 03:11 ydye

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.

abuccts avatar Nov 22 '17 03:11 abuccts

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.

ydye avatar Nov 22 '17 03:11 ydye

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.

abuccts avatar Nov 22 '17 03:11 abuccts

there exists other way to resolve the issue. it is better to reduce our service dependency to avoid single point of failure.

fanyangCS avatar Nov 22 '17 05:11 fanyangCS