[
https://issues.apache.org/jira/browse/HIVE-25585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
László Bodor updated HIVE-25585:
--------------------------------
Description:
This is about putting dagID to MDC once the DAG is submitted. This way, dagId
can be easily appended to log messages by log4j.
Like:
{code}
hiveserver2 <14>1 2022-10-25T10:51:05.496Z hiveserver2-0 hiveserver2 1
24a33001-3523-415b-a6a8-7733708507af [mdc@18060
class="monitoring.RenderStrategy$LogToFileFunction"
dagId="dag_1666694252139_0000_3" level="INFO" operationLogLevel="EXECUTION"
queryId="hive_20221025105055_ec8135b4-1b0e-46b8-bb3f-4b58b41cf53b"
sessionId="6fc7adf6-d3b0-470a-813f-03c79a0ca20d"
thread="HiveServer2-Background-Pool: Thread-196"] Map 1: 1/1 Map 2:
0(+11)/208 Map 7: 1/1 Map 8: 12(+11)/23 Map 9: 1/1 Reducer 3: 0/738
Reducer 4: 0/642 Reducer 5: 0/1 Reducer 6: 0/782
{code}
was:This is about putting dagID to MDC once the DAG is submitted. This way,
dagId can be easily appended to log messages by log4j.
> Put dagId to MDC once it's available in HS2
> -------------------------------------------
>
> Key: HIVE-25585
> URL: https://issues.apache.org/jira/browse/HIVE-25585
> Project: Hive
> Issue Type: Improvement
> Reporter: László Bodor
> Assignee: László Bodor
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0-beta-1
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> This is about putting dagID to MDC once the DAG is submitted. This way, dagId
> can be easily appended to log messages by log4j.
> Like:
> {code}
> hiveserver2 <14>1 2022-10-25T10:51:05.496Z hiveserver2-0 hiveserver2 1
> 24a33001-3523-415b-a6a8-7733708507af [mdc@18060
> class="monitoring.RenderStrategy$LogToFileFunction"
> dagId="dag_1666694252139_0000_3" level="INFO" operationLogLevel="EXECUTION"
> queryId="hive_20221025105055_ec8135b4-1b0e-46b8-bb3f-4b58b41cf53b"
> sessionId="6fc7adf6-d3b0-470a-813f-03c79a0ca20d"
> thread="HiveServer2-Background-Pool: Thread-196"] Map 1: 1/1 Map 2:
> 0(+11)/208 Map 7: 1/1 Map 8: 12(+11)/23 Map 9: 1/1 Reducer 3:
> 0/738 Reducer 4: 0/642 Reducer 5: 0/1 Reducer 6: 0/782
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)