Set up DataStax Enterprise Private preview
You need your DataStax Enterprise administrator or a user who has create role permissions to run these commands; you may not have access yourself. For more details, refer to the Apache Cassandra documentation on role-based access control.
This guide outlines the steps to configure your DataStax Enterprise instance so Atlan can crawl its metadata.
Prerequisites​
Before you begin, ensure you have the following:
- Access to a DataStax Enterprise instance- You need the necessary credentials to connect to your Cassandra instance.
cqlsh
installed- The Cassandra Query Language Shell (cqlsh) is required to execute commands for user and permission management. Ifcqlsh
is not installed, refer to the Apache Cassandra documentation forcqlsh
.
Create an Atlan user role​
This section guides you through creating a dedicated role in DataStax Enterprise for Atlan.
-
Connect to the DataStax Enterprise instance: Use
cqlsh
to connect to your DataStax Enterprise instance. -
Create a dedicated role for Atlan: Run the following command in
cqlsh
to create a role.CREATE ROLE <username> WITH SUPERUSER = false AND LOGIN = true AND PASSWORD = '<password>';
Replace the placeholders
<username>
: The username for the Atlan role.<password>
: A strong and unique password.
Grant permissions to the Atlan user role​
Atlan needs specific permissions to access metadata in DataStax Enterprise Follow these steps to grant the required permissions:
-
Grant
DESCRIBE
on all keyspaces with:GRANT DESCRIBE ON ALL KEYSPACES TO atlan-admin;
-
You may also choose to grant
DESCRIBE
permission on specific keyspaces by running the following command:GRANT DESCRIBE ON KEYSPACE <keyspace_name> TO <username>;
Replace placeholders:
<keyspace_name>
: The name of the keyspace.<username>
: The username for the Atlan role.
Run this command for each keyspace you want Atlan to access.