Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

Commit e1fd192

Browse files
JisoLyaimbajin
andcommitted
doc: fix the url of node status checking (apache#414)
* doc:fix the url of node status checking * doc: reformat json string --------- Co-authored-by: imbajin <jin@apache.org>
1 parent c6dfc4f commit e1fd192

File tree

2 files changed

+86
-1
lines changed

2 files changed

+86
-1
lines changed

content/cn/docs/quickstart/hugegraph/hugegraph-hstore.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,44 @@ curl http://localhost:8520/actuator/health
201201
此外,可以通过 PD 的 API 查看集群中的 Store 节点状态:
202202

203203
```bash
204-
curl http://localhost:8620/pd/api/v1/stores
204+
curl http://localhost:8620/v1/stores
205205
```
206+
207+
如果Store配置成功,上述接口的响应中应该包含当前节点的状态信息,状态为Up表示节点正常运行,这里只展示了一个节点配置成功的响应,如果三个节点都配置成功并正在运行,响应中`storeId`列表应该包含三个id,并且`stateCountMap``Up``numOfService``numOfNormalService`三个字段应该为3。
208+
```javascript
209+
{
210+
"message": "OK",
211+
"data": {
212+
"stores": [
213+
{
214+
"storeId": 8319292642220586694,
215+
"address": "127.0.0.1:8500",
216+
"raftAddress": "127.0.0.1:8510",
217+
"version": "",
218+
"state": "Up",
219+
"deployPath": "/Users/{your_user_name}/hugegraph/apache-hugegraph-incubating-1.5.0/apache-hugegraph-store-incubating-1.5.0/lib/hg-store-node-1.5.0.jar",
220+
"dataPath": "./storage",
221+
"startTimeStamp": 1754027127969,
222+
"registedTimeStamp": 1754027127969,
223+
"lastHeartBeat": 1754027909444,
224+
"capacity": 494384795648,
225+
"available": 346535829504,
226+
"partitionCount": 0,
227+
"graphSize": 0,
228+
"keyCount": 0,
229+
"leaderCount": 0,
230+
"serviceName": "127.0.0.1:8500-store",
231+
"serviceVersion": "",
232+
"serviceCreatedTimeStamp": 1754027127000,
233+
"partitions": []
234+
}
235+
],
236+
"stateCountMap": {
237+
"Up": 1
238+
},
239+
"numOfService": 1,
240+
"numOfNormalService": 1
241+
},
242+
"status": 0
243+
}
244+
```

content/en/docs/quickstart/hugegraph/hugegraph-pd.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,49 @@ curl http://localhost:8620/actuator/health
136136
```
137137

138138
If it returns `{"status":"UP"}`, it indicates that the PD service has been successfully started.
139+
140+
Additionally, you can verify the status of the Store node by querying the PD API:
141+
142+
```bash
143+
curl http://localhost:8620/v1/stores
144+
```
145+
146+
If the Store is configured successfully, the response of the above interface should contain the status information of the current node. The status "Up" indicates that the node is running normally. Only the response of one node configuration is shown here. If all three nodes are configured successfully and are running, the `storeId` list in the response should contain three IDs, and the `Up`, `numOfService`, and `numOfNormalService` fields in `stateCountMap` should be 3.
147+
148+
```javascript
149+
{
150+
"message": "OK",
151+
"data": {
152+
"stores": [
153+
{
154+
"storeId": 8319292642220586694,
155+
"address": "127.0.0.1:8500",
156+
"raftAddress": "127.0.0.1:8510",
157+
"version": "",
158+
"state": "Up",
159+
"deployPath": "/Users/{your_user_name}/hugegraph/apache-hugegraph-incubating-1.5.0/apache-hugegraph-store-incubating-1.5.0/lib/hg-store-node-1.5.0.jar",
160+
"dataPath": "./storage",
161+
"startTimeStamp": 1754027127969,
162+
"registedTimeStamp": 1754027127969,
163+
"lastHeartBeat": 1754027909444,
164+
"capacity": 494384795648,
165+
"available": 346535829504,
166+
"partitionCount": 0,
167+
"graphSize": 0,
168+
"keyCount": 0,
169+
"leaderCount": 0,
170+
"serviceName": "127.0.0.1:8500-store",
171+
"serviceVersion": "",
172+
"serviceCreatedTimeStamp": 1754027127000,
173+
"partitions": []
174+
}
175+
],
176+
"stateCountMap": {
177+
"Up": 1
178+
},
179+
"numOfService": 1,
180+
"numOfNormalService": 1
181+
},
182+
"status": 0
183+
}
184+
```

0 commit comments

Comments
 (0)