无法获取以下姓名信息:[(1 *。*。**。***,“名称或服务未知”),(1 *。*。**。***,“名称或服务未知” )

时间:2016-03-07 16:56:33

标签: mongodb hostname

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。

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

可能导致此问题的原因。

1 个答案:

答案 0 :(得分:1)

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

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