Skip to content

Commit d09ab78

Browse files
Fix source language on code blocks
1 parent 5c82e3e commit d09ab78

34 files changed

+184
-184
lines changed

docs-src/pulsar-sink-core/modules/ROOT/pages/cfgPulsarColumnWritetimeTimestamp.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In the Apache Pulsar(TM) topic mapping, you can optionally specify which column
66
The mapping setting provides a special property, `__timestamp`.
77
The format is:
88

9-
[source,language-yaml]
9+
[source,yaml]
1010
----
1111
topic:
1212
my_topic:
@@ -27,7 +27,7 @@ The connector will automatically transform it to the database's proper numeric t
2727
that is, to `MICROSECONDS`.
2828
Example:
2929

30-
[source,language-yaml]
30+
[source,yaml]
3131
----
3232
topic:
3333
my_topic:

docs-src/pulsar-sink-core/modules/ROOT/pages/cfgPulsarCqlQuery.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NOTE: This feature is only meant for advanced use cases. Most often, you can use
88
If used, you must provide the bound variables used in the query in the mapping column.
99
For example, give the following query:
1010

11-
[source,language-yaml]
11+
[source,yaml]
1212
----
1313
topic:
1414
my_topic:
@@ -19,7 +19,7 @@ topic:
1919

2020
The corresponding mapping in this example should be defined as:
2121

22-
[source,language-yaml]
22+
[source,yaml]
2323
----
2424
topic:
2525
my_topic:

docs-src/pulsar-sink-core/modules/ROOT/pages/cfgPulsarDisplayingTopic.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ https://pulsar.apache.org/docs/en/reference-cli-tools/#consume
77

88
To show Apache Pulsar messages:
99

10-
[source,language-bash]
10+
[source,bash]
1111
----
1212
bin/pulsar-client consume topic_name -s "subscription_name"
1313
----
@@ -20,7 +20,7 @@ subscription_name:: Arbitrary name for the consumer subscription.
2020

2121
You'll see the message data when a message is received:
2222

23-
[source,no-highlight]
23+
[source,console]
2424
----
2525
----- got message -----
2626
key:[My key], properties:[], content:My content

docs-src/pulsar-sink-core/modules/ROOT/pages/cfgPulsarJsonMessageSchema.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ See the https://github.com/datastax/pulsar-examples/tree/master/producers/src/ma
3333
Ensure that keyspace is replicated to a datacenter that is set in the DataStax Apache Pulsar Connector xref:cfgRefPulsarDseConnection.adoc#contactPoints[contactPoints] parameter.
3434
For example, create the `stocks_keyspace`:
3535
+
36-
[source,language-bash]
36+
[source,bash]
3737
----
3838
cqlsh -e "CREATE KEYSPACE stocks_keyspace \
3939
WITH replication = {'class': 'NetworkTopologyStrategy',\
@@ -45,7 +45,7 @@ Use https://docs.datastax.com/en/dse/6.8/dse-dev/datastax_enterprise/tools/nodet
4545

4646
. Create the table. For example, create the `stocks_table`:
4747
+
48-
[source,language-bash]
48+
[source,bash]
4949
----
5050
cqlsh -e "CREATE TABLE stocks_keyspace.stocks_table ( \
5151
symbol text, \
@@ -59,7 +59,7 @@ cqlsh -e "CREATE TABLE stocks_keyspace.stocks_table ( \
5959

6060
. Verify that all nodes have the same schema version using https://docs.datastax.com/en/dse/6.8/dse-admin/datastax_enterprise/tools/nodetool/toolsDescribeRing.html[nodetool describering]. Replace keyspace\_name:
6161
+
62-
[source,language-bash]
62+
[source,bash]
6363
----
6464
nodetool describering -- keyspace\_name
6565
----
@@ -72,7 +72,7 @@ nodetool describering -- keyspace\_name
7272
+
7373
Example configurations for `stocks_topic` to `stocks_table` using the minimum required settings:
7474
+
75-
[source,language-yaml]
75+
[source,yaml]
7676
----
7777
tasks.max: 1
7878
topics: stocks_topic

docs-src/pulsar-sink-core/modules/ROOT/pages/cfgPulsarMapAvroMessages.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ The DataStax keyspace name is `users_keyspace` and table is `users_table`.
6969

7070
To create the table use the following command:
7171

72-
[source,language-cql]
72+
[source,cql]
7373
----
7474
CREATE TABLE users_keyspace.users_table (userid text primary key, name text,
7575
favoritenumber int, favoritecolor text);
7676
----
7777

7878
Configure the connector and use the following map specification:
7979

80-
[source,language-yaml]
80+
[source,yaml]
8181
----
8282
topic:
8383
users_topic:

docs-src/pulsar-sink-core/modules/ROOT/pages/cfgPulsarMapKeyPair.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Null values are not allowed in PK columns.
1919
Ensure that keyspace is replicated to a datacenter that is set in the DataStax Apache Pulsar Connector xref:cfgRefPulsarDseConnection.adoc#contactPoints[contactPoints] parameter.
2020
For example, create the world_keyspace:
2121
+
22-
[source,language-bash]
22+
[source,bash]
2323
----
2424
cqlsh -e "CREATE KEYSPACE world_keyspace WITH replication = {'class': 'NetworkTopologyStrategy','Cassandra': 1};"
2525
----
@@ -29,14 +29,14 @@ Use https://docs.datastax.com/en/dse/6.8/dse-dev/datastax_enterprise/tools/nodet
2929

3030
. Create the table. For example, create the world\_table:
3131
+
32-
[source,language-bash]
32+
[source,bash]
3333
----
3434
cqlsh -e "CREATE TABLE world_table (recordid int PRIMARY KEY, continent text);"
3535
----
3636

3737
. Verify that all nodes have the same schema version using [nodetool describering](https://docs.datastax.com/en/dse/6.8/dse-admin/datastax_enterprise/tools/nodetool/toolsDescribeRing.html). Replace keyspace_name:
3838
+
39-
[source,language-bash]
39+
[source,bash]
4040
----
4141
nodetool describering -- keyspace_name
4242
----
@@ -48,7 +48,7 @@ nodetool describering -- keyspace_name
4848
+
4949
Example configurations for `world_topic` to `world_table` using the minimum required settings:
5050
+
51-
[source,language-yaml]
51+
[source,yaml]
5252
----
5353
tasks.max: 1
5454
topics: world_topic

docs-src/pulsar-sink-core/modules/ROOT/pages/cfgPulsarMapMultipleTables.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ In the example `stocks_topic`, the key is a basic string and the value is regula
1212
|
1313
APPLE
1414
|
15-
[source,no-highlight]
15+
[source,console]
1616
----
1717
{"symbol":"APPL", "value":208, "exchange":"NASDAQ", "industry":"TECH", "ts":"2018-11-26T19:26:27.483"}
1818
----
1919
|
2020
EXXON MOBIL
2121
|
22-
[source,no-highlight]
22+
[source,console]
2323
----
2424
{"symbol":"M",
2525
"value":80,
@@ -30,14 +30,14 @@ EXXON MOBIL
3030
|
3131
GENERAL MOTORS
3232
|
33-
[source,no-highlight]
33+
[source,console]
3434
----
3535
{"symbol":"GM", "value":38, "exchange":"NYSE", "industry":"AUTO", "ts":"2018-11-26T19:26:27.483"}
3636
----
3737
|
3838
AT&T
3939
|
40-
[source,no-highlight]
40+
[source,console]
4141
----
4242
{"symbol":"AT&T",
4343
"value":33,
@@ -48,7 +48,7 @@ AT&T
4848
|
4949
FORD MOTOR
5050
|
51-
[source,no-highlight]
51+
[source,console]
5252
----
5353
{"symbol":"F", "value":10, "exchange":"NYSE", "industry":"AUTO", "ts":"2018-11-26T19:26:27.483"}
5454
----
@@ -59,7 +59,7 @@ In the DataStax keyspace `stocks_keyspace`, create three different tables that o
5959

6060
* `stocks_table_by_symbol`
6161
+
62-
[source,language-cql]
62+
[source,cql]
6363
----
6464
CREATE TABLE stocks_keyspace.stocks_table_by_symbol (
6565
symbol text,
@@ -73,7 +73,7 @@ CREATE TABLE stocks_keyspace.stocks_table_by_symbol (
7373
7474
* `stocks_table_by_exhange`
7575
+
76-
[source,language-cql]
76+
[source,cql]
7777
----
7878
CREATE TABLE stocks_keyspace.stocks_table_by_exchange (
7979
symbol text,
@@ -87,7 +87,7 @@ CREATE TABLE stocks_keyspace.stocks_table_by_exchange (
8787
8888
* `stocks_table_by_industry`
8989
+
90-
[source,language-cql]
90+
[source,cql]
9191
----
9292
CREATE TABLE stocks_keyspace.stocks_table_by_industry (
9393
symbol text,
@@ -103,7 +103,7 @@ Configure the connector and add all the map specifications:
103103

104104
* `stocks_topic` to `stocks_table_by_symbol`
105105
+
106-
[source,language-yaml]
106+
[source,yaml]
107107
----
108108
topic:
109109
stocks_topic:
@@ -114,7 +114,7 @@ topic:
114114
115115
* `stocks_topic` to `stocks_table_by_exchange`
116116
+
117-
[source,language-yaml]
117+
[source,yaml]
118118
----
119119
“topic:
120120
stocks_topic:
@@ -125,7 +125,7 @@ topic:
125125
126126
* `stocks_topic` to `stocks_table_by_industry`
127127
+
128-
[source,language-yaml]
128+
[source,yaml]
129129
----
130130
topic:
131131
stocks_topic:

docs-src/pulsar-sink-core/modules/ROOT/pages/cfgPulsarMapUdt.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ In the example `stocks_topic`, the key is a basic string and the value is regula
1010
|key|value
1111

1212
|APPLE|
13-
[source,no-highlight]
13+
[source,console]
1414
----
1515
{"symbol":"APPL", "value":208, "exchange":"NASDAQ", "industry":"TECH", "ts":"2018-11-26T19:26:27.483"}
1616
----
1717

1818
|EXXON MOBIL|
19-
[source,no-highlight]
19+
[source,console]
2020
----
2121
{"symbol":"M",
2222
"value":80,
@@ -26,13 +26,13 @@ In the example `stocks_topic`, the key is a basic string and the value is regula
2626
----
2727

2828
|GENERAL MOTORS|
29-
[source,no-highlight]
29+
[source,console]
3030
----
3131
{"symbol":"GM", "value":38, "exchange":"NYSE", "industry":"AUTO", "ts":"2018-11-26T19:26:27.483"}
3232
----
3333

3434
|AT&T|
35-
[source,no-highlight]
35+
[source,console]
3636
----
3737
{"symbol":"AT&T",
3838
"value":33,
@@ -42,7 +42,7 @@ In the example `stocks_topic`, the key is a basic string and the value is regula
4242
----
4343

4444
|FORD MOTOR|
45-
[source,no-highlight]
45+
[source,console]
4646
----
4747
{"symbol":"F", "value":10, "exchange":"NYSE", "industry":"AUTO", "ts":"2018-11-26T19:26:27.483"}
4848
----
@@ -51,7 +51,7 @@ In the example `stocks_topic`, the key is a basic string and the value is regula
5151

5252
The DataStax keyspace name is `stocks_keyspace`. In the stocks keyspace create the user defined type, `stocks_type`:
5353

54-
[source,language-cql]
54+
[source,cql]
5555
----
5656
CREATE TYPE stocks_keyspace.stocks_type (
5757
symbol text,
@@ -63,7 +63,7 @@ CREATE TYPE stocks_keyspace.stocks_type (
6363

6464
Define a table named `stocks_udt_table` that has a column for the primitive string field `name` and a second column that uses the type, `stocks_type`:
6565

66-
[source,language-cql]
66+
[source,cql]
6767
----
6868
CREATE TABLE stocks_keyspace.stocks_table (
6969
name text primary key,
@@ -72,7 +72,7 @@ CREATE TABLE stocks_keyspace.stocks_table (
7272

7373
Configure the connector settings and use the following for the map specification:
7474

75-
[source,language-yaml]
75+
[source,yaml]
7676
----
7777
topic:
7878
stocks_topic:
@@ -87,7 +87,7 @@ The DataStax Apache Pulsar(TM) Connector supports mapping complex user defined t
8787

8888
The DataStax keyspace name is `stocks_keyspace`. In the stocks keyspace create the user defined type, `stocks_complex_type`:
8989

90-
[source,language-cql]
90+
[source,cql]
9191
----
9292
CREATE TYPE stocks_keyspace.stocks_complex_type (
9393
symbol text,
@@ -106,7 +106,7 @@ CREATE TYPE stocks_keyspace.stocks_complex_type (
106106

107107
Define a table named `stocks_complex_udt_table` that has a column for the primitive string field `name` and a second column that uses the type, `stocks_complex_type`:
108108

109-
[source,language-cql]
109+
[source,cql]
110110
----
111111
CREATE TABLE stocks_keyspace.stocks_complex_udt_table (
112112
name text primary key,
@@ -115,7 +115,7 @@ CREATE TABLE stocks_keyspace.stocks_complex_udt_table (
115115

116116
Configure the connector settings and use the following for the map specification:
117117

118-
[source,language-yaml]
118+
[source,yaml]
119119
----
120120
topic:
121121
stocks_topic:

0 commit comments

Comments
 (0)