Skip to content

Connect to MTS Distributed

Choose the interface your application uses. For a local evaluation, request access to the private container image before starting Docker Compose.

Cassandra drivers

Use your existing Cassandra drivers and CQL. Point the driver at the MTS native endpoint. In the single-node preview the default is 127.0.0.1:9042.

With a running instance, set MTS_CQL_USERNAME to your configured username. To open an interactive session, run this command and enter the password when prompted.

cqlsh 127.0.0.1 9042 -u "$MTS_CQL_USERNAME"
Supported CQL statements

PostgreSQL clients and ORMs

Connect using standard PostgreSQL clients and drivers, including psql, JDBC and psycopg. Tested with SQLAlchemy, Django and Hibernate.

Request a PostgreSQL endpoint for your evaluation and set MTS_PG_URL to its connection URI. Open it with psql in your shell.

psql "$MTS_PG_URL"

The v0.2.0 Compose package exposes MTS SQL over the Cassandra native protocol. It does not publish a PostgreSQL listener.

SQL in the local preview

DynamoDB SDKs

Point the AWS SDK at MTS. In the Compose preview, enable the optional DynamoDB listener and publish its port as described in the package’s .env.example.

With the local listener on port 8000 and credentials configured for the evaluation, list the tables using the Python SDK.

import boto3

db = boto3.client(
    "dynamodb",
    endpoint_url="http://127.0.0.1:8000",
    region_name="us-east-1",
)
print(db.list_tables()["TableNames"])
Supported DynamoDB operations