Windows Server 2008 R2 で HDP 1.1 を使用しています。
Hive テーブルに 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:
失敗したジョブ テーブルの診断情報には、次の情報が表示されます。
「失敗したマップ タスクの数が、許可されている制限を超えました。FailedCount: 1. LastFailedTask: task_201306251711_0010_m_000000'