如何解决Hbase中的主机名问题

如何解决Hbase中的主机名问题,hbase,Hbase,当我使用Spark从Hbase扫描表时,我遇到了以下警告信息,但这不是例外,我仍然能够从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]; remaini

当我使用Spark从Hbase扫描表时,我遇到了以下警告信息,但这不是例外,我仍然能够从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服务器中没有映射,它将抛出警告消息。与/etc/host无关

也许/etc/hosts文件配置就足够了