1- ## Connecting to Apollo (Cloud)
1+ ## Connecting to Astra (Cloud)
22
3- Using the DataStax Java Driver to connect to a DataStax Apollo database is almost identical to using
3+ Using the DataStax Java Driver to connect to a DataStax Astra database is almost identical to using
44the driver to connect to any normal Apache Cassandra® database. The only differences are in how the
55driver is configured in an application and that you will need to obtain a * secure connect bundle* .
66
77### Prerequisites
88
991 . [ Download] [ Download Maven ] and [ install] [ Install Maven ] Maven.
10- 2 . Create an Apollo database on [ GCP] [ Create an Apollo database - GCP ] or
11- [ AWS] [ Create an Apollo database - AWS ] ; alternatively, have a team member provide access to their
12- Apollo database (instructions for [ GCP] [ Access an Apollo database - GCP ] and
13- [ AWS] [ Access an Apollo database - AWS ] ) to obtain database connection details.
10+ 2 . Create an Astra database on [ GCP] [ Create an Astra database - GCP ] or
11+ [ AWS] [ Create an Astra database - AWS ] ; alternatively, have a team member provide access to their
12+ Astra database (instructions for [ GCP] [ Access an Astra database - GCP ] and
13+ [ AWS] [ Access an Astra database - AWS ] ) to obtain database connection details.
14143 . Download the secure connect bundle (instructions for
1515 [ GCP] [ Download the secure connect bundle - GCP ] and
1616 [ AWS] [ Download the secure connect bundle - AWS ] ), that contains connection information such as
@@ -54,10 +54,10 @@ public class Main {
5454 }
5555```
5656
57- The path to the secure connect bundle for your Apollo database is specified with
57+ The path to the secure connect bundle for your Astra database is specified with
5858` withCloudSecureConnectBundle() ` . The authentication credentials must be specified separately with
5959` withAuthCredentials() ` , and match the username and password that were configured when creating the
60- Apollo database.
60+ Astra database.
6161
6262Note the following:
6363
@@ -108,7 +108,7 @@ public class Main {
108108
109109 public static void main (String [] args ) {
110110 // Create the CqlSession object; it will read the configuration file and pick the right
111- // values to connect to the Apollo database.
111+ // values to connect to the Astra database.
112112 try (CqlSession session = CqlSession . builder(). build()) {
113113
114114 ResultSet rs = session. execute(" select release_version from system.local" );
@@ -125,11 +125,11 @@ public class Main {
125125
126126[ Download Maven ] : https://maven.apache.org/download.cgi
127127[ Install Maven ] : https://maven.apache.org/install.html
128- [ Create an Apollo database - GCP ] : https://helpdocs .datastax.com/gcp/dscloud/apollo /dscloudGettingStarted.html#dscloudCreateCluster
129- [ Create an Apollo database - AWS ] : https://helpdocs .datastax.com/aws/dscloud/apollo /dscloudGettingStarted.html#dscloudCreateCluster
130- [ Access an Apollo database - GCP ] : https://helpdocs .datastax.com/gcp/dscloud/apollo /dscloudShareClusterDetails.html
131- [ Access an Apollo database - AWS ] : https://helpdocs .datastax.com/aws/dscloud/apollo /dscloudShareClusterDetails.html
132- [ Download the secure connect bundle - GCP ] : https://helpdocs .datastax.com/gcp/dscloud/apollo /dscloudObtainingCredentials.html
133- [ Download the secure connect bundle - AWS ] : https://helpdocs .datastax.com/aws/dscloud/apollo /dscloudObtainingCredentials.html
128+ [ Create an Astra database - GCP ] : https://docs .datastax.com/en/astra/ gcp/doc/ dscloud/astra /dscloudGettingStarted.html#dscloudCreateCluster
129+ [ Create an Astra database - AWS ] : https://docs .datastax.com/en/astra/ aws/doc/ dscloud/astra /dscloudGettingStarted.html#dscloudCreateCluster
130+ [ Access an Astra database - GCP ] : https://docs .datastax.com/en/astra/ gcp/doc/ dscloud/astra /dscloudShareClusterDetails.html
131+ [ Access an Astra database - AWS ] : https://docs .datastax.com/en/astra/ aws/doc/ dscloud/astra /dscloudShareClusterDetails.html
132+ [ Download the secure connect bundle - GCP ] : https://docs .datastax.com/en/astra/ gcp/doc/ dscloud/astra /dscloudObtainingCredentials.html
133+ [ Download the secure connect bundle - AWS ] : https://docs .datastax.com/en/astra/ aws/doc/ dscloud/astra /dscloudObtainingCredentials.html
134134[ minimal project structure ] : ../core/integration/#minimal-project-structure
135135[ driver documentation ] : ../core/configuration/
0 commit comments