mongodb – 无法获取以下名称信息:[(1 *.*.**.***,“名称或服务未知”),(1 *.*.**.***,“名称或服务不是知”),

016-03-07T09:10:16.992-0600 W NETWORK  [HostnameCanonicalizationWorker] Failed to obtain name info for: [ (1*.*.**.***, "Name or service not known"), (1*.*.**.***, "Name or service not known"), (1*.*.**.***, "Name or service not known") ]
2016-03-07T09:25:17.041-0600 W NETWORK  [HostnameCanonicalizationWorker] Failed to obtain name info for: [ (1*.*.**.***, "Name or service not known"), (1*.*.**.***, "Name or service not known"), (1*.*.**.***, "Name or service not known") ]
2016-03-07T09:40:17.085-0600 W NETWORK  [HostnameCanonicalizationWorker] Failed to obtain name info for: [ (1*.*.**.***, "Name or service not known"), (1*.*.**.***, "Name or service not known"), (1*.*.**.***, "Name or service not known") ]

1 * …:是我的IP地址

My Cluster是3节点副本集Buit with MongoDB 3.2.

我从未在其他环境中看到过这种错误.

什么可能导致这个问题.

最佳答案
答案很简单,节点无法从IP地址解析名称.
请将这些地址和相关名称添加到:/ etc / hosts -file

12.345.678.90  node1  node1.my.domain
12.345.678.91  node2  node2.my.domain

转载注明原文:mongodb – 无法获取以下名称信息:[(1 *.*.**.***,“名称或服务未知”),(1 *.*.**.***,“名称或服务不是知”), - 代码日志