Hadoop监控页面查看Hive的完整SQL
hive查询语句如下:
select t6.tickerid tickerid, t6.name name, t6.symbol symbol,t7.name as exname, t7.alias as exalias, t8.name as regionname, count(1) count from
(Select userid from wl_csg.portfolio_active_user t1 join
(select tickerid from wlwh.ticker_detail t2 where exchangeid in (45, 46, 47, 48, 49))t3 on t1.tickerid = t3.tickerid)t4 join wl_csg.portfolio_active_user t5 on t4.userid = t5.userid join wlwh.ticker_detail t6 on t5.tickerid = t6.tickerid join wlwh.exchange_detail t7 on t6.exchangeid = t7.id join wlwh.region_detail t8 on t7.regionid = t8.id group by t6.tickerid , t6.name , t6.symbol ,t7.name, t6.tickertype, t8.name , t7.alias order by count desc limit 500
1、进入Hadoop作业监控平台
在浏览器上输入网址:http://localhost:8088/cluster
界面如下:
点击RUNNING,进入Hadoop正在执行的job监控界面。
2、进入作业(job)页面
点击上面页面的job的ID进入应用作业(job)页面,界面如下:
3、MapRecuce作业页面
点击上面页面的job的Job ID进入MapRecuce作业(job)页面,界面如下:
4、查看完整的HQL语句
点击上面页面的Configuration进入MapReduce Job的配置页面,界面如下:
在MapReduce Job的配置页面的搜索框里面输入hive.query.string,得到hql完整语句。界面如下:
hql完整语句
网友评论