2016-09-19 43 views
0

剛開始使用Kong但我一直在面對這個問題。Kong設置了Cassandra 2.2.7

我試圖建立香港在Mac上,並按照指示在這裏:

Kong for Mac

我已經安裝卡桑德拉2.2.7和本地運行。我可以通過「cqlsh」連接到它,並創建一個密鑰空間等等。當我運行以下命令

但香港沒有啓動:

kong start 

我已經試過--vv選項,它給我輸出如下:

2016/09/19 11:13:30 [verbose] no config file found at /etc/kong.conf 
2016/09/19 11:13:30 [verbose] no config file found at /etc/kong/kong.conf 
2016/09/19 11:13:30 [verbose] no config file, skipping loading 
2016/09/19 11:13:30 [debug] admin_listen = "0.0.0.0:8001" 
2016/09/19 11:13:30 [debug] anonymous_reports = true 
2016/09/19 11:13:30 [debug] cassandra_consistency = "ONE" 
2016/09/19 11:13:30 [debug] cassandra_contact_points = {"127.0.0.1"} 
2016/09/19 11:13:30 [debug] cassandra_data_centers = {"dc1:2","dc2:3"} 
2016/09/19 11:13:30 [debug] cassandra_keyspace = "kong" 
2016/09/19 11:13:30 [debug] cassandra_port = 9042 
2016/09/19 11:13:30 [debug] cassandra_repl_factor = 1 
2016/09/19 11:13:30 [debug] cassandra_repl_strategy = "SimpleStrategy" 
2016/09/19 11:13:30 [debug] cassandra_ssl = false 
2016/09/19 11:13:30 [debug] cassandra_ssl_verify = false 
2016/09/19 11:13:30 [debug] cassandra_timeout = 5000 
2016/09/19 11:13:30 [debug] cassandra_username = "kong" 
2016/09/19 11:13:30 [debug] cluster_listen = "0.0.0.0:7946" 
2016/09/19 11:13:30 [debug] cluster_listen_rpc = "127.0.0.1:7373" 
2016/09/19 11:13:30 [debug] cluster_profile = "wan" 
2016/09/19 11:13:30 [debug] cluster_ttl_on_failure = 3600 
2016/09/19 11:13:30 [debug] custom_plugins = {} 
2016/09/19 11:13:30 [debug] database = "postgres" 
2016/09/19 11:13:30 [debug] dnsmasq = true 
2016/09/19 11:13:30 [debug] dnsmasq_port = 8053 
2016/09/19 11:13:30 [debug] log_level = "notice" 
2016/09/19 11:13:30 [debug] lua_code_cache = "on" 
2016/09/19 11:13:30 [debug] lua_package_cpath = "" 
2016/09/19 11:13:30 [debug] lua_package_path = "?/init.lua;./kong/?.lua" 
2016/09/19 11:13:30 [debug] lua_ssl_verify_depth = 1 
2016/09/19 11:13:30 [debug] mem_cache_size = "128m" 
2016/09/19 11:13:30 [debug] nginx_daemon = "on" 
2016/09/19 11:13:30 [debug] nginx_optimizations = true 
2016/09/19 11:13:30 [debug] nginx_worker_processes = "auto" 
2016/09/19 11:13:30 [debug] pg_database = "kong" 
2016/09/19 11:13:30 [debug] pg_host = "127.0.0.1" 
2016/09/19 11:13:30 [debug] pg_port = 5432 
2016/09/19 11:13:30 [debug] pg_ssl = false 
2016/09/19 11:13:30 [debug] pg_ssl_verify = false 
2016/09/19 11:13:30 [debug] pg_user = "kong" 
2016/09/19 11:13:30 [debug] prefix = "/usr/local/kong/" 
2016/09/19 11:13:30 [debug] proxy_listen = "0.0.0.0:8000" 
2016/09/19 11:13:30 [debug] proxy_listen_ssl = "0.0.0.0:8443" 
2016/09/19 11:13:30 [debug] serf_path = "serf" 
2016/09/19 11:13:30 [debug] ssl = true 
2016/09/19 11:13:30 [verbose] prefix in use: /usr/local/kong 
2016/09/19 11:13:30 [verbose] running datastore migrations 
2016/09/19 11:13:30 [verbose] could not start Kong, stopping services 
2016/09/19 11:13:30 [verbose] leaving serf cluster 

我沒有在本地看到任何日誌告訴我究竟是什麼問題。我在網上看了一下,但還沒找到解決辦法。

關於我失蹤的任何想法?

+0

沒關係!我使用Kong 0.9.1,默認情況下它使用Postgres。我不得不在解決問題的conf文件中添加一行:database = cassandra – vksinghh

回答

1

KONG_DATABASE=cassandra kong start來嘗試一下,說明Kong應該使用Cassandra。

或將配置文件中的database屬性更新爲cassandra

一邊注意Kong> = 0.9.2有更多的描述性錯誤。