2016-09-19 18 views
0

ちょうどKongを使用することから始めますが、私はこの問題に直面しています。Cassandra 2.2.7でKongセットアップ

私はMac上でセットアップ香港にしようとし、次の手順をここからだ:私はすでにカサンドラ2.2.7がインストールされている

Kong for Mac

とローカルで実行しています。私は「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は説明的な誤りがあります。

関連する問題