需求:根据部门名称[dname]统计员工薪资总数[sum(sal)]
hive> select dname,sum(sal) from emp e join dept d on e.deptno = d.deptno group by dname;
Query ID = atguigu_20181210104140_4931b735-5bad-4a4f-bce6-67985b8fe30a
Total jobs = 1
SLF4J: Class path contains multiple SLF4J bindings.
… …
… …
Stage-Stage-2: Map: 1 Reduce: 1 Cumulative CPU: 3.95 sec HDFS Read: 13195 HDFS Write: 48 SUCCESS
Total MapReduce CPU Time Spent: 3 seconds 950 msec
OK
ACCOUNTING 3750.0
RESEARCH 10875.0
SALES 9400.0
Time taken: 23.893 seconds, Fetched: 3 row(s)
hive>
1)进入Insight页面
2)在New Query中输入查询语句并Submit
3)数据图表展示及导出