Hive 四種排序 (親手實戰 + 理解,煩請您過目)

文章目錄: 1、全局排序 (order by) ① 使用order by排序的子句在select 結尾處。 降序:desc 升序:asc 不需要指定,默認是升序 ②案例實操: 結果: 2、區內排序 (sort by )分區字段 (distribute by) 設置reduces 個數: set mapreduce.job.reduces = 3; distribute by 分區字段 store
相關文章
相關標籤/搜索