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: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,27 @@
1
-
# Loading Data into Apollo with DataStax Bulk Loader
2
-
If you're trying to load data into Apollo from a CSV file or from an existing Cassandra table, then you've come to the right place. This example shows how to quickly load data into Apollo using the [DataStax Bulk Loader](https://docs.datastax.com/en/dsbulk/doc/index.html) (DSBulk for short).
1
+
# Loading Data into Astra with DataStax Bulk Loader
2
+
If you're trying to load data into Astra from a CSV file or from an existing Cassandra table, then you've come to the right place. This example shows how to quickly load data into Astra using the [DataStax Bulk Loader](https://docs.datastax.com/en/dsbulk/doc/index.html) (DSBulk for short).
3
3
4
4
Contributor(s): [Dave Bechberger](https://github.com/bechbd) based on the work of [Brian Hess](https://github.com/brianmhess)
5
5
6
6
## Objectives
7
7
8
-
* Show how to load data into Apollo from a CSV file on the filesystem or from an existing table in Cassandra
8
+
* Show how to load data into Astra from a CSV file on the filesystem or from an existing table in Cassandra
9
9
10
10
## Project Layout
11
11
12
12
*[data.csv](data.csv) - The CSV data to load
13
13
*[schema.cql](schema.cql) - The CQL schema used for this example
14
14
15
15
## How this Works
16
-
Loading data into Apollo using DSBulk is much like loading data into other Cassandra databases with the addition of the requirement to specify the [secure connect bundle](https://docs.datastax.com/en/apollo/aws/doc/dscloud/apollo/dscloudObtainingCredentials.html) as well as the username and password for your Apollo database.
16
+
Loading data into Astra using DSBulk is much like loading data into other Cassandra databases with the addition of the requirement to specify the [secure connect bundle](https://docs.datastax.com/en/astra/aws/doc/dscloud/astra/dscloudObtainingCredentials.html) as well as the username and password for your Astra database.
17
17
18
18
The secure connect bundle is specified using the `-b <INSERT PATH>` parameter on the command line. [See here for more details](https://docs.datastax.com/en/dsbulk/doc/dsbulk/reference/driverOptions.html#driverOptions__driverBasicCloudSecureConnectBundle)
19
19
20
20
The username is specified using the `-u <INSERT USERNAME>` parameter on the command line. [See here for more details](https://docs.datastax.com/en/dsbulk/doc/dsbulk/reference/driverOptions.html#driverOptions__datastaxJavaDriverAdvancedConnectionAuthProviderUsername)
21
21
22
22
The password is specified using the `-p <INSERT PASSWORD>` parameter on the command line. [See here for more details](https://docs.datastax.com/en/dsbulk/doc/dsbulk/reference/driverOptions.html#driverOptions__datastaxJavaDriverAdvancedConnectionAuthProviderPassword)
23
23
24
-
This example only touches the tip of the iceberg of functionality. DSBulk has all the functionality to perform complex loading operations to Apollo as it does to other DDAC and DSE clusters. Check out the docs below for details of the other things it can do:
24
+
This example only touches the tip of the iceberg of functionality. DSBulk has all the functionality to perform complex loading operations to Astra as it does to other DDAC and DSE clusters. Check out the docs below for details of the other things it can do:
*[DataStax Bulk Loader: Introduction and Loading](https://academy.datastax.com/content/datastax-bulk-loader-introduction-and-loading)
@@ -34,17 +34,17 @@ This example only touches the tip of the iceberg of functionality. DSBulk has al
34
34
### Prerequisites
35
35
36
36
* DS Bulk v1.4.0 or greater
37
-
* An Apollo cluster with the schema ([from schema.cql](schema.cql)) loaded and credential information
38
-
**Note** If you need further instruction on how to obtain the secure connect bundle for your Apollo instance then please refer to the documentation located [here](https://docs.datastax.com/en/apollo/aws/doc/dscloud/apollo/dscloudObtainingCredentials.html).
37
+
* An Astra cluster with the schema ([from schema.cql](schema.cql)) loaded and credential information
38
+
**Note** If you need further instruction on how to obtain the secure connect bundle for your Astra instance then please refer to the documentation located [here](https://docs.datastax.com/en/astra/aws/doc/dscloud/astra/dscloudObtainingCredentials.html).
39
39
* A Cassandra cluster (optional if you want to load from Cassandra)
40
40
41
41
### Running
42
42
43
-
To migrate data into Apollo using DS Bulk you first need to ensure that the target Apollo keyspace has had the schema for the `video_ratings_by_user` table created. This is done via using the DataStax Developer Studio that is embedded in your Apollo instance. For more information on how to use the embedded Studio instance please check the documentation located [here](https://docs.datastax.com/en/apollo/aws/doc/dscloud/apollo/dscloudConnectStudio.html).
43
+
To migrate data into Astra using DS Bulk you first need to ensure that the target Astra keyspace has had the schema for the `video_ratings_by_user` table created. This is done via using the DataStax Developer Studio that is embedded in your Astra instance. For more information on how to use the embedded Studio instance please check the documentation located [here](https://docs.datastax.com/en/astra/aws/doc/dscloud/astra/dscloudConnectStudio.html).
44
44
45
45
#### Loading from CSV
46
46
47
-
Here is an example command that will load the data.csv file into the `video_ratings_by_user` table in your Apollo instance.
47
+
Here is an example command that will load the data.csv file into the `video_ratings_by_user` table in your Astra instance.
48
48
49
49
**Note** This loads the data from the file stored in the github repo so the machine running this command will need access to the internet.
50
50
@@ -54,18 +54,18 @@ Here is an example command that will load the data.csv file into the `video_rati
54
54
55
55
#### Loading from an existing Cassandra table
56
56
57
-
To load data from an existing table in a Cassandra keyspace into Apollo there are two options to accomplish this.
57
+
To load data from an existing table in a Cassandra keyspace into Astra there are two options to accomplish this.
58
58
59
59
##### Option 1 - Unload and Load in Separate Steps
60
-
The first option for loading data from an existing Cassandra cluster into Apollo requires that you unload the data from the Cassandra cluster into a local file and then load the data into Apollo. The commands to accomplish this look like this:
60
+
The first option for loading data from an existing Cassandra cluster into Astra requires that you unload the data from the Cassandra cluster into a local file and then load the data into Astra. The commands to accomplish this look like this:
##### Option 2 - Unload and Load by Chaining Steps
68
-
The second option for loading data from an existing Cassandra cluster into Apollo requires that you unload the data from the Cassandra cluster and pipe that into a command load the data into Apollo. This has some advantages as it will run in a single command but it will only run single threaded as it uses stdin/stdout. The commands to accomplish this look like this:
68
+
The second option for loading data from an existing Cassandra cluster into Astra requires that you unload the data from the Cassandra cluster and pipe that into a command load the data into Astra. This has some advantages as it will run in a single command but it will only run single threaded as it uses stdin/stdout. The commands to accomplish this look like this:
0 commit comments