摘要: TRUNCATE:truncate用于删除所有的行,这个行为在hive元存储删除数据是不可逆的delect:用于删除特定行条件,你可以从给定表中删除所有的行insert overwrite table table_name select * from table_name where 1=0; 阅读全文
posted @ 2016-09-28 14:33 听风者~ 阅读(747) 评论(0) 推荐(0)
摘要: 一、问题 hive如何将 a b 1a b 2a b 3c d 4c d 5c d 6 变为: a b 1,2,3c d 4,5,6 二、数据 test.txt a b 1 a b 2 a b 3 c d 4 c d 5 c d 6 三、答案 1.建表 drop table test;create 阅读全文
posted @ 2016-09-28 14:33 听风者~ 阅读(3264) 评论(0) 推荐(0)