`
nk_tocean
  • 浏览: 3367 次
  • 性别: Icon_minigender_1
  • 来自: 天津
最近访客 更多访客>>
社区版块
存档分类
最新评论

hive建表及导入数据

 
阅读更多

1 新建一个表

hive -e "create external table if not exists uid_vid_test(uid string, vid string) row format delimited fields terminated  by '\t'"

注意后面的\t,表示数据以\t分割

 

2 从本地导入数据

执行hive -e "load data local inpath 'uidvid' into table uiv_vid_test" 导入到uid_vid_test表中

 

3 查看数据

hive -e "select * from uid_vid_test"

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics