如何修复 Hbase 中的主机名问题

How to fix host name issue in Hbase

我在使用Spark从Hbase中扫描table时,遇到如下WARN信息,不过也不例外,我还是可以从Hbase中查询出数据的:

WARN mapreduce.TableInputFormatBase: 
Cannot resolve the host name for h006.test.test.local/10.1.1.6 because of 
javax.naming.NameNotFoundException: DNS name not found [response code 3];
remaining name '10.1.1.6.in-addr.arpa'

我需要专门为Hbase设置一个DNS服务器吗?谢谢!

Hbase 正在使用 dns loopup 获取域的实际 IP,如果您的 dns 服务器中没有映射,它会抛出 WARN 消息。 /etc/host没关系。