RocMarshal commented on a change in pull request #13212: URL: https://github.com/apache/flink/pull/13212#discussion_r477121465
########## File path: docs/monitoring/historyserver.zh.md ########## @@ -22,62 +22,67 @@ specific language governing permissions and limitations under the License. --> -Flink has a history server that can be used to query the statistics of completed jobs after the corresponding Flink cluster has been shut down. +Flink 提供了 history server,可以在相应的 Flink 集群关闭之后查询已完成作业的统计信息。 -Furthermore, it exposes a REST API that accepts HTTP requests and responds with JSON data. +此外,它暴露了一套 REST API,该 API 接受 HTTP 请求并以 JSON 数据格式进行响应。 Review comment: ```suggestion 此外,它暴露了一套 REST API,该 API 接受 HTTP 请求并返回 JSON 格式的数据。 ``` ########## File path: docs/monitoring/historyserver.zh.md ########## @@ -22,62 +22,67 @@ specific language governing permissions and limitations under the License. --> -Flink has a history server that can be used to query the statistics of completed jobs after the corresponding Flink cluster has been shut down. +Flink 提供了 history server,可以在相应的 Flink 集群关闭之后查询已完成作业的统计信息。 -Furthermore, it exposes a REST API that accepts HTTP requests and responds with JSON data. +此外,它暴露了一套 REST API,该 API 接受 HTTP 请求并以 JSON 数据格式进行响应。 * This will be replaced by the TOC {:toc} -## Overview +<a name="overview"></a> -The HistoryServer allows you to query the status and statistics of completed jobs that have been archived by a JobManager. +## 概览 -After you have configured the HistoryServer *and* JobManager, you start and stop the HistoryServer via its corresponding startup script: +HistoryServer 允许查询 JobManager 存档的已完成作业的状态和统计信息。 + +在配置 HistoryServer *和* JobManager 之后,你可以使用其相应的启动脚本来启动和停止 HistoryServer: Review comment: ```suggestion 在配置 HistoryServer *和* JobManager 之后,你可以使用相应的脚本来启动和停止 HistoryServer: ``` ########## File path: docs/monitoring/historyserver.zh.md ########## @@ -22,62 +22,67 @@ specific language governing permissions and limitations under the License. --> -Flink has a history server that can be used to query the statistics of completed jobs after the corresponding Flink cluster has been shut down. +Flink 提供了 history server,可以在相应的 Flink 集群关闭之后查询已完成作业的统计信息。 -Furthermore, it exposes a REST API that accepts HTTP requests and responds with JSON data. +此外,它暴露了一套 REST API,该 API 接受 HTTP 请求并以 JSON 数据格式进行响应。 * This will be replaced by the TOC {:toc} -## Overview +<a name="overview"></a> -The HistoryServer allows you to query the status and statistics of completed jobs that have been archived by a JobManager. +## 概览 -After you have configured the HistoryServer *and* JobManager, you start and stop the HistoryServer via its corresponding startup script: +HistoryServer 允许查询 JobManager 存档的已完成作业的状态和统计信息。 + +在配置 HistoryServer *和* JobManager 之后,你可以使用其相应的启动脚本来启动和停止 HistoryServer: {% highlight shell %} -# Start or stop the HistoryServer +# 启动或者停止 HistoryServer bin/historyserver.sh (start|start-foreground|stop) {% endhighlight %} -By default, this server binds to `localhost` and listens at port `8082`. +默认情况下,此服务器绑定到 `localhost` 并监听 `8082` 端口。 + +目前,只能将 HistoryServer 作为独立的进程运行。 -Currently, you can only run it as a standalone process. +<a name="configuration"></a> -## Configuration +## 配置参数 -The configuration keys `jobmanager.archive.fs.dir` and `historyserver.archive.fs.refresh-interval` need to be adjusted for archiving and displaying archived jobs. +配置项 `jobmanager.archive.fs.dir` 和 `historyserver.archive.fs.refresh-interval` 需要根据归档路径和已归档作业刷新间隔进行调整。 Review comment: ```suggestion 配置项 `jobmanager.archive.fs.dir` 和 `historyserver.archive.fs.refresh-interval` 需要根据存档路径和已存档作业刷新间隔进行调整。 ``` ########## File path: docs/monitoring/historyserver.zh.md ########## @@ -22,62 +22,67 @@ specific language governing permissions and limitations under the License. --> -Flink has a history server that can be used to query the statistics of completed jobs after the corresponding Flink cluster has been shut down. +Flink 提供了 history server,可以在相应的 Flink 集群关闭之后查询已完成作业的统计信息。 -Furthermore, it exposes a REST API that accepts HTTP requests and responds with JSON data. +此外,它暴露了一套 REST API,该 API 接受 HTTP 请求并以 JSON 数据格式进行响应。 * This will be replaced by the TOC {:toc} -## Overview +<a name="overview"></a> -The HistoryServer allows you to query the status and statistics of completed jobs that have been archived by a JobManager. +## 概览 -After you have configured the HistoryServer *and* JobManager, you start and stop the HistoryServer via its corresponding startup script: +HistoryServer 允许查询 JobManager 存档的已完成作业的状态和统计信息。 + +在配置 HistoryServer *和* JobManager 之后,你可以使用其相应的启动脚本来启动和停止 HistoryServer: {% highlight shell %} -# Start or stop the HistoryServer +# 启动或者停止 HistoryServer bin/historyserver.sh (start|start-foreground|stop) {% endhighlight %} -By default, this server binds to `localhost` and listens at port `8082`. +默认情况下,此服务器绑定到 `localhost` 并监听 `8082` 端口。 Review comment: ```suggestion 默认情况下,此服务器绑定到 `localhost` 的 `8082` 端口。 ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org