我在 Windows Server 2008 R2 上有 HDP 1.1。
我将 Web 登录加载到配置单元表。创建表语句:
create table logtable (datenonQuery string , hours string, minutes string, seconds string, TimeTaken string, Method string, UriQuery string, ProtocolStatus string) row format serde 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe' with serdeproperties( "input.regex" = "(\\S+)\\t(\\d+):(\\d+):(\\d+)\\t(\\S+)\\t(\\S+)\\t(\\S+)\\t(\\S+)", "output.format.string" = "%1$s %2$s %3$s %4$s %5$s %6$s %7$s %8$s") stored as textfile;
负载语句:
load data local inpath 'D:\Logfiles\' into table logtable;
选择语句:
Select * from logtable;
到目前为止一切正常。
以下语句失败:
Select count(*) from logtable;
除了:
失败:执行错误,从 org.apache.hadoop.hive.ql.exec.MapRedTask 返回代码 2
编辑1:
失败作业表中的诊断信息显示以下信息:
'# of failed Map Tasks 超出了允许的限制。FailedCount: 1. LastFailedTask: task_201306251711_0010_m_000000'