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