启动 Kong 时 Cassandra 的问题

Problems with Cassandra when starting Kong

当尝试使用 kong start 启动 Kong 时,出现以下错误消息:

[INFO] Using configuration: /etc/kong/kong.yml
[INFO] Proxy port.........8000
       Admin API port.....8001
       Database...........cassandra keepalive=60000 port=9042 timeout=1000 hosts=127.0.0.1 keyspace=kong
[ERR] Cassandra error: Failed to read frame header from 127.0.0.1: closed

这是为什么?

出现问题是因为 Cassandra 不在 运行 配置文件中指定的地址 kong.yml

启动 Cassandra 并在 kong.yml 中指定正确的连接设置使其工作,特别是 contact_points 属性 在 https://getkong.org/docs/0.5.x/configuration/#databases_available