我正在尝试在RHEL计算机上安装Kong但在运行kong migration命令时出错。 “$ kong migrations up -c /etc/kong/kong.conf”
2018/01/22 14:56:28 [verbose] running datastore migrations
Error:
/usr/local/share/lua/5.1/kong/cmd/migrations.lua:34: [cassandra error] could not find coordinator: all hosts tried for query failed. 10.29.169.158: host seems unhealthy, considering it down (connection refused)
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/kong/cmd/migrations.lua:34: in function 'cmd_exec'
/usr/local/share/lua/5.1/kong/cmd/init.lua:87: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:87>
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/kong/cmd/init.lua:87: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:44>
/usr/local/bin/kong:7: in function 'file_gen'
init_worker_by_lua:46: in function <init_worker_by_lua:44>
[C]: in function 'xpcall'
init_worker_by_lua:53: in function <init_worker_by_lua:51>
我已经安装了Cassandra 3.11.1并创建了一个名为“kong”的键空间和角色。我错过了什么吗?
答案 0 :(得分:1)
在/etc/cassandra/conf/cassandra.yml添加Cassandra RPC地址并为kong(在/ usr / local / bin / kong)创建了一个工作目录后,问题得到了解决。在所有键空间上授予用户kong权限。