摘要: 建表场景 create test_json( id int ,student string ) row format delimited fields terminated by ' '; -- 假数据: 1 {"name":"zhangsan","age":17,"sex":"F"} --这里一定 阅读全文
posted @ 2020-12-26 21:58 foolangirl 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 带集合类型建表 Hive上创建测试表test create table test( name string, friends array<string>, children map<string, int>, address struct<street:string, city:string> ) 阅读全文
posted @ 2020-12-26 19:43 foolangirl 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 统计文件行数 # 统计文件行数 cat nowcoder.txt | wc -l 打印文件最后5行 tail -n -5 nowcoder.txt #以下一样,展示文件最后5行: tail -n 5 nowcoder.txt tail -n5 nowcoder.txt tail -5 nowcode 阅读全文
posted @ 2020-12-26 18:42 foolangirl 阅读(135) 评论(0) 推荐(0) 编辑