Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Connecting to an Apache Cassandra database

Updated on October 16, 2017

You can connect to an Apache Cassandra database to perform save and select operations on Pega® Diagnostic Cloud alert instances without having to use custom SQL or custom Java. This ability improves horizontal scaling and is useful when you want to use a third-party data and reporting tool to access the data in your database.

Use the following high-level steps to configure your Apache Cassandra database and test your connection to it:

Creating a database instance

Before connecting to the database, create a database instance (Data-Admin-DB-Name).

  1. Click +Create > SysAdmin > Database.
  2. Enter a short description.
  3. In the Database field, enter the database name.
  4. Click Create and open.

Connecting to an Apache Cassandra database

Connect to Apache Cassandra.

  1. On the Database tab, in the How to connect field, click use Cassandra cluster configuration listed below.
  2. In the Cassandra Hostnames and Ports section, click Add Host.
  3. In the Hostname field, enter the host name or IP address of a node in the Cassandra cluster.
  4. In the Port field, enter the port to use to connect to this host.
  5. Repeat steps 2 through 4 to add more nodes.
  6. In the Cassandra Cluster section, in the Keyspace field, enter the name of the keyspace in which to store data.
  7. Optional: In the Username field, enter the user name for accessing Apache Cassandra.
  8. Optional: In the Password field, enter the password for accessing the Apache Cassandra.
  9. Click Save.
  10. Click Test connection.

Reading and writing data by using a data type

You can use a data type to add records and create a table in Apache Cassandra to test that you can read and write to the database. This table contains columns for any properties that you define when you create the data type, as well as the properties that are in the parent table.

Set up the data type by completing the following high-level steps:

Defining the data type

  1. From the Data Explorer, click Add data type from the menu at the top right of the explorer.
  2. Enter a label.
  3. Enter a description.
  4. Click Submit. Do not close the data type.

Identifying the class keys and creating the initial data pages and table

  1. To identify class keys and create the initial data pages and table, return to the data type that you just created.
  2. Optional: In the Fields section, click Add field to add fields to your data type. For details about adding fields, see Adding fields to your data model. (link to help)
  3. Optional: Repeat step 2 to add additional fields.
  4. Click Save.
  5. On the Sources tab, click Create a local source.
  6. Click Use as Key in the rows of the fields that are keys.
  7. In the Database field, enter the name of the database rule that you previously created in Creating a database instance.
  8. Click Submit.
  9. Optional: Click the Records tab and add records to the Apache Cassandra database table.
  10. Click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us