'dt'をパーティションに指定すると、「FAILED:Execution Error、org.apache.hadoop.hive.ql.execからコード2を返します。 mr.MapRedTask "。しかしハイブでパーティション化するフィールドを指定中にエラーを返す
create EXTERNAL table novaya.user_goods_behaviour
( member_srl string,
productid string ,
buy_amt bigint,
return_amt bigint,
cart_cnt bigint,
view_cnt bigint,
search_click_cnt bigint ,
brand string ,
mng_catecode1 int ,
mng_cate1 string ,
mng_catecode2 int ,
mng_cate2 string ,
mng_catecode3 int ,
mng_cate3 string ,
mng_catecode4 int ,
mng_cate4 string) partitioned by (dt string)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' STORED AS parquet;
insert overwrite table novaya.user_goods_behaviour PARTITION (dt)
select * from ...;
、私はパーティションを使用しないとき、それはOKです: はここにパーティションを持つ私のコードです。
create EXTERNAL table novaya.user_goods_behaviour
( member_srl string,
productid string ,
dt string,
buy_amt bigint,
return_amt bigint,
cart_cnt bigint,
view_cnt bigint,
search_click_cnt bigint ,
brand string ,
mng_catecode1 int ,
mng_cate1 string ,
mng_catecode2 int ,
mng_cate2 string ,
mng_catecode3 int ,
mng_cate3 string ,
mng_catecode4 int ,
mng_cate4 string)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' STORED AS parquet;
insert overwrite table novaya.user_goods_behaviour select * from ...;
だから私はこれの問題とそれを修正する方法を知りたいです。 多くのありがとうございます。
フィールドの選択順序を変更し、最後にdtを入れました。そして、それは動作します。ありがとう。 – yanachen