fix supervisor spec api submission commands (#14877)

This commit is contained in:
Giulio Talarico 2023-08-23 11:08:09 +02:00 committed by GitHub
parent e806d09309
commit 76e5048aab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -268,13 +268,13 @@ You can also use the Druid API to submit a supervisor spec.
1. Run the following command to download the sample spec:
```bash
curl -O https://druid.apache.org/docs/latest/assets/files/kttm-kafka-supervisor.json
curl -o kttm-kafka-supervisor.json https://raw.githubusercontent.com/apache/druid/master/docs/assets/files/kttm-kafka-supervisor.json
```
2. Run the following command to submit the spec in the `kttm-kafka-supervisor.json` file:
```bash
curl -XPOST -H 'Content-Type: application/json' kttm-kafka-supervisor.json http://localhost:8081/druid/indexer/v1/supervisor
curl -X POST -H 'Content-Type: application/json' -d @kttm-kafka-supervisor.json http://localhost:8081/druid/indexer/v1/supervisor
```
After Druid successfully creates the supervisor, you get a response containing the supervisor ID: `{"id":"kttm-kafka-supervisor-api"}`.