Last active
December 7, 2018 16:07
-
-
Save yanniszark/a127b950ba65619e6af7ca2437b16ce0 to your computer and use it in GitHub Desktop.
Python: Connect to Cassandra
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cassandra.cluster import Cluster | |
# Naming: <cluster-name>-client.<namespace>.cluster.local | |
cluster = Cluster(['rook-cassandra-client.rook-cassandra.svc.cluster.local']) | |
session = cluster.connect() | |
# Do interesting stuff | |
# .... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment