Skip to content

Commit

Permalink
Fix incorrect usage of localrun command in es sink (apache#11240)
Browse files Browse the repository at this point in the history
  • Loading branch information
murong00 authored and ciaocloud committed Oct 16, 2021
1 parent 3e7ec0f commit 4f300f1
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 42 deletions.
4 changes: 1 addition & 3 deletions site2/docs/io-elasticsearch-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -100,7 +100,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -112,7 +111,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
```bash
$ bin/pulsar standalone
```
Make sure the nar file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.
Make sure the NAR file is available at `connectors/pulsar-io-elastic-search-{{pulsar:version}}.nar`.

3. Start the Pulsar Elasticsearch connector in local run mode using one of the following methods.
* Use the **JSON** configuration as shown previously.
Expand All @@ -101,7 +101,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config '{"elasticSearchUrl":"http://localhost:9200","indexName": "my_index","username": "scooby","password": "doobie"}' \
--inputs elasticsearch_test
```
Expand All @@ -113,7 +112,6 @@ Before using the ElasticSearch sink connector, you need to create a configuratio
--tenant public \
--namespace default \
--name elasticsearch-test-sink \
--sink-type elastic_search \
--sink-config-file elasticsearch-sink.yml \
--inputs elasticsearch_test
```
Expand Down

0 comments on commit 4f300f1

Please sign in to comment.