[ 
https://issues.apache.org/jira/browse/HIVE-18088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16273237#comment-16273237
 ] 

Prasanth Jayachandran commented on HIVE-18088:
----------------------------------------------

Added optional json printing which will look like
{code}
{
  "queryId" : 
"pjayachandran_20171130112601_901e788a-1b0c-4255-9b27-e6d31bdf8d6e",
  "queryStartTime" : 1512069961112,
  "queryEndTime" : 1512069968854,
  "queryCompleted" : true,
  "queryWmEvents" : [ {
    "wmTezSessionInfo" : {
      "sessionId" : "4876920a-dcf3-40bf-ab61-d9efbb515ae1",
      "poolName" : "default.bi",
      "clusterPercent" : 80.0
    },
    "eventTimestamp" : 1512069963983,
    "eventType" : "GET"
  }, {
    "wmTezSessionInfo" : {
      "sessionId" : "4876920a-dcf3-40bf-ab61-d9efbb515ae1",
      "poolName" : "default.etl",
      "clusterPercent" : 20.0
    },
    "eventTimestamp" : 1512069965254,
    "eventType" : "MOVE"
  }, {
    "wmTezSessionInfo" : {
      "sessionId" : "4876920a-dcf3-40bf-ab61-d9efbb515ae1",
      "poolName" : null,
      "clusterPercent" : 0.0
    },
    "eventTimestamp" : 1512069968889,
    "eventType" : "RETURN"
  } ],
  "appliedTriggers" : [ "{ name: slow_in_bi, expression: ELAPSED_TIME > 1000, 
action: MOVE TO default.etl }" ],
  "appliedTriggersNames" : [ "slow_in_bi" ],
  "desiredCounters" : [ "ELAPSED_TIME" ],
  "currentCounters" : {
    "ELAPSED_TIME" : 7739
  }
}
{code}

> Add WM event traces at query level for debugging
> ------------------------------------------------
>
>                 Key: HIVE-18088
>                 URL: https://issues.apache.org/jira/browse/HIVE-18088
>             Project: Hive
>          Issue Type: Sub-task
>    Affects Versions: 3.0.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Prasanth Jayachandran
>         Attachments: HIVE-18088.WIP.patch
>
>
> For debugging and testing purpose, expose workload manager events via /jmx 
> endpoint and print summary at the scope of query.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to