Fix contact points in example.py
This commit is contained in:
@@ -15,7 +15,7 @@ from cassandra.query import SimpleStatement
|
|||||||
KEYSPACE = "testkeyspace"
|
KEYSPACE = "testkeyspace"
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
cluster = Cluster(['127.0.0.2', '127.0.0.1'])
|
cluster = Cluster(['127.0.0.1'])
|
||||||
session = cluster.connect()
|
session = cluster.connect()
|
||||||
|
|
||||||
rows = session.execute("SELECT keyspace_name FROM system.schema_keyspaces")
|
rows = session.execute("SELECT keyspace_name FROM system.schema_keyspaces")
|
||||||
|
|||||||
Reference in New Issue
Block a user