刚刚得到了我全新的6.8 DataStax阿斯特拉(卡桑德拉),并从https://www.datastax.com/dev/datastax-studio下载了工作室。我的Nodejs连接工作得很好。但是尝试从Studio连接-所有SSL配置都会失败:
All host(s) tried for query failed.. (com.datastax.driver.core.exceptions.TransportException:根据安全连接,端口看起来应该是29080。/config.json我对客户端和密钥使用了用户管理令牌接口。
不确定这是否相关,但python连接失败,出现以下错误:
...cassandra.cluster.NoHostAvailable: ('Unable to connect to any servers'
...Unauthorized('Error from server: code=2100 [Unauthorized] message="No SELECT permission on <table system_virtual_schema.keyspaces>"')发布于 2021-03-30 04:57:45
它无法连接到Astra,因为它连接到错误的CQL端口。
正确的端口配置位于[connection]部分的cqlshrc文件中。例如:
[connection]
hostname = db-uuid-us-east1.db.astra.datastax.com
port = 39876
ssl = true这是用于从Studio或其他客户端连接的正确CQL端口。干杯!
发布于 2021-04-01 00:04:33
Cassandra6.8Astra目前默认使用端口29042。Python连接器和Studio在Admin用户凭据下都可以很好地工作,但在Admin API用户下就不行。因此,授权错误消息是ligid。NodeJS与Admin API用户凭据配合使用时效果很好。
https://stackoverflow.com/questions/66860098
复制相似问题