【发布时间】:2013-07-10 07:26:17
【问题描述】:
我在 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;
例外:
FAILED:执行错误,从 org.apache.hadoop.hive.ql.exec.MapRedTask 返回代码 2
编辑1:
Failed Job Table 中的诊断信息显示以下信息:
'# 失败的地图任务超出了允许的限制。 FailedCount: 1. LastFailedTask: task_201306251711_0010_m_000000'
【问题讨论】:
-
@yatul 更新了问题
-
这不是您的实际错误。它只是说有太多的映射器失败了。在 Mapper 日志中查看您的具体错误。有很多可能的原因。例如。其中一些在这里stackoverflow.com/a/15725084/891391
标签: hadoop hive hortonworks-data-platform