con = cql.connect(host="127.0.0.1",port=9160,keyspace="my_keyspace",cql_version='3.0.0')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/cql/connection.py", line 143, in connect
File "build/bdist.linux-x86_64/egg/cql/connection.py", line 63, in __init__
File "build/bdist.linux-x86_64/egg/cql/thrifteries.py", line 177, in set_initial_keyspace
File "build/bdist.linux-x86_64/egg/cql/cursor.py", line 80, in execute
File "build/bdist.linux-x86_64/egg/cql/thrifteries.py", line 77, in get_response
File "build/bdist.linux-x86_64/egg/cql/thrifteries.py", line 98, in handle_cql_execution_errors
cql.apivalues.ProgrammingError:错误请求:您尚未登录
我对cassandra很新,请让我知道我在这里做错了什么。
答案 0 :(得分:1)
假设您使用https://pypi.python.org/pypi/cql,如果您转到主页,则表示已弃用https://code.google.com/archive/a/apache-extras.org/p/cassandra-dbapi2
我建议使用cassandra-driver https://datastax.github.io/python-driver
答案 1 :(得分:0)
转到\var\log\cassandra
,您必须找到system.log
个文件。你应该看到一个错误