[英]Hive Could not initialize class java.net.NetworkInterface
I have an EMR Setup, which is supposed to come with Hive and Hadoop pre-configured. 我有一个EMR设置,应该随Hive和Hadoop一起预先配置。
As far, as I can see for any command which require MapReduce Job, Hive fails. 就我所知,对于需要MapReduce作业的任何命令,Hive均失败。
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
So, I went to Job Tracking URL, and here is the relevant output: 因此,我转到了Job Tracking URL,这是相关的输出:
Diagnostics: Could not initialize class java.net.NetworkInterface
java.lang.NoClassDefFoundError: Could not initialize class java.net.NetworkInterface
at org.apache.hadoop.net.NetUtils.isLocalAddress(NetUtils.java:690)
...
Any help with this error would be appreciated... 与这个错误的任何帮助将不胜感激...
Stack Trace points to codes: 堆栈跟踪点指向代码:
org.apache.hadoop.net.NetUtils org.apache.hadoop.net.NetUtils
I got this exact stacktrace when trying to run a datanode. 尝试运行datanode时,我得到了这个确切的stacktrace。 The IPv4 address of the
eth0
interface was forward-resolvable in DNS, but it wasn't reverse-resolvable (ie I could resolve the hostname to its IP but the reverse lookup of IP to the corresponding hostname didn't work). eth0
接口的IPv4地址在DNS中是可正向解析的,但不是可逆解析的(即我可以将主机名解析为其IP,但无法将IP反向查找为对应的主机名)。 The datanode started as expected once the PTR record pointing from IP to hostname got created. 一旦创建了从IP指向主机名的PTR记录,datanode就会按预期启动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.