rails cql无法连接到aws密钥空间(aws cassandra)

dxxyhpgq  于 2021-06-13  发布在  Cassandra
关注(0)|答案(1)|浏览(418)

我正在尝试从rubyonrails应用程序连接到aws密钥空间(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)
mgdq6dx1

mgdq6dx11#

将dc设置为us-east-1。删除复制定义。

相关问题