Hadoop監(jiān)控頁面查看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作業(yè)監(jiān)控平臺
?? 在瀏覽器上輸入網(wǎng)址:http://localhost:8088/cluster
界面如下:
?? 點擊RUNNING,進入Hadoop正在執(zhí)行的job監(jiān)控界面边臼。
2柠并、進入作業(yè)(job)頁面
?? 點擊上面頁面的job的ID進入應(yīng)用作業(yè)(job)頁面富拗,界面如下:
3啃沪、MapRecuce作業(yè)頁面
?? 點擊上面頁面的job的Job ID進入MapRecuce作業(yè)(job)頁面,界面如下:
4缰雇、查看完整的HQL語句
?? 點擊上面頁面的Configuration進入MapReduce Job的配置頁面械哟,界面如下:
?? 在MapReduce Job的配置頁面的搜索框里面輸入hive.query.string,得到hql完整語句暇咆。界面如下: