I have an EMR Setup, which is supposed to come with Hive and Hadoop pre-configured.

As far, as I can see for any command which require MapReduce Job, Hive fails.

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:

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

Network Interface Definition

share|improve this question

I got this exact stacktrace when trying to run a datanode. The IPv4 address of the eth0 interface was forward-resolvable in DNS, but it wasn't reverse-resolvable (i.e. I could resolve the hostname to its IP but the reverse lookup of IP to the corresponding hostname didn't work). The datanode started as expected once the PTR record pointing from IP to hostname got created.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.