2016-12-13 8 views

Odpowiedz

0

Może możesz wypróbować ten pakiet?

Ten pakiet pochodzi z DataStax, który jest sterownikiem Cassandry dla Pythona.

Github: https://github.com/datastax/python-driver

API Dokumenty: https://datastax.github.io/python-driver/api/cassandra/cluster.html

from cassandra.cluster import Cluster 
cluster = Cluster(['your_cassandra_ip']) 
session = cluster.connect() 

session.execute('CREATE KEYSPACE IF NOT EXISTS mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };') 
Powiązane problemy