CSV 導入HIVE

1,建表

create table if not exists product( Item_id int, Pict_url string, Category string, Brand_id string, Seller_id string) row format delimited fieldsterminated by ',' STORED AS TEXTFILE;

2導入

 load data local inpath '/tmp/tmall/tmall_product.csv' overwrite into table product;


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章