Hadoop mapreduce has “Cannot resolve the host name” error

我怕爱的太早我们不能终老 提交于 2019-12-07 06:27:01

问题


Now I run Hadoop mapreduce job, the input data comes from HBase table, recently there is an error, the error is below:

ERROR mapreduce.TableInputFormatBase: Cannot resolve the host name for /172.16.4.195 because of javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '195.4.16.172.in-addr.arpa'

*172.16.4.195*is cluster node(slave)ip adress, I do not know what is "195.4.16.172".

There was no such error when I firstly run this job,I do not know why there is such an error. If you solved the problem,please tell me,thank you.


回答1:


reverse dns not found, you need add something like

172.16.4.195 master_host_name

to hosts file

if running on linux, the file located at /etc/hosts

if running on windows, the file located at %WINDIR%/System32/Drivers/etc/hosts



来源:https://stackoverflow.com/questions/12086954/hadoop-mapreduce-has-cannot-resolve-the-host-name-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!