【发布时间】:2014-05-04 19:37:03
【问题描述】:
我可能缺少什么?我无法使用 python Cassandra-Driver 进行连接,但是在使用 CQL 模块时我似乎能够正常连接。
cluster = Cluster(
contact_points=['10.x.x.xx',],
port=9160)
session = cluster.connect()
session.set_keyspace("mykeyspace")
输出:
cassandra.cluster.NoHostAvailable: ('无法连接到任何服务器', {'10.0.x.xx': ConnectionShutdown('与10.0.x.xx的连接已关闭',)})
另外,如果这很重要,我会从具有单个节点的虚拟机托管 cassandra。
【问题讨论】:
标签: python-2.7 cassandra virtual-machine