1、上传文件到hdfs

hdfs dfs -put ./user_id.csv /team/profile/test;

2、创建表(进入hive客户端)

create table tmp.profile_need_match_view_users(id string) row format delimited fields terminated by ',';

3、load到hive表

load data inpath '/team/profile/test/user_id.csv' into table tmp.profile_need_match_view_users;

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐