我正在尝试从 Ruby on Rails 应用程序连接到 AWS Keyspaces (AWS Cassandra),但我无法做到。我使用 cequel gem 并生成了 config/cequel.yml,其中包含与以下内容类似的内容:
development:
host: "CONTACT_POINT"
username: "USER"
password: "PASS"
port: 9142
keyspace: key_development
max_retries: 3
retry_delay: 0.5
newrelic: true
ssl: true
server_cert: 'config/certs/AmazonRootCA1.pem'
replication:
class: NetworkTopologyStrategy
datacenter1: 3
datacenter2: 2
durable_writes: false
(凭据在另一个应用程序中使用并且它们按预期工作。)
当我尝试运行时:
rake cequel:keyspace:create
我收到以下错误:
Cassandra::Errors::NoHostsAvailable: All attempted hosts failed: x.xxx.xxx.xxx (Cassandra::Errors::ServerError: Internal Server Error)