Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or Docker Desktop.
- To connect Apache Cassandra to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to Apache Cassandra.
Implementation
As ScyllaDB is API-compatible with Apache Cassandra, the Cassandra data handler extends the ScyllaDB handler and uses thescylla-driver Python library.
The required arguments to establish a connection are as follows:
- hostis the host name or IP address of the Cassandra database.
- portis the port to use when connecting.
- useris the user to authenticate.
- passwordis the password to authenticate the user.
- keyspaceis the keyspace to connect, the top level container for tables.
- protocol_versionis not required and defaults to 4.