GO-Zheng commented on issue #266:
URL:
https://github.com/apache/kvrocks-controller/issues/266#issuecomment-2667746173
Sorry, I didn't notice this option.
```shell
Flags:
-h, --help help for kvctl
-H, --host string The host of the Kvrocks controller service (default
"http://127.0.0.1:9379")
```
I tried it, and it does work, but the command line can only find it when the
ip is "127.0.0.1".
I changed the port to "9738" and used "-H" and it worked.
```shell
# addr: "127.0.0.1:9378"
-> # ./_build/kvctl -H "http://127.0.0.1:9378" create namespace my-ns
create namespace: my-ns successfully.
```
But when I used "192.168.1.198:9379", the command failed.
```shell
# addr: "192.168.1.198:9379"
-> # ./_build/kvctl -H "http://192.168.1.198:9379" create namespace my-ns
error: unexpected end of JSON input
```
However, if I access the port directly, it is available.
```shell
# addr: "192.168.1.198:9379"
-> # curl http://192.168.1.198:9379/api/v1/namespaces
{"data":{"namespaces":["my-ns"]}}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]