Skip to content

Commit

Permalink
[docs] Correct language idenitifiers in IO quickstart documentation (a…
Browse files Browse the repository at this point in the history
…pache#6145)

### Motivation

When I read the documentation about connectors I saw that some code blocks are not highlighted, because of incorrect language identifiers.

### Modifications

Correct language identifiers were applied.
  • Loading branch information
vzhikserg authored and sijie committed Jan 26, 2020
1 parent 91fbc32 commit 2725132
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions site2/docs/io-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ For more information about **how to install a standalone Pulsar and built-in con
```

**Example output**
```shell
```json
[{"workerId":"c-standalone-fw-localhost-6750","workerHostname":"localhost","port":6750}]
```

Expand All @@ -62,8 +62,8 @@ For more information about **how to install a standalone Pulsar and built-in con
curl -s http://localhost:8080/admin/v2/namespaces/public
```

**Example outoupt**
```shell
**Example output**
```json
["public/default","public/functions"]
```

Expand Down Expand Up @@ -184,7 +184,7 @@ You can create a configuration file through one of the following methods.

* YAML

```
```yaml
configs:
roots: "localhost:9042"
keyspace: "pulsar_test_keyspace"
Expand Down Expand Up @@ -233,7 +233,7 @@ to monitor a connector and perform other operations on it.

**Example output**

```bash
```json
{
"tenant": "public",
"namespace": "default",
Expand Down Expand Up @@ -270,7 +270,7 @@ to monitor a connector and perform other operations on it.

**Example output**

```shell
```json
{
"numInstances" : 1,
"numRunning" : 1,
Expand Down Expand Up @@ -314,7 +314,7 @@ to monitor a connector and perform other operations on it.

**Example output**

```shell
```json
{
"numInstances" : 1,
"numRunning" : 1,
Expand Down Expand Up @@ -482,7 +482,7 @@ In this section, you need to configure a JDBC sink connector.
Create a _pulsar-mysql-jdbc-sink.yaml_ file, copy the following contents to this file, and place the file in the `pulsar/connectors` folder.
```bash
```yaml
configs:
userName: "root"
password: "jdbc"
Expand All @@ -494,7 +494,7 @@ In this section, you need to configure a JDBC sink connector.
Create a _avro-schema_ file, copy the following contents to this file, and place the file in the `pulsar/connectors` folder.
```bash
```json
{
"type": "AVRO",
"schema": "{\"type\":\"record\",\"name\":\"Test\",\"fields\":[{\"name\":\"id\",\"type\":[\"null\",\"int\"]},{\"name\":\"name\",\"type\":[\"null\",\"string\"]}]}",
Expand Down Expand Up @@ -523,7 +523,7 @@ In this section, you need to configure a JDBC sink connector.
The schema has been uploaded successfully if the following message appears.
```bash
```json
{"name":"pulsar-mysql-jdbc-sink-topic","schema":"{\"type\":\"record\",\"name\":\"Test\",\"fields\":[{\"name\":\"id\",\"type\":[\"null\",\"int\"]},{\"name\":\"name\",\"type\":[\"null\",\"string\"]}]}","type":"AVRO","properties":{}}
```
Expand Down Expand Up @@ -586,7 +586,7 @@ to monitor a connector and perform other operations on it.
The result shows that only the _mysql-jdbc-sink_ sink is running.
```bash
```json
[
"pulsar-mysql-jdbc-sink"
]
Expand All @@ -607,7 +607,7 @@ to monitor a connector and perform other operations on it.
The result shows the information of the sink connector, including tenant, namespace, topic and so on.
```bash
```json
{
"tenant": "public",
"namespace": "default",
Expand Down Expand Up @@ -646,7 +646,7 @@ to monitor a connector and perform other operations on it.
The result shows the current status of sink connector, including the number of instance, running status, worker ID and so on.
```bash
```json
{
"numInstances" : 1,
"numRunning" : 1,
Expand Down Expand Up @@ -757,7 +757,7 @@ $ bin/pulsar-admin sinks get \
The result shows that the parallelism is 2.
```text
```json
{
"tenant": "public",
"namespace": "default",
Expand Down Expand Up @@ -788,7 +788,7 @@ to delete a connector and perform other operations on it.
This example deletes the _pulsar-mysql-jdbc-sink_ sink connector.
```text
```bash
$ bin/pulsar-admin sinks delete \
--tenant public \
--namespace default \
Expand All @@ -807,7 +807,7 @@ The sink connector has been deleted successfully if the following message appear
This example double-checks the status of the sink connector.
```text
```bash
$ bin/pulsar-admin sinks get \
--tenant public \
--namespace default \
Expand Down

0 comments on commit 2725132

Please sign in to comment.