Skip to content

Commit

Permalink
[Improve][Zeta] Disable restful api v1 by default (#8766)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisoka-X authored Feb 19, 2025
1 parent 7b8298a commit b0f29f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/hazelcast-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ hazelcast:
cluster-name: seatunnel
network:
rest-api:
enabled: true
enabled: false
endpoint-groups:
CLUSTER_WRITE:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion config/hazelcast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ hazelcast:
cluster-name: seatunnel
network:
rest-api:
enabled: true
enabled: false
endpoint-groups:
CLUSTER_WRITE:
enabled: true
Expand Down
5 changes: 3 additions & 2 deletions docs/en/seatunnel-engine/rest-api-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 11

:::caution warn

It is recommended to use the v2 version of the Rest API. The v1 version is deprecated and will be removed in the future.
It is recommended to use the v2 version of the Rest API. The v1 version is deprecated and will be removed in the future. We already disabled the v1 version by default. If you want to use the v1 version, you need to enable it in the `hazelcast.yaml` file.

:::

Expand All @@ -16,7 +16,8 @@ completed jobs. The monitoring API is a RESTful API that accepts HTTP requests a
## Overview

The monitoring API is backed by a web server that runs as part of the node, each node member can provide RESTful api capability.
By default, this server listens at port 5801, which can be configured in hazelcast.yaml like :
By default, the server disables the RESTful API V1, and it can be enabled by setting the `rest-api.enabled` configuration in the `hazelcast.yaml` file.
This server listens at port 5801, which can be configured in hazelcast.yaml like :

```yaml
network:
Expand Down
5 changes: 3 additions & 2 deletions docs/zh/seatunnel-engine/rest-api-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 11

:::caution warn

推荐使用v2版本的Rest API。 v1 版本已弃用,并将在将来删除。
推荐使用v2版本的Rest API。 v1 版本已弃用,并将在将来删除。 我们已经默认关闭了v1版本的API,如果您需要使用v1版本,请在`hazelcast.yaml`文件中启用它。

:::

Expand All @@ -15,7 +15,8 @@ SeaTunnel有一个用于监控的API,可用于查询运行作业的状态和
## 概述

监控API是由运行的web服务提供的,它是节点运行的一部分,每个节点成员都可以提供rest API功能。
默认情况下,该服务监听端口为5801,该端口可以在hazelcast.yaml中配置,如下所示:
默认情况下,服务器禁用了RESTful API V1,可以通过在`hazelcast.yaml`文件中设置`rest-api.enabled`配置来启用它。
该服务监听端口为5801,该端口可以在hazelcast.yaml中配置,如下所示:

```yaml
network:
Expand Down

0 comments on commit b0f29f5

Please sign in to comment.