

don’t use any of the addContactPoint() orĪddContactPoints() methods on the Builder)
#CONNECTING TO APOLLO CLOUD MANUAL#
Manual SSL configuration is not necessary.Ī Cluster’s contact points attribute should not be used. The exceptions being:Īn SSL connection will be established automatically. Interacting with any other Cassandra cluster. In most circumstances, the client code for interacting with an Apollo cluster will be the same as

Save and close the ConnectDatabase.java file.
#CONNECTING TO APOLLO CLOUD DRIVER#
The withCloudSecureConnectBundle() method as shown in the following example.ĭataStax Java Driver for Apache Cassandra 3.x import .Cluster import .ResultSet import .Row import .Session import java.io.File public class ConnectDatabase Ĭ. Note: With the Cluster.builder() object, make sure to set the path to the secureĬonnect bundle for your Apollo database ( “/path/to/secure-connect-database_name.zip”) in Runs a CQL query, and prints the output to the console. To use Prefect Server as the backend, run the following Prefect CLI command to configure Prefect for local orchestration: prefect backend server Now you can start the server using the command: prefect server start Changes in Prefect 0.15.5. The following example implements a ConnectDatabase class to connect to your Apollo database, By default, Prefect is configured to use Prefect Cloud as the backend. Copy the following code for your DataStax Driver into the ConnectDatabase.java file. Create a ConnectDatabase.java file in the /src/main/java directory for your Java project. Include the driver artifacts in your pom.xml file according to this pom.xml dependency.Ī. The cloud connect api does not support java 6 or 7.

Ensure you are using Java 8 or higher.Download the secure connect bundle (instructions forĪWS) to obtain connection credentials for your.The following is a Quick Start guide to writing a simple application that can connect to an ApolloĪWS alternatively, have a team member provide access to theirĪpollo database (instructions for GCP andĪWS) to obtain database connection details. The only differences are in how theĭriver is configured in an application and that you will need to obtain a secure connect bundle. The driver to connect to any normal Apache Cassandra® database. Using the DataStax Java Driver to connect to a DataStax Apollo database is almost identical to using
