Hive无法初始化类java.net.NetworkInterface

时间:2015-08-03 06:47:41

标签: java hadoop hive

我有一个EMR设置,应该预先配置Hive和Hadoop。

到目前为止,正如我所看到的任何需要MapReduce Job的命令一样,Hive失败了。

FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask

所以,我去了Job Job 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)
...

任何有关此错误的帮助都将受到赞赏......

堆栈跟踪指向代码:

org.apache.hadoop.net.NetUtils

Network Interface Definition

1 个答案:

答案 0 :(得分:0)

在尝试运行datanode时,我得到了这个精确的堆栈跟踪。 colours=rev(c("black","red","yellow","green","blue", "blue2")) # Colour scheme for plot p <- ggplot(UCCO2_m, aes(date_dates, variable)) + geom_tile(aes(fill = UCCO2_m$value)) + scale_fill_gradientn(guide = "colourbar", colours = colours, na.value = "white", expression(Carbon-Concentration[mg/l])) # Add some titles and stuff p <- p + labs(title = "Carbon Concentration below Watertable at the Upslope Station", x = "Month - Year", y = "Depth (cm)") #axis.text.x for x axis only p<-p + theme(axis.line=element_blank(), axis.text.x= element_text(angle=45, vjust=0.5), panel.grid.major=element_blank(), panel.grid.minor=element_blank(), panel.border=element_blank(), plot.background=element_blank()) #Fix axis p <- p + scale_x_datetime(breaks = date_breaks("months"), labels = date_format("%b")) windows() plot(p)` 接口的IPv4地址在DNS中是可向前解析的,但它不是可反向解析的(即我可以将主机名解析为其IP但是反向查找IP到相应的主机名不起作用)。一旦从IP到主机名的PTR记录被创建,datanode就按预期启动了。