You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-src/astra-cli-core/modules/ROOT/pages/astra-streaming-cli.adoc
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -949,3 +949,67 @@ If the directory doesn't exist, the {product} will report the following error: `
949
949
CDC for {astra_db} automatically captures changes in real time, de-duplicates the changes, and then streams the clean set of changed data into xref:astra-streaming:ROOT:index.adoc[{astra_stream}] where it can be processed by client applications or sent to downstream systems.
950
950
951
951
For more information about using the {product} to configure CDC, see xref:ROOT:managing.adoc#cdc[Configure Change Data Capture].
952
+
953
+
Use the `streaming list-cdc` command to list the CDC connections associated with a tenant:
The following procedure provides an end-to-end example of how to use the {product}'s built-in DSBulk support to load data into an {astra_db} database, get information about the data, and unload the data into CSV files:
2258
+
The following end-to-end example shows how to use the {product}'s built-in DSBulk support to load data into an {astra_db} database, get information about the data, and unload the data into CSV files:
2259
2259
2260
2260
. (Optional) This procedure assumes that you have a database and keyspace both named `demo`:
2261
2261
+
@@ -2937,7 +2937,7 @@ SYNOPSIS
2937
2937
----
2938
2938
2939
2939
[#cdc]
2940
-
== Configure Change Data Capture (CDC)
2940
+
== Change Data Capture (CDC)
2941
2941
2942
2942
[IMPORTANT]
2943
2943
====
@@ -2947,13 +2947,243 @@ For more information, see https://www.datastax.com/pricing/astra-streaming[{astr
2947
2947
2948
2948
CDC for {astra_db} automatically captures changes in real time, de-duplicates the changes, and then streams the clean set of changed data into xref:astra-streaming:ROOT:index.adoc[{astra_stream}] where it can be processed by client applications or sent to downstream systems.
2949
2949
2950
-
The following procedure describes how to use the {product} to enable CDC on a {db-serverless} database:
2950
+
Use the `astra db create-cdc` command to create a CDC connection for a table in a {db-serverless} database:
2951
+
2952
+
[source,bash,subs="+quotes"]
2953
+
----
2954
+
astra db create-cdc **DATABASE_NAME** \
2955
+
-k **KEYSPACE_NAME** \
2956
+
--table **TABLE_NAME** \
2957
+
--tenant **TENANT_NAME**
2958
+
----
2959
+
2960
+
////
2961
+
// 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
2962
+
.Result
2963
+
[%collapsible]
2964
+
====
2965
+
[source,console]
2966
+
----
2967
+
2968
+
----
2969
+
====
2970
+
////
2971
+
2972
+
Use the `astra db list-cdc` command to list the CDC connections for a specifc database:
Use the `astra db delete-cdc` command to delete a CDC connection for a specific table:
2993
+
2994
+
[source,bash,subs="+quotes"]
2995
+
----
2996
+
astra db delete-cdc **DATABASE_NAME** \
2997
+
-k **KEYSPACE_NAME** \
2998
+
--table **TABLE_NAME** \
2999
+
--tenant **TENANT_NAME**
3000
+
----
3001
+
3002
+
////
3003
+
// 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
3004
+
.Result
3005
+
[%collapsible]
3006
+
====
3007
+
[source,console]
3008
+
----
3009
+
3010
+
----
3011
+
====
3012
+
////
3013
+
3014
+
=== `db create-cdc` options
3015
+
3016
+
[source,console]
3017
+
----
3018
+
NAME
3019
+
astra db create-cdc - Create a CDC to pulsar
3020
+
3021
+
SYNOPSIS
3022
+
astra db create-cdc [ {-cf | --config-file} <CONFIG_FILE> ]
astra db cqlsh cdc_demo_db -e "CREATE TABLE IF NOT EXISTS cdc_demo_keyspace.cdc_demo_table (key text PRIMARY KEY, c1 text);"
3227
+
astra db cqlsh cdc_demo_db -e \
3228
+
"CREATE TABLE IF NOT EXISTS cdc_demo_keyspace.cdc_demo_table ( \
3229
+
key text PRIMARY KEY, \
3230
+
c1 text \
3231
+
);"
2996
3232
----
2997
3233
+
2998
3234
.Result
@@ -3008,7 +3244,8 @@ astra db cqlsh cdc_demo_db -e "CREATE TABLE IF NOT EXISTS cdc_demo_keyspace.cdc_
3008
3244
+
3009
3245
[source,bash]
3010
3246
----
3011
-
astra db cqlsh cdc_demo_db -e "SELECT * FROM cdc_demo_keyspace.cdc_demo_table"
3247
+
astra db cqlsh cdc_demo_db -e \
3248
+
"SELECT * FROM cdc_demo_keyspace.cdc_demo_table"
3012
3249
----
3013
3250
+
3014
3251
.Result
@@ -3025,13 +3262,18 @@ astra db cqlsh cdc_demo_db -e "SELECT * FROM cdc_demo_keyspace.cdc_demo_table"
3025
3262
----
3026
3263
====
3027
3264
3028
-
. Create a CDC connector.
3265
+
. Create a CDC connection.
3029
3266
+
3030
3267
[source,bash]
3031
3268
----
3032
-
astra db create-cdc cdc_demo_db -k cdc_demo_keyspace --table cdc_demo_table --tenant cdc-demo-tenant
3269
+
astra db create-cdc cdc_demo_db \
3270
+
-k cdc_demo_keyspace \
3271
+
--table cdc_demo_table \
3272
+
--tenant cdc-demo-tenant
3033
3273
----
3034
3274
+
3275
+
////
3276
+
// 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
// TODO: The command is not worrking 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
3285
+
////
3044
3286
3045
3287
. Confirm CDC details for the database and tenant.
0 commit comments