diff --git a/docs/engine_usage/hive.md b/docs/engine_usage/hive.md index b524e07ff08..c01297337fc 100644 --- a/docs/engine_usage/hive.md +++ b/docs/engine_usage/hive.md @@ -87,4 +87,127 @@ In addition to the above engineConn configuration, users can also make custom se ![](/Images/EngineUsage/hive-config.png) -Figure 4-1 User-defined configuration management console of hive \ No newline at end of file +Figure 4-1 User-defined configuration management console of hive + +## 5.Hive modification log display +The default log interface does not display the application_id and the number of tasks completed, the user can output the log as needed +The code blocks that need to be modified in the log4j2-engineconn.xml/log4j2.xml configuration file in the engine are as follows +1.Need to add under the appenders component +```xml + + + +``` +2.Need to add under the root component +```xml + +``` +3.Need to add under the loggers component +```xml + + + +``` +After making the above relevant modifications, the log can add task progress information, which is displayed in the following style +``` +2022-04-08 11:06:50.228 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Status: Running (Executing on YARN cluster with App id application_1631114297082_432445) +2022-04-08 11:06:50.248 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: -/- Reducer 2: 0/1 +2022-04-08 11:06:52.417 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0/1 Reducer 2: 0/1 +2022-04-08 11:06:55.060 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0(+1)/1 Reducer 2: 0/1 +2022-04-08 11:06:57.495 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 0(+1)/1 +2022-04-08 11:06:57.899 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 1/1 +``` + +An example of a complete xml configuration file is as follows: +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/engine_usage/hive.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/engine_usage/hive.md index 3bbe2f3195e..a110e8d02a4 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/engine_usage/hive.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/engine_usage/hive.md @@ -92,3 +92,126 @@ hive引擎的实现方式通过实例化hive的Driver实例,然后由Driver来 ![](/Images-zh/EngineUsage/hive-config.png) 图4-1 hive的用户自定义配置管理台 + +## 5.Hive修改日志展示 +默认的日志界面是不显示application_id以及task完成数量的,用户可以根据需要输出该日志 +引擎内的log4j2-engineconn.xml/log4j2.xml配置文件中需要修改的代码块如下 +1.appenders组件下需要添加 +```xml + + + +``` +2.root组件下需要添加 +```xml + +``` +3.loggers组件下需要添加 +```xml + + + +``` +进行如上相关修改后日志可以增加任务task进度信息,显示为如下样式 +``` +2022-04-08 11:06:50.228 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Status: Running (Executing on YARN cluster with App id application_1631114297082_432445) +2022-04-08 11:06:50.248 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: -/- Reducer 2: 0/1 +2022-04-08 11:06:52.417 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0/1 Reducer 2: 0/1 +2022-04-08 11:06:55.060 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0(+1)/1 Reducer 2: 0/1 +2022-04-08 11:06:57.495 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 0(+1)/1 +2022-04-08 11:06:57.899 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 1/1 +``` + +完整xml配置文件范例如下: +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.0.2/engine_usage/hive.md b/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.0.2/engine_usage/hive.md index 3bbe2f3195e..a110e8d02a4 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.0.2/engine_usage/hive.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.0.2/engine_usage/hive.md @@ -92,3 +92,126 @@ hive引擎的实现方式通过实例化hive的Driver实例,然后由Driver来 ![](/Images-zh/EngineUsage/hive-config.png) 图4-1 hive的用户自定义配置管理台 + +## 5.Hive修改日志展示 +默认的日志界面是不显示application_id以及task完成数量的,用户可以根据需要输出该日志 +引擎内的log4j2-engineconn.xml/log4j2.xml配置文件中需要修改的代码块如下 +1.appenders组件下需要添加 +```xml + + + +``` +2.root组件下需要添加 +```xml + +``` +3.loggers组件下需要添加 +```xml + + + +``` +进行如上相关修改后日志可以增加任务task进度信息,显示为如下样式 +``` +2022-04-08 11:06:50.228 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Status: Running (Executing on YARN cluster with App id application_1631114297082_432445) +2022-04-08 11:06:50.248 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: -/- Reducer 2: 0/1 +2022-04-08 11:06:52.417 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0/1 Reducer 2: 0/1 +2022-04-08 11:06:55.060 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0(+1)/1 Reducer 2: 0/1 +2022-04-08 11:06:57.495 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 0(+1)/1 +2022-04-08 11:06:57.899 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 1/1 +``` + +完整xml配置文件范例如下: +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.0.3/engine_usage/hive.md b/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.0.3/engine_usage/hive.md index 3bbe2f3195e..a110e8d02a4 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.0.3/engine_usage/hive.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.0.3/engine_usage/hive.md @@ -92,3 +92,126 @@ hive引擎的实现方式通过实例化hive的Driver实例,然后由Driver来 ![](/Images-zh/EngineUsage/hive-config.png) 图4-1 hive的用户自定义配置管理台 + +## 5.Hive修改日志展示 +默认的日志界面是不显示application_id以及task完成数量的,用户可以根据需要输出该日志 +引擎内的log4j2-engineconn.xml/log4j2.xml配置文件中需要修改的代码块如下 +1.appenders组件下需要添加 +```xml + + + +``` +2.root组件下需要添加 +```xml + +``` +3.loggers组件下需要添加 +```xml + + + +``` +进行如上相关修改后日志可以增加任务task进度信息,显示为如下样式 +``` +2022-04-08 11:06:50.228 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Status: Running (Executing on YARN cluster with App id application_1631114297082_432445) +2022-04-08 11:06:50.248 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: -/- Reducer 2: 0/1 +2022-04-08 11:06:52.417 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0/1 Reducer 2: 0/1 +2022-04-08 11:06:55.060 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0(+1)/1 Reducer 2: 0/1 +2022-04-08 11:06:57.495 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 0(+1)/1 +2022-04-08 11:06:57.899 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 1/1 +``` + +完整xml配置文件范例如下: +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` diff --git a/versioned_docs/version-1.0.2/engine_usage/hive.md b/versioned_docs/version-1.0.2/engine_usage/hive.md index c4b530bd10a..f63dc1920a2 100644 --- a/versioned_docs/version-1.0.2/engine_usage/hive.md +++ b/versioned_docs/version-1.0.2/engine_usage/hive.md @@ -88,4 +88,127 @@ In addition to the above engineConn configuration, users can also make custom se ![](/Images/EngineUsage/hive-config.png) -Figure 4-1 User-defined configuration management console of hive \ No newline at end of file +Figure 4-1 User-defined configuration management console of hive + +## 5.Hive modification log display +The default log interface does not display the application_id and the number of tasks completed, the user can output the log as needed +The code blocks that need to be modified in the log4j2-engineconn.xml/log4j2.xml configuration file in the engine are as follows +1.Need to add under the appenders component +```xml + + + +``` +2.Need to add under the root component +```xml + +``` +3.Need to add under the loggers component +```xml + + + +``` +After making the above relevant modifications, the log can add task progress information, which is displayed in the following style +``` +2022-04-08 11:06:50.228 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Status: Running (Executing on YARN cluster with App id application_1631114297082_432445) +2022-04-08 11:06:50.248 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: -/- Reducer 2: 0/1 +2022-04-08 11:06:52.417 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0/1 Reducer 2: 0/1 +2022-04-08 11:06:55.060 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0(+1)/1 Reducer 2: 0/1 +2022-04-08 11:06:57.495 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 0(+1)/1 +2022-04-08 11:06:57.899 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 1/1 +``` + +An example of a complete xml configuration file is as follows: +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` diff --git a/versioned_docs/version-1.0.3/engine_usage/hive.md b/versioned_docs/version-1.0.3/engine_usage/hive.md index b524e07ff08..c01297337fc 100644 --- a/versioned_docs/version-1.0.3/engine_usage/hive.md +++ b/versioned_docs/version-1.0.3/engine_usage/hive.md @@ -87,4 +87,127 @@ In addition to the above engineConn configuration, users can also make custom se ![](/Images/EngineUsage/hive-config.png) -Figure 4-1 User-defined configuration management console of hive \ No newline at end of file +Figure 4-1 User-defined configuration management console of hive + +## 5.Hive modification log display +The default log interface does not display the application_id and the number of tasks completed, the user can output the log as needed +The code blocks that need to be modified in the log4j2-engineconn.xml/log4j2.xml configuration file in the engine are as follows +1.Need to add under the appenders component +```xml + + + +``` +2.Need to add under the root component +```xml + +``` +3.Need to add under the loggers component +```xml + + + +``` +After making the above relevant modifications, the log can add task progress information, which is displayed in the following style +``` +2022-04-08 11:06:50.228 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Status: Running (Executing on YARN cluster with App id application_1631114297082_432445) +2022-04-08 11:06:50.248 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: -/- Reducer 2: 0/1 +2022-04-08 11:06:52.417 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0/1 Reducer 2: 0/1 +2022-04-08 11:06:55.060 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 0(+1)/1 Reducer 2: 0/1 +2022-04-08 11:06:57.495 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 0(+1)/1 +2022-04-08 11:06:57.899 INFO [Linkis-Default-Scheduler-Thread-3] SessionState 1111 printInfo - Map 1: 1/1 Reducer 2: 1/1 +``` + +An example of a complete xml configuration file is as follows: +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +```