Hadoop mapreduce的“无法解析主机名”错误 [英] Hadoop mapreduce has "Cannot resolve the host name" error
问题描述
$ b ERROR mapreduce。 TableInputFormatBase:由于javax.naming.NameNotFoundException:无法解析/172.16.4.195的主机名:找不到DNS名称[response code 3];剩余名称'195.4.16.172.in-addr.arpa'
* 172.16.4.195 *是群集节点(从属) ip地址,我不知道什么是195.4.16.172。
当我第一次运行这个工作时,没有这样的错误,我不知道为什么会有这样的错误一个错误。
如果你解决了这个问题,请告诉我,谢谢。
reverse dns not found,you need add例如
172.16.4.195 master_host_name
到主机文件
如果在Linux上运行,文件位于/ etc / hosts
如果在Windows上运行,位于%WINDIR%/ System32 / Drivers / etc / hosts的文件
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.
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
这篇关于Hadoop mapreduce的“无法解析主机名”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!