Skip to content

Commit 1055f04

Browse files
authored
DOC-5730 remove tabs and collapsibles from manually written content (#42)
* collapsibles - uninstall, pre1.0 upgrade * collapsibles - in progress pages * collapsibles - cqlsh quickstart * collapsibles - manage cli * collapsibles - install * tabs - in progress pages * tabs - manage cli * tabs - upgrade topics * tabs - install
1 parent 277d20e commit 1055f04

12 files changed

Lines changed: 322 additions & 1090 deletions

in-progress/administration.adoc

Lines changed: 15 additions & 93 deletions
Large diffs are not rendered by default.

in-progress/astra-streaming-cli.adoc

Lines changed: 17 additions & 114 deletions
Large diffs are not rendered by default.

in-progress/change-data-capture.adoc

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@ astra db create cdc_demo_db -r us-east1 -k cdc_demo_keyspace
1515
----
1616

1717
.Result
18-
[%collapsible]
19-
====
2018
[source,console]
2119
----
2220
Database 'cdc_demo_db' has been created with id 'ce5e563c-3248-4064-b03c-5892433a1347'. It is now active after waiting 422 seconds.
2321
----
24-
====
2522

2623
== Create a streaming tenant
2724

@@ -33,14 +30,11 @@ astra streaming create cdc-demo-tenant -c gcp -r useast1
3330
----
3431

3532
.Result
36-
[%collapsible]
37-
====
3833
[source,console]
3934
----
4035
https://api.astra.datastax.com/v2/streaming/tenants/cdc-demo-tenant
4136
[OK] Tenant 'cdc-demo-tenant' has being created.
4237
----
43-
====
4438

4539
== Create a table in your database
4640

@@ -56,13 +50,10 @@ astra db cqlsh exec cdc_demo_db \
5650
----
5751

5852
.Result
59-
[%collapsible]
60-
====
6153
[source,console]
6254
----
6355
[INFO] Cqlsh is starting, please wait for connection establishment...
6456
----
65-
====
6657

6758
Confirm table creation:
6859
+
@@ -73,8 +64,6 @@ astra db cqlsh exec cdc_demo_db \
7364
----
7465

7566
.Result
76-
[%collapsible]
77-
====
7867
[source,console]
7968
----
8069
[INFO] Cqlsh is starting, please wait for connection establishment...
@@ -84,7 +73,6 @@ astra db cqlsh exec cdc_demo_db \
8473
8574
(0 rows)
8675
----
87-
====
8876

8977
== Create a CDC connection
9078

@@ -101,13 +89,10 @@ astra db create-cdc cdc_demo_db \
10189
////
10290
// TODO: The command is not working as expected. Must investigate and figure out why it is reporting the following error: [ERROR] INVALID_ARGUMENT: Error Code=422(422) Invalid information provided to create DB: 422 Unprocessable Entity: databaseId, keyspace, tableName, and orgId are mandatory fields
10391
.Result
104-
[%collapsible]
105-
====
10692
[source,console]
10793
----
10894
10995
----
110-
====
11196
////
11297

11398
Use `xref:commands:astra-db-list-cdcs.adoc[]` to confirm CDC details for the database and tenant:
@@ -118,8 +103,6 @@ astra db list-cdcs cdc_demo_db
118103
----
119104

120105
.Result
121-
[%collapsible]
122-
====
123106
[source,console]
124107
----
125108
+-----------------------+-------------------+----------------+----------------+--------------------+----------------+----------------+
@@ -128,16 +111,13 @@ astra db list-cdcs cdc_demo_db
128111
| 57a3024f-cdcdemotable | cdc_demo_keyspace | cdc_demo_table | cdc-demo-tenant| pulsar-aws-useast1 | astracdc | Running |
129112
+-----------------------+-------------------+----------------+----------------+--------------------+----------------+----------------+
130113
----
131-
====
132114

133115
[source,shell]
134116
----
135117
astra streaming list-cdc cdc-demo-tenant
136118
----
137119

138120
.Result
139-
[%collapsible]
140-
====
141121
[source,console]
142122
----
143123
+--------------------+----------------+----------------+-------------------+----------------+----------------+
@@ -146,8 +126,7 @@ astra streaming list-cdc cdc-demo-tenant
146126
| pulsar-aws-useast1 | astracdc | cdc_demo_db | cdc_demo_keyspace | cdc_demo_table | running |
147127
+--------------------+----------------+----------------+-------------------+----------------+----------------+
148128
----
149-
====
150129

151130
== Connect a sink
152131

153-
After you enable CDC on your {db-serverless} database, you're ready to xref:astra-streaming:developing:astream-cdc.adoc#connect-a-sink[connect a sink].
132+
After you enable CDC on your {db-serverless} database, you're ready to xref:astra-streaming:developing:astream-cdc.adoc#connect-a-sink[connect a sink].

in-progress/dsbulk.adoc

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ astra db dsbulk load **DB_ID** -k **KEYSPACE_NAME** -t **TABLE_NAME** --url **FI
2323
----
2424

2525
.Result
26-
[%collapsible]
27-
====
2826
[source,console]
2927
----
3028
[INFO] Downloading Dsbulk, please wait...
@@ -44,10 +42,9 @@ Checkpoints for the current operation were written to checkpoint.csv.
4442
To resume the current operation, re-run it with the same settings, and add the following command line flag:
4543
--dsbulk.log.checkpoint.file=/Users/USERNAME/logs/LOAD_20250123-020734-995267/checkpoint.csv
4644
----
47-
====
4845

4946
[TIP]
50-
======
47+
====
5148
You can use the `xref:commands:astra-db-cqlsh-exec.adoc[]` command to check that the data imported successfully:
5249
5350
[source,shell,subs="+quotes"]
@@ -56,8 +53,6 @@ astra db cqlsh exec **DB_ID** "SELECT * FROM **KEYSPACE_NAME**.**TABLE_NAME** LI
5653
----
5754
5855
.Result
59-
[%collapsible]
60-
====
6156
[source,console]
6257
----
6358
[INFO] Cqlsh is starting, please wait for connection establishment...
@@ -88,7 +83,6 @@ astra db cqlsh exec **DB_ID** "SELECT * FROM **KEYSPACE_NAME**.**TABLE_NAME** LI
8883
(20 rows)
8984
----
9085
====
91-
======
9286

9387
== Unload data
9488

@@ -100,8 +94,6 @@ astra db dsbulk unload **DB_ID** -k **KEYSPACE_NAME** -t **TABLE_NAME** --url **
10094
----
10195

10296
.Result
103-
[%collapsible]
104-
====
10597
[source,console]
10698
----
10799
[INFO] RUNNING: /Users/USERNAME/.astra/dsbulk-1.11.0/bin/dsbulk unload -u token -p AstraCS:FZm... -b /Users/USERNAME/.astra/scb/scb_91b35105-a5aa-4cd5-a93b-900ac58452ba_us-east1.zip -k dsbulk_demo_keyspace -t cities_by_country -logDir ./logs --log.verbosity normal --schema.allowMissingFields true -maxConcurrentQueries AUTO -delim , -url unloaded_data -header true -encoding UTF-8 -skipRecords 0 -maxErrors 100
@@ -116,7 +108,6 @@ Checkpoints for the current operation were written to checkpoint.csv.
116108
To resume the current operation, re-run it with the same settings, and add the following command line flag:
117109
--dsbulk.log.checkpoint.file=/Users/USERNAME/logs/UNLOAD_20250123-021231-557959/checkpoint.csv
118110
----
119-
====
120111

121112
== Count data
122113

@@ -128,8 +119,6 @@ astra db dsbulk count **DB_ID** -k **KEYSPACE_NAME** -t **TABLE_NAME**
128119
----
129120

130121
.Result
131-
[%collapsible]
132-
====
133122
[source,console]
134123
----
135124
[INFO] RUNNING: /Users/USERNAME/.astra/dsbulk-1.11.0/bin/dsbulk count -u token -p AstraCS:FZm... -b /Users/USERNAME/.astra/scb/scb_91b35105-a5aa-4cd5-a93b-900ac58452ba_us-east1.zip -k dsbulk_demo_keyspace -t cities_by_country -logDir ./logs --log.verbosity normal --schema.allowMissingFields true -maxConcurrentQueries AUTO
@@ -145,7 +134,6 @@ To resume the current operation, re-run it with the same settings, and add the f
145134
--dsbulk.log.checkpoint.file=/Users/USERNAME/logs/COUNT_20250123-021120-127216/checkpoint.csv
146135
134574
147136
----
148-
====
149137

150138
== Complete {dsbulk-short} example
151139

@@ -159,13 +147,10 @@ astra db create dsbulk_demo_db -r us-east1 -k dsbulk_demo_keyspace
159147
----
160148
+
161149
.Result
162-
[%collapsible]
163-
====
164150
[source,console]
165151
----
166152
Database 'dsbulk_demo_db' has been created with id '8b8fea68-404e-4f12-9a79-02079060adfa'. It is now active after waiting 433 seconds.
167153
----
168-
====
169154

170155
. Download the xref:ROOT:attachment$cities.csv[cities.csv] file and move it to the directory where you run {product} commands.
171156
+
@@ -190,16 +175,13 @@ astra db cqlsh start dsbulk_demo_db -k dsbulk_demo_keyspace
190175
----
191176
+
192177
.Result
193-
[%collapsible]
194-
====
195178
[source,console]
196179
----
197180
Connected to cndb at 127.0.0.1:9042.
198181
[cqlsh 6.8.0 | Cassandra 4.0.0.6816 | CQL spec 3.4.5 | Native protocol v4]
199182
Use HELP for help.
200183
token@cqlsh:dsbulk_demo_keyspace>
201184
----
202-
====
203185
+
204186
.. Copy and paste the following CQL statement into the `cqlsh` prompt and press kbd:[Enter]:
205187
+
@@ -233,8 +215,6 @@ astra db dsbulk load dsbulk_demo_db -k dsbulk_demo_keyspace -t cities_by_country
233215
----
234216
+
235217
.Result
236-
[%collapsible]
237-
====
238218
[source,console]
239219
----
240220
[INFO] RUNNING: /Users/USERNAME/.astra/dsbulk-1.11.0/bin/dsbulk load -u token -p AstraCS:FZm... -b /Users/USERNAME/.astra/scb/scb_91b35105-a5aa-4cd5-a93b-900ac58452ba_us-east1.zip -k dsbulk_demo_keyspace -t cities_by_country -logDir ./logs --log.verbosity normal --schema.allowMissingFields true -maxConcurrentQueries AUTO -delim , -url cities.csv -header true -encoding UTF-8 -skipRecords 0 -maxErrors 100
@@ -252,7 +232,6 @@ Checkpoints for the current operation were written to checkpoint.csv.
252232
To resume the current operation, re-run it with the same settings, and add the following command line flag:
253233
--dsbulk.log.checkpoint.file=/Users/USERNAME/logs/LOAD_20250123-020734-995267/checkpoint.csv
254234
----
255-
====
256235

257236
. Confirm that the data loaded successfully:
258237
+
@@ -262,8 +241,6 @@ astra db cqlsh exec dsbulk_demo_db "select * from dsbulk_demo_keyspace.cities_by
262241
----
263242
+
264243
.Result
265-
[%collapsible]
266-
====
267244
[source,console]
268245
----
269246
[INFO] Cqlsh is starting, please wait for connection establishment...
@@ -293,7 +270,6 @@ astra db cqlsh exec dsbulk_demo_db "select * from dsbulk_demo_keyspace.cities_by
293270
294271
(20 rows)
295272
----
296-
====
297273

298274
. Count the loaded data:
299275
+
@@ -303,8 +279,6 @@ astra db dsbulk count dsbulk_demo_db -k dsbulk_demo_keyspace -t cities_by_countr
303279
----
304280
+
305281
.Result
306-
[%collapsible]
307-
====
308282
[source,console]
309283
----
310284
[INFO] RUNNING: /Users/USERNAME/.astra/dsbulk-1.11.0/bin/dsbulk count -u token -p AstraCS:FZm... -b /Users/USERNAME/.astra/scb/scb_91b35105-a5aa-4cd5-a93b-900ac58452ba_us-east1.zip -k dsbulk_demo_keyspace -t cities_by_country -logDir ./logs --log.verbosity normal --schema.allowMissingFields true -maxConcurrentQueries AUTO
@@ -320,7 +294,6 @@ To resume the current operation, re-run it with the same settings, and add the f
320294
--dsbulk.log.checkpoint.file=/Users/USERNAME/logs/COUNT_20250123-021120-127216/checkpoint.csv
321295
134574
322296
----
323-
====
324297

325298
. Unload the data into CSV files:
326299
+
@@ -330,8 +303,6 @@ astra db dsbulk unload dsbulk_demo_db -k dsbulk_demo_keyspace -t cities_by_count
330303
----
331304
+
332305
.Result
333-
[%collapsible]
334-
====
335306
[source,console]
336307
----
337308
[INFO] RUNNING: /Users/USERNAME/.astra/dsbulk-1.11.0/bin/dsbulk unload -u token -p AstraCS:FZm... -b /Users/USERNAME/.astra/scb/scb_91b35105-a5aa-4cd5-a93b-900ac58452ba_us-east1.zip -k dsbulk_demo_keyspace -t cities_by_country -logDir ./logs --log.verbosity normal --schema.allowMissingFields true -maxConcurrentQueries AUTO -delim , -url unloaded_data -header true -encoding UTF-8 -skipRecords 0 -maxErrors 100
@@ -346,6 +317,5 @@ Checkpoints for the current operation were written to checkpoint.csv.
346317
To resume the current operation, re-run it with the same settings, and add the following command line flag:
347318
--dsbulk.log.checkpoint.file=/Users/USERNAME/logs/UNLOAD_20250123-021231-557959/checkpoint.csv
348319
----
349-
====
350320
+
351-
This command unloads row data from the `cities_by_country` table, and stores it as CSV files within a subsirectory names `unloaded_data` in the same directory where you ran the command.
321+
This command unloads row data from the `cities_by_country` table, and stores it as CSV files within a subsirectory names `unloaded_data` in the same directory where you ran the command.

0 commit comments

Comments
 (0)