简体   繁体   English

蜂巢无法初始化类java.net.NetworkInterface

[英]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

Network Interface Definition 网络接口定义

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.

相关问题 如何模拟java.net.NetworkInterface? - How to mock java.net.NetworkInterface? 提取IPV6地址时的错误Java java.net.NetworkInterface - Bug while fetching IPV6 addresses Java java.net.NetworkInterface Android Studio - 无法初始化 class java.net.DefaultDatagramSocketImplFactory - Android Studio - Could not initialize class java.net.DefaultDatagramSocketImplFactory Java运行时错误:“无法初始化类FormPreviewFrame” - Java runtime error: “Could not initialize class FormPreviewFrame” java.lang.NoClassDefFoundError:无法初始化类 - java.lang.NoClassDefFoundError: Could not initialize class 在 Eclipse 中导入 Gradle 项目时无法初始化类 java.net.DualStackPlainDatagramSocketImpl - Could not initialize class java.net.DualStackPlainDatagramSocketImpl when importing Gradle project in Eclipse java.lang.NoClassDefFoundError:无法初始化类net.sf.ehcache.config.ConfigurationFactory - java.lang.NoClassDefFoundError: Could not initialize class net.sf.ehcache.config.ConfigurationFactory JasperReports:java.lang.NoClassDefFoundError:无法初始化类net.sf.jasperreports.engine.util.JRStyledTextParser - JasperReports: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser Apache Wicket - java.lang.NoClassDefFoundError:无法初始化 class net.sf.cglib.proxy.Enhancer - Apache Wicket - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer java.lang.NoClassDefFoundError:无法初始化类java.net.ProxySelector - java.lang.NoClassDefFoundError: Could not initialize class java.net.ProxySelector
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM