I have HDP 1.1 on windows Server 2008 R2.
I loaded a web log in to hive table.
Create Table statement:
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 Statement:
load data local inpath 'D:\Logfiles\' into table logtable;
Select Statement:
Select * from logtable;
Everything so far works fine.
The following statement fails:
Select count(*) from logtable;
with exception:
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
Edit1:
The diagnostic info in the Failed Job Table shows following info:
'# of failed Map Tasks exceeded allowed limit. FailedCount: 1. LastFailedTask: task_201306251711_0010_m_000000'