Thread: [Kai-users-ja] Failed to write?
Kai is a distributed key-value datastore
Status: Beta
Brought to you by:
takemaru
From: Masaki S. <mas...@gm...> - 2009-07-14 06:30:17
|
はじまめて。澤村です。 gihyo.jpの記事を見ながらKaiをためしているのですが、 うまく動かなくて困っています。 現象としてはkaiの起動には成功するのですが、 書き込みを行おうとするとfailed to writeといったエラーになっています。 参考にしているのは下記のページです。 http://gihyo.jp/dev/feature/01/kai/0002?page=2 何かヒントいただけると幸いです。 よろしくおねがいします $ erl -pa ebin -config kai -kai n 1 -kai r 1 -kai w 1 -eval 'application:start(kai).' Erlang R13B01 (erts-5.7.2) [source] [rq:1] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.7.2 (abort with ^G) 1> 2009-07-14 15:24:31.313725 [info] (<0.42.0>) ./kai_hash.erl:181: {update, [{{{172,22, 148,152}, 11011}, [{virtual_nodes, 128}]}], []} 2009-07-14 15:24:40.061078 [warning] (<0.113.0>) ./kai_coordinator.erl:30: "route(\"foo\"): timeout" 2009-07-14 15:24:40.061174 [warning] (<0.113.0>) ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" 2009-07-14 15:24:40.062005 [warning] (<0.133.0>) ./kai_coordinator.erl:168: "gather_in_put/3: timeout" 2009-07-14 15:24:41.053788 [warning] (<0.135.0>) ./kai_coordinator.erl:117: "gather_in_get/4: timeout" 2009-07-14 15:24:41.053890 [warning] (<0.114.0>) ./kai_coordinator.erl:30: "route(\"foo\"): timeout" 2009-07-14 15:24:41.053957 [warning] (<0.114.0>) ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) {error,badarith}" 2009-07-14 15:24:42.056424 [warning] (<0.137.0>) ./kai_coordinator.erl:210: "gather_in_delete/4: timeout" 2009-07-14 15:24:42.056542 [warning] (<0.115.0>) ./kai_coordinator.erl:30: "route(\"foo\"): timeout" 2009-07-14 15:24:42.056609 [warning] (<0.115.0>) ./kai_memcache.erl:158: "send_error_and_close/2: {state,{{172,22,148,152},11011},{3,2,2}}" 2009-07-14 15:24:42.056703 [warning] (<0.115.0>) ./kai_tcp_server_acceptor.erl:109: "call_mod(kai_memcache) {unexpected_result,\n {close,\n [\"SERVER_ERROR \",\n {state,{{172,22,148,152},11011},{3,2,2}},\n \"\\r\\n\"],\n \"Failed to delete.\"}}" 2009-07-14 15:24:43.053087 [warning] (<0.139.0>) ./kai_coordinator.erl:117: "gather_in_get/4: timeout" 2009-07-14 15:24:43.053164 [warning] (<0.116.0>) ./kai_coordinator.erl:30: "route(\"foo\"): timeout" 2009-07-14 15:24:43.053216 [warning] (<0.116.0>) ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) {error,badarith}" 2009-07-14 15:24:44.056432 [warning] (<0.141.0>) ./kai_coordinator.erl:168: "gather_in_put/3: timeout" 2009-07-14 15:24:44.056516 [warning] (<0.117.0>) ./kai_coordinator.erl:30: "route(\"baz\"): timeout" 2009-07-14 15:24:44.056573 [warning] (<0.117.0>) ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" 2009-07-14 15:24:45.053091 [warning] (<0.143.0>) ./kai_coordinator.erl:117: "gather_in_get/4: timeout" 2009-07-14 15:24:45.053173 [warning] (<0.118.0>) ./kai_coordinator.erl:30: "route(\"baz\"): timeout" 2009-07-14 15:24:45.053224 [warning] (<0.118.0>) ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) {error,badarith}" |
From: Tomoya H. <tom...@gm...> - 2009-07-14 08:30:21
|
橋本です。 configの内容はどうなっているでしょうか。差し支えない範囲で教えてもらえると有益なアドバイスがもらえるかと思います。 あとは、iptablesやSELinuxが邪魔しているのかもしれません。 2009/07/14 15:30 に Masaki SAWAMURA<mas...@gm...> さんは書きました: > はじまめて。澤村です。 > > gihyo.jpの記事を見ながらKaiをためしているのですが、 > うまく動かなくて困っています。 > > 現象としてはkaiの起動には成功するのですが、 > 書き込みを行おうとするとfailed to writeといったエラーになっています。 > > 参考にしているのは下記のページです。 > http://gihyo.jp/dev/feature/01/kai/0002?page=2 > > 何かヒントいただけると幸いです。 > よろしくおねがいします > > > > $ erl -pa ebin -config kai -kai n 1 -kai r 1 -kai w 1 -eval > 'application:start(kai).' > Erlang R13B01 (erts-5.7.2) [source] [rq:1] [async-threads:0] [hipe] > [kernel-poll:false] > > Eshell V5.7.2 (abort with ^G) > 1> 2009-07-14 15:24:31.313725 [info] (<0.42.0>) ./kai_hash.erl:181: {update, > [{{{172,22, > 148,152}, > 11011}, > > [{virtual_nodes, > 128}]}], > []} > 2009-07-14 15:24:40.061078 [warning] (<0.113.0>) > ./kai_coordinator.erl:30: "route(\"foo\"): timeout" > 2009-07-14 15:24:40.061174 [warning] (<0.113.0>) > ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" > 2009-07-14 15:24:40.062005 [warning] (<0.133.0>) > ./kai_coordinator.erl:168: "gather_in_put/3: timeout" > 2009-07-14 15:24:41.053788 [warning] (<0.135.0>) > ./kai_coordinator.erl:117: "gather_in_get/4: timeout" > 2009-07-14 15:24:41.053890 [warning] (<0.114.0>) > ./kai_coordinator.erl:30: "route(\"foo\"): timeout" > 2009-07-14 15:24:41.053957 [warning] (<0.114.0>) > ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) > {error,badarith}" > 2009-07-14 15:24:42.056424 [warning] (<0.137.0>) > ./kai_coordinator.erl:210: "gather_in_delete/4: timeout" > 2009-07-14 15:24:42.056542 [warning] (<0.115.0>) > ./kai_coordinator.erl:30: "route(\"foo\"): timeout" > 2009-07-14 15:24:42.056609 [warning] (<0.115.0>) > ./kai_memcache.erl:158: "send_error_and_close/2: > {state,{{172,22,148,152},11011},{3,2,2}}" > 2009-07-14 15:24:42.056703 [warning] (<0.115.0>) > ./kai_tcp_server_acceptor.erl:109: "call_mod(kai_memcache) > {unexpected_result,\n {close,\n > [\"SERVER_ERROR \",\n > {state,{{172,22,148,152},11011},{3,2,2}},\n > \"\\r\\n\"],\n \"Failed to > delete.\"}}" > 2009-07-14 15:24:43.053087 [warning] (<0.139.0>) > ./kai_coordinator.erl:117: "gather_in_get/4: timeout" > 2009-07-14 15:24:43.053164 [warning] (<0.116.0>) > ./kai_coordinator.erl:30: "route(\"foo\"): timeout" > 2009-07-14 15:24:43.053216 [warning] (<0.116.0>) > ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) > {error,badarith}" > 2009-07-14 15:24:44.056432 [warning] (<0.141.0>) > ./kai_coordinator.erl:168: "gather_in_put/3: timeout" > 2009-07-14 15:24:44.056516 [warning] (<0.117.0>) > ./kai_coordinator.erl:30: "route(\"baz\"): timeout" > 2009-07-14 15:24:44.056573 [warning] (<0.117.0>) > ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" > 2009-07-14 15:24:45.053091 [warning] (<0.143.0>) > ./kai_coordinator.erl:117: "gather_in_get/4: timeout" > 2009-07-14 15:24:45.053173 [warning] (<0.118.0>) > ./kai_coordinator.erl:30: "route(\"baz\"): timeout" > 2009-07-14 15:24:45.053224 [warning] (<0.118.0>) > ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) > {error,badarith}" > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Kai-users-ja mailing list > Kai...@li... > https://lists.sourceforge.net/lists/listinfo/kai-users-ja > |
From: Masaki S. <mas...@gm...> - 2009-07-14 08:42:40
|
澤村です configは以下のようにしています。(makeしたまんまです) $ more kai.config [{kai, [ %{logfile, "kai.log"}, %{hostname, "localhost"}, {rpc_port, 11011}, {rpc_max_processes, 60}, {memcache_port, 11211}, {memcache_max_processes, 20}, {max_connections, 64}, {quorum, {3,2,2}}, {buckets, 1024}, {virtual_nodes, 128}, {store, ets}, %{dets_dir, "/path/to/dir"}, %{dets_tables, 128}, {sync_interval, 1000}, %% msec {membership_interval, 1000} %% msec ]}]. ちなみにtraunkとbranches/shino_data_in_bagと両方チェックアウトして試したのですが 同じ現象になっています。 よろしくおねがいします Thanks in advance 2009/07/14 17:30 に Tomoya Hashimoto<tom...@gm...> さんは書きました: > 橋本です。 > > configの内容はどうなっているでしょうか。差し支えない範囲で教えてもらえると有益なアドバイスがもらえるかと思います。 > > あとは、iptablesやSELinuxが邪魔しているのかもしれません。 > > 2009/07/14 15:30 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >> はじまめて。澤村です。 >> >> gihyo.jpの記事を見ながらKaiをためしているのですが、 >> うまく動かなくて困っています。 >> >> 現象としてはkaiの起動には成功するのですが、 >> 書き込みを行おうとするとfailed to writeといったエラーになっています。 >> >> 参考にしているのは下記のページです。 >> http://gihyo.jp/dev/feature/01/kai/0002?page=2 >> >> 何かヒントいただけると幸いです。 >> よろしくおねがいします >> >> >> >> $ erl -pa ebin -config kai -kai n 1 -kai r 1 -kai w 1 -eval >> 'application:start(kai).' >> Erlang R13B01 (erts-5.7.2) [source] [rq:1] [async-threads:0] [hipe] >> [kernel-poll:false] >> >> Eshell V5.7.2 (abort with ^G) >> 1> 2009-07-14 15:24:31.313725 [info] (<0.42.0>) ./kai_hash.erl:181: {update, >> [{{{172,22, >> 148,152}, >> 11011}, >> >> [{virtual_nodes, >> 128}]}], >> []} >> 2009-07-14 15:24:40.061078 [warning] (<0.113.0>) >> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >> 2009-07-14 15:24:40.061174 [warning] (<0.113.0>) >> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >> 2009-07-14 15:24:40.062005 [warning] (<0.133.0>) >> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >> 2009-07-14 15:24:41.053788 [warning] (<0.135.0>) >> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >> 2009-07-14 15:24:41.053890 [warning] (<0.114.0>) >> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >> 2009-07-14 15:24:41.053957 [warning] (<0.114.0>) >> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >> {error,badarith}" >> 2009-07-14 15:24:42.056424 [warning] (<0.137.0>) >> ./kai_coordinator.erl:210: "gather_in_delete/4: timeout" >> 2009-07-14 15:24:42.056542 [warning] (<0.115.0>) >> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >> 2009-07-14 15:24:42.056609 [warning] (<0.115.0>) >> ./kai_memcache.erl:158: "send_error_and_close/2: >> {state,{{172,22,148,152},11011},{3,2,2}}" >> 2009-07-14 15:24:42.056703 [warning] (<0.115.0>) >> ./kai_tcp_server_acceptor.erl:109: "call_mod(kai_memcache) >> {unexpected_result,\n {close,\n >> [\"SERVER_ERROR \",\n >> {state,{{172,22,148,152},11011},{3,2,2}},\n >> \"\\r\\n\"],\n \"Failed to >> delete.\"}}" >> 2009-07-14 15:24:43.053087 [warning] (<0.139.0>) >> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >> 2009-07-14 15:24:43.053164 [warning] (<0.116.0>) >> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >> 2009-07-14 15:24:43.053216 [warning] (<0.116.0>) >> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >> {error,badarith}" >> 2009-07-14 15:24:44.056432 [warning] (<0.141.0>) >> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >> 2009-07-14 15:24:44.056516 [warning] (<0.117.0>) >> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >> 2009-07-14 15:24:44.056573 [warning] (<0.117.0>) >> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >> 2009-07-14 15:24:45.053091 [warning] (<0.143.0>) >> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >> 2009-07-14 15:24:45.053173 [warning] (<0.118.0>) >> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >> 2009-07-14 15:24:45.053224 [warning] (<0.118.0>) >> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >> {error,badarith}" >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> Kai-users-ja mailing list >> Kai...@li... >> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >> > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Kai-users-ja mailing list > Kai...@li... > https://lists.sourceforge.net/lists/listinfo/kai-users-ja > -- Masaki SAWAMURA <ma...@sa...> |
From: Masaki S. <mas...@gm...> - 2009-07-14 08:43:58
|
自己レスすいません。 /path/to/dir ってのが残ってますね。。 すいません。直します。 2009/07/14 17:42 に Masaki SAWAMURA<mas...@gm...> さんは書きました: > 澤村です > > configは以下のようにしています。(makeしたまんまです) > > > $ more kai.config > [{kai, [ > %{logfile, "kai.log"}, > %{hostname, "localhost"}, > {rpc_port, 11011}, > {rpc_max_processes, 60}, > {memcache_port, 11211}, > {memcache_max_processes, 20}, > {max_connections, 64}, > {quorum, {3,2,2}}, > {buckets, 1024}, > {virtual_nodes, 128}, > {store, ets}, > %{dets_dir, "/path/to/dir"}, > %{dets_tables, 128}, > {sync_interval, 1000}, %% msec > {membership_interval, 1000} %% msec > ]}]. > > > ちなみにtraunkとbranches/shino_data_in_bagと両方チェックアウトして試したのですが > 同じ現象になっています。 > よろしくおねがいします > Thanks in advance > > > 2009/07/14 17:30 に Tomoya Hashimoto<tom...@gm...> さんは書きました: >> 橋本です。 >> >> configの内容はどうなっているでしょうか。差し支えない範囲で教えてもらえると有益なアドバイスがもらえるかと思います。 >> >> あとは、iptablesやSELinuxが邪魔しているのかもしれません。 >> >> 2009/07/14 15:30 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>> はじまめて。澤村です。 >>> >>> gihyo.jpの記事を見ながらKaiをためしているのですが、 >>> うまく動かなくて困っています。 >>> >>> 現象としてはkaiの起動には成功するのですが、 >>> 書き込みを行おうとするとfailed to writeといったエラーになっています。 >>> >>> 参考にしているのは下記のページです。 >>> http://gihyo.jp/dev/feature/01/kai/0002?page=2 >>> >>> 何かヒントいただけると幸いです。 >>> よろしくおねがいします >>> >>> >>> >>> $ erl -pa ebin -config kai -kai n 1 -kai r 1 -kai w 1 -eval >>> 'application:start(kai).' >>> Erlang R13B01 (erts-5.7.2) [source] [rq:1] [async-threads:0] [hipe] >>> [kernel-poll:false] >>> >>> Eshell V5.7.2 (abort with ^G) >>> 1> 2009-07-14 15:24:31.313725 [info] (<0.42.0>) ./kai_hash.erl:181: {update, >>> [{{{172,22, >>> 148,152}, >>> 11011}, >>> >>> [{virtual_nodes, >>> 128}]}], >>> []} >>> 2009-07-14 15:24:40.061078 [warning] (<0.113.0>) >>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>> 2009-07-14 15:24:40.061174 [warning] (<0.113.0>) >>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>> 2009-07-14 15:24:40.062005 [warning] (<0.133.0>) >>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>> 2009-07-14 15:24:41.053788 [warning] (<0.135.0>) >>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>> 2009-07-14 15:24:41.053890 [warning] (<0.114.0>) >>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>> 2009-07-14 15:24:41.053957 [warning] (<0.114.0>) >>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>> {error,badarith}" >>> 2009-07-14 15:24:42.056424 [warning] (<0.137.0>) >>> ./kai_coordinator.erl:210: "gather_in_delete/4: timeout" >>> 2009-07-14 15:24:42.056542 [warning] (<0.115.0>) >>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>> 2009-07-14 15:24:42.056609 [warning] (<0.115.0>) >>> ./kai_memcache.erl:158: "send_error_and_close/2: >>> {state,{{172,22,148,152},11011},{3,2,2}}" >>> 2009-07-14 15:24:42.056703 [warning] (<0.115.0>) >>> ./kai_tcp_server_acceptor.erl:109: "call_mod(kai_memcache) >>> {unexpected_result,\n {close,\n >>> [\"SERVER_ERROR \",\n >>> {state,{{172,22,148,152},11011},{3,2,2}},\n >>> \"\\r\\n\"],\n \"Failed to >>> delete.\"}}" >>> 2009-07-14 15:24:43.053087 [warning] (<0.139.0>) >>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>> 2009-07-14 15:24:43.053164 [warning] (<0.116.0>) >>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>> 2009-07-14 15:24:43.053216 [warning] (<0.116.0>) >>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>> {error,badarith}" >>> 2009-07-14 15:24:44.056432 [warning] (<0.141.0>) >>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>> 2009-07-14 15:24:44.056516 [warning] (<0.117.0>) >>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>> 2009-07-14 15:24:44.056573 [warning] (<0.117.0>) >>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>> 2009-07-14 15:24:45.053091 [warning] (<0.143.0>) >>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>> 2009-07-14 15:24:45.053173 [warning] (<0.118.0>) >>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>> 2009-07-14 15:24:45.053224 [warning] (<0.118.0>) >>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>> {error,badarith}" >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited time, >>> vendors submitting new applications to BlackBerry App World(TM) will have >>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> Kai-users-ja mailing list >>> Kai...@li... >>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>> >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> Kai-users-ja mailing list >> Kai...@li... >> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >> > > > > -- > Masaki SAWAMURA <ma...@sa...> > -- Masaki SAWAMURA <ma...@sa...> |
From: Masaki S. <mas...@gm...> - 2009-07-14 09:31:57
|
澤村です さらに自己レスですいません。 configが {store, ets}, だと dets_dir は関係ないでしょうか? だとすると原因は %{dets_dir, "/path/to/dir"},のところではないですよね? 2009/07/14 17:43 に Masaki SAWAMURA<mas...@gm...> さんは書きました: > 自己レスすいません。 > > /path/to/dir ってのが残ってますね。。 > すいません。直します。 > > 2009/07/14 17:42 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >> 澤村です >> >> configは以下のようにしています。(makeしたまんまです) >> >> >> $ more kai.config >> [{kai, [ >> %{logfile, "kai.log"}, >> %{hostname, "localhost"}, >> {rpc_port, 11011}, >> {rpc_max_processes, 60}, >> {memcache_port, 11211}, >> {memcache_max_processes, 20}, >> {max_connections, 64}, >> {quorum, {3,2,2}}, >> {buckets, 1024}, >> {virtual_nodes, 128}, >> {store, ets}, >> %{dets_dir, "/path/to/dir"}, >> %{dets_tables, 128}, >> {sync_interval, 1000}, %% msec >> {membership_interval, 1000} %% msec >> ]}]. >> >> >> ちなみにtraunkとbranches/shino_data_in_bagと両方チェックアウトして試したのですが >> 同じ現象になっています。 >> よろしくおねがいします >> Thanks in advance >> >> >> 2009/07/14 17:30 に Tomoya Hashimoto<tom...@gm...> さんは書きました: >>> 橋本です。 >>> >>> configの内容はどうなっているでしょうか。差し支えない範囲で教えてもらえると有益なアドバイスがもらえるかと思います。 >>> >>> あとは、iptablesやSELinuxが邪魔しているのかもしれません。 >>> >>> 2009/07/14 15:30 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>>> はじまめて。澤村です。 >>>> >>>> gihyo.jpの記事を見ながらKaiをためしているのですが、 >>>> うまく動かなくて困っています。 >>>> >>>> 現象としてはkaiの起動には成功するのですが、 >>>> 書き込みを行おうとするとfailed to writeといったエラーになっています。 >>>> >>>> 参考にしているのは下記のページです。 >>>> http://gihyo.jp/dev/feature/01/kai/0002?page=2 >>>> >>>> 何かヒントいただけると幸いです。 >>>> よろしくおねがいします >>>> >>>> >>>> >>>> $ erl -pa ebin -config kai -kai n 1 -kai r 1 -kai w 1 -eval >>>> 'application:start(kai).' >>>> Erlang R13B01 (erts-5.7.2) [source] [rq:1] [async-threads:0] [hipe] >>>> [kernel-poll:false] >>>> >>>> Eshell V5.7.2 (abort with ^G) >>>> 1> 2009-07-14 15:24:31.313725 [info] (<0.42.0>) ./kai_hash.erl:181: {update, >>>> [{{{172,22, >>>> 148,152}, >>>> 11011}, >>>> >>>> [{virtual_nodes, >>>> 128}]}], >>>> []} >>>> 2009-07-14 15:24:40.061078 [warning] (<0.113.0>) >>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>> 2009-07-14 15:24:40.061174 [warning] (<0.113.0>) >>>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>>> 2009-07-14 15:24:40.062005 [warning] (<0.133.0>) >>>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>>> 2009-07-14 15:24:41.053788 [warning] (<0.135.0>) >>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>> 2009-07-14 15:24:41.053890 [warning] (<0.114.0>) >>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>> 2009-07-14 15:24:41.053957 [warning] (<0.114.0>) >>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>> {error,badarith}" >>>> 2009-07-14 15:24:42.056424 [warning] (<0.137.0>) >>>> ./kai_coordinator.erl:210: "gather_in_delete/4: timeout" >>>> 2009-07-14 15:24:42.056542 [warning] (<0.115.0>) >>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>> 2009-07-14 15:24:42.056609 [warning] (<0.115.0>) >>>> ./kai_memcache.erl:158: "send_error_and_close/2: >>>> {state,{{172,22,148,152},11011},{3,2,2}}" >>>> 2009-07-14 15:24:42.056703 [warning] (<0.115.0>) >>>> ./kai_tcp_server_acceptor.erl:109: "call_mod(kai_memcache) >>>> {unexpected_result,\n {close,\n >>>> [\"SERVER_ERROR \",\n >>>> {state,{{172,22,148,152},11011},{3,2,2}},\n >>>> \"\\r\\n\"],\n \"Failed to >>>> delete.\"}}" >>>> 2009-07-14 15:24:43.053087 [warning] (<0.139.0>) >>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>> 2009-07-14 15:24:43.053164 [warning] (<0.116.0>) >>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>> 2009-07-14 15:24:43.053216 [warning] (<0.116.0>) >>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>> {error,badarith}" >>>> 2009-07-14 15:24:44.056432 [warning] (<0.141.0>) >>>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>>> 2009-07-14 15:24:44.056516 [warning] (<0.117.0>) >>>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>>> 2009-07-14 15:24:44.056573 [warning] (<0.117.0>) >>>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>>> 2009-07-14 15:24:45.053091 [warning] (<0.143.0>) >>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>> 2009-07-14 15:24:45.053173 [warning] (<0.118.0>) >>>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>>> 2009-07-14 15:24:45.053224 [warning] (<0.118.0>) >>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>> {error,badarith}" >>>> >>>> ------------------------------------------------------------------------------ >>>> Enter the BlackBerry Developer Challenge >>>> This is your chance to win up to $100,000 in prizes! For a limited time, >>>> vendors submitting new applications to BlackBerry App World(TM) will have >>>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>>> details at: http://p.sf.net/sfu/Challenge >>>> _______________________________________________ >>>> Kai-users-ja mailing list >>>> Kai...@li... >>>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>>> >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited time, >>> vendors submitting new applications to BlackBerry App World(TM) will have >>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> Kai-users-ja mailing list >>> Kai...@li... >>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>> >> >> >> >> -- >> Masaki SAWAMURA <ma...@sa...> >> > > > > -- > Masaki SAWAMURA <ma...@sa...> > -- Masaki SAWAMURA <ma...@sa...> |
From: Takeru I. <tak...@gm...> - 2009-07-14 15:08:09
|
kai.config の {quorum, {3,2,2}} が邪魔をしていると思います. これは,3つの複製を作ろうとし,少なくとも 2つが成功しなければならない,という意味になります. 1台では必ず失敗するわけです. この設定を {quorum, {1,1,1}} にして,次のように設定の上書きをせずに (-kai という引数なしに) 起動してみてください. $ erl -pa ebin -config kai なお,ver.0.4 では同様の設定が {n,1}, {r,1}, {w,1} と 3項目に分かれていましたが,trunk/ などでは 1つ (quorum) に統一されています. > configが > > {store, ets}, > > だと dets_dir は関係ないでしょうか? > だとすると原因は %{dets_dir, "/path/to/dir"},のところではないですよね? ets のときは,dets_dir は関係ありません. > 2009/07/14 17:43 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >> 自己レスすいません。 >> >> /path/to/dir ってのが残ってますね。。 >> すいません。直します。 >> >> 2009/07/14 17:42 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>> 澤村です >>> >>> configは以下のようにしています。(makeしたまんまです) >>> >>> >>> $ more kai.config >>> [{kai, [ >>> %{logfile, "kai.log"}, >>> %{hostname, "localhost"}, >>> {rpc_port, 11011}, >>> {rpc_max_processes, 60}, >>> {memcache_port, 11211}, >>> {memcache_max_processes, 20}, >>> {max_connections, 64}, >>> {quorum, {3,2,2}}, >>> {buckets, 1024}, >>> {virtual_nodes, 128}, >>> {store, ets}, >>> %{dets_dir, "/path/to/dir"}, >>> %{dets_tables, 128}, >>> {sync_interval, 1000}, %% msec >>> {membership_interval, 1000} %% msec >>> ]}]. >>> >>> >>> ちなみにtraunkとbranches/shino_data_in_bagと両方チェックアウトして試したのですが >>> 同じ現象になっています。 >>> よろしくおねがいします >>> Thanks in advance >>> >>> >>> 2009/07/14 17:30 に Tomoya Hashimoto<tom...@gm...> さんは書きました: >>>> 橋本です。 >>>> >>>> configの内容はどうなっているでしょうか。差し支えない範囲で教えてもらえると有益なアドバイスがもらえるかと思います。 >>>> >>>> あとは、iptablesやSELinuxが邪魔しているのかもしれません。 >>>> >>>> 2009/07/14 15:30 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>>>> はじまめて。澤村です。 >>>>> >>>>> gihyo.jpの記事を見ながらKaiをためしているのですが、 >>>>> うまく動かなくて困っています。 >>>>> >>>>> 現象としてはkaiの起動には成功するのですが、 >>>>> 書き込みを行おうとするとfailed to writeといったエラーになっています。 >>>>> >>>>> 参考にしているのは下記のページです。 >>>>> http://gihyo.jp/dev/feature/01/kai/0002?page=2 >>>>> >>>>> 何かヒントいただけると幸いです。 >>>>> よろしくおねがいします >>>>> >>>>> >>>>> >>>>> $ erl -pa ebin -config kai -kai n 1 -kai r 1 -kai w 1 -eval >>>>> 'application:start(kai).' >>>>> Erlang R13B01 (erts-5.7.2) [source] [rq:1] [async-threads:0] [hipe] >>>>> [kernel-poll:false] >>>>> >>>>> Eshell V5.7.2 (abort with ^G) >>>>> 1> 2009-07-14 15:24:31.313725 [info] (<0.42.0>) ./kai_hash.erl:181: {update, >>>>> [{{{172,22, >>>>> 148,152}, >>>>> 11011}, >>>>> >>>>> [{virtual_nodes, >>>>> 128}]}], >>>>> []} >>>>> 2009-07-14 15:24:40.061078 [warning] (<0.113.0>) >>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>> 2009-07-14 15:24:40.061174 [warning] (<0.113.0>) >>>>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>>>> 2009-07-14 15:24:40.062005 [warning] (<0.133.0>) >>>>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>>>> 2009-07-14 15:24:41.053788 [warning] (<0.135.0>) >>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>> 2009-07-14 15:24:41.053890 [warning] (<0.114.0>) >>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>> 2009-07-14 15:24:41.053957 [warning] (<0.114.0>) >>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>> {error,badarith}" >>>>> 2009-07-14 15:24:42.056424 [warning] (<0.137.0>) >>>>> ./kai_coordinator.erl:210: "gather_in_delete/4: timeout" >>>>> 2009-07-14 15:24:42.056542 [warning] (<0.115.0>) >>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>> 2009-07-14 15:24:42.056609 [warning] (<0.115.0>) >>>>> ./kai_memcache.erl:158: "send_error_and_close/2: >>>>> {state,{{172,22,148,152},11011},{3,2,2}}" >>>>> 2009-07-14 15:24:42.056703 [warning] (<0.115.0>) >>>>> ./kai_tcp_server_acceptor.erl:109: "call_mod(kai_memcache) >>>>> {unexpected_result,\n {close,\n >>>>> [\"SERVER_ERROR \",\n >>>>> {state,{{172,22,148,152},11011},{3,2,2}},\n >>>>> \"\\r\\n\"],\n \"Failed to >>>>> delete.\"}}" >>>>> 2009-07-14 15:24:43.053087 [warning] (<0.139.0>) >>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>> 2009-07-14 15:24:43.053164 [warning] (<0.116.0>) >>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>> 2009-07-14 15:24:43.053216 [warning] (<0.116.0>) >>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>> {error,badarith}" >>>>> 2009-07-14 15:24:44.056432 [warning] (<0.141.0>) >>>>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>>>> 2009-07-14 15:24:44.056516 [warning] (<0.117.0>) >>>>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>>>> 2009-07-14 15:24:44.056573 [warning] (<0.117.0>) >>>>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>>>> 2009-07-14 15:24:45.053091 [warning] (<0.143.0>) >>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>> 2009-07-14 15:24:45.053173 [warning] (<0.118.0>) >>>>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>>>> 2009-07-14 15:24:45.053224 [warning] (<0.118.0>) >>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>> {error,badarith}" >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Enter the BlackBerry Developer Challenge >>>>> This is your chance to win up to $100,000 in prizes! For a limited time, >>>>> vendors submitting new applications to BlackBerry App World(TM) will have >>>>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>>>> details at: http://p.sf.net/sfu/Challenge >>>>> _______________________________________________ >>>>> Kai-users-ja mailing list >>>>> Kai...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Enter the BlackBerry Developer Challenge >>>> This is your chance to win up to $100,000 in prizes! For a limited time, >>>> vendors submitting new applications to BlackBerry App World(TM) will have >>>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>>> details at: http://p.sf.net/sfu/Challenge >>>> _______________________________________________ >>>> Kai-users-ja mailing list >>>> Kai...@li... >>>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>>> >>> >>> >>> >>> -- >>> Masaki SAWAMURA <ma...@sa...> >>> >> >> >> >> -- >> Masaki SAWAMURA <ma...@sa...> >> > > > > -- > Masaki SAWAMURA <ma...@sa...> > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Kai-users-ja mailing list > Kai...@li... > https://lists.sourceforge.net/lists/listinfo/kai-users-ja > -- Takeru INOUE |
From: Masaki S. <mas...@gm...> - 2009-07-15 01:15:52
|
起動しました。ありがとうございます。 なるほど、gihyoの記事の時点と設定項目が変わっていたのですね。 了解です。 2009/07/15 0:08 に Takeru INOUE<tak...@gm...> さんは書きました: > kai.config の {quorum, {3,2,2}} が邪魔をしていると思います. > これは,3つの複製を作ろうとし,少なくとも 2つが成功しなければならない,という意味になります. > 1台では必ず失敗するわけです. > > この設定を {quorum, {1,1,1}} にして,次のように設定の上書きをせずに (-kai という引数なしに) 起動してみてください. > > $ erl -pa ebin -config kai > > なお,ver.0.4 では同様の設定が {n,1}, {r,1}, {w,1} と 3項目に分かれていましたが,trunk/ などでは 1つ > (quorum) に統一されています. > >> configが >> >> {store, ets}, >> >> だと dets_dir は関係ないでしょうか? >> だとすると原因は %{dets_dir, "/path/to/dir"},のところではないですよね? > > ets のときは,dets_dir は関係ありません. > > >> 2009/07/14 17:43 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>> 自己レスすいません。 >>> >>> /path/to/dir ってのが残ってますね。。 >>> すいません。直します。 >>> >>> 2009/07/14 17:42 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>>> 澤村です >>>> >>>> configは以下のようにしています。(makeしたまんまです) >>>> >>>> >>>> $ more kai.config >>>> [{kai, [ >>>> %{logfile, "kai.log"}, >>>> %{hostname, "localhost"}, >>>> {rpc_port, 11011}, >>>> {rpc_max_processes, 60}, >>>> {memcache_port, 11211}, >>>> {memcache_max_processes, 20}, >>>> {max_connections, 64}, >>>> {quorum, {3,2,2}}, >>>> {buckets, 1024}, >>>> {virtual_nodes, 128}, >>>> {store, ets}, >>>> %{dets_dir, "/path/to/dir"}, >>>> %{dets_tables, 128}, >>>> {sync_interval, 1000}, %% msec >>>> {membership_interval, 1000} %% msec >>>> ]}]. >>>> >>>> >>>> ちなみにtraunkとbranches/shino_data_in_bagと両方チェックアウトして試したのですが >>>> 同じ現象になっています。 >>>> よろしくおねがいします >>>> Thanks in advance >>>> >>>> >>>> 2009/07/14 17:30 に Tomoya Hashimoto<tom...@gm...> さんは書きました: >>>>> 橋本です。 >>>>> >>>>> configの内容はどうなっているでしょうか。差し支えない範囲で教えてもらえると有益なアドバイスがもらえるかと思います。 >>>>> >>>>> あとは、iptablesやSELinuxが邪魔しているのかもしれません。 >>>>> >>>>> 2009/07/14 15:30 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>>>>> はじまめて。澤村です。 >>>>>> >>>>>> gihyo.jpの記事を見ながらKaiをためしているのですが、 >>>>>> うまく動かなくて困っています。 >>>>>> >>>>>> 現象としてはkaiの起動には成功するのですが、 >>>>>> 書き込みを行おうとするとfailed to writeといったエラーになっています。 >>>>>> >>>>>> 参考にしているのは下記のページです。 >>>>>> http://gihyo.jp/dev/feature/01/kai/0002?page=2 >>>>>> >>>>>> 何かヒントいただけると幸いです。 >>>>>> よろしくおねがいします >>>>>> >>>>>> >>>>>> >>>>>> $ erl -pa ebin -config kai -kai n 1 -kai r 1 -kai w 1 -eval >>>>>> 'application:start(kai).' >>>>>> Erlang R13B01 (erts-5.7.2) [source] [rq:1] [async-threads:0] [hipe] >>>>>> [kernel-poll:false] >>>>>> >>>>>> Eshell V5.7.2 (abort with ^G) >>>>>> 1> 2009-07-14 15:24:31.313725 [info] (<0.42.0>) ./kai_hash.erl:181: {update, >>>>>> [{{{172,22, >>>>>> 148,152}, >>>>>> 11011}, >>>>>> >>>>>> [{virtual_nodes, >>>>>> 128}]}], >>>>>> []} >>>>>> 2009-07-14 15:24:40.061078 [warning] (<0.113.0>) >>>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>>> 2009-07-14 15:24:40.061174 [warning] (<0.113.0>) >>>>>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>>>>> 2009-07-14 15:24:40.062005 [warning] (<0.133.0>) >>>>>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>>>>> 2009-07-14 15:24:41.053788 [warning] (<0.135.0>) >>>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>>> 2009-07-14 15:24:41.053890 [warning] (<0.114.0>) >>>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>>> 2009-07-14 15:24:41.053957 [warning] (<0.114.0>) >>>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>>> {error,badarith}" >>>>>> 2009-07-14 15:24:42.056424 [warning] (<0.137.0>) >>>>>> ./kai_coordinator.erl:210: "gather_in_delete/4: timeout" >>>>>> 2009-07-14 15:24:42.056542 [warning] (<0.115.0>) >>>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>>> 2009-07-14 15:24:42.056609 [warning] (<0.115.0>) >>>>>> ./kai_memcache.erl:158: "send_error_and_close/2: >>>>>> {state,{{172,22,148,152},11011},{3,2,2}}" >>>>>> 2009-07-14 15:24:42.056703 [warning] (<0.115.0>) >>>>>> ./kai_tcp_server_acceptor.erl:109: "call_mod(kai_memcache) >>>>>> {unexpected_result,\n {close,\n >>>>>> [\"SERVER_ERROR \",\n >>>>>> {state,{{172,22,148,152},11011},{3,2,2}},\n >>>>>> \"\\r\\n\"],\n \"Failed to >>>>>> delete.\"}}" >>>>>> 2009-07-14 15:24:43.053087 [warning] (<0.139.0>) >>>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>>> 2009-07-14 15:24:43.053164 [warning] (<0.116.0>) >>>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>>> 2009-07-14 15:24:43.053216 [warning] (<0.116.0>) >>>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>>> {error,badarith}" >>>>>> 2009-07-14 15:24:44.056432 [warning] (<0.141.0>) >>>>>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>>>>> 2009-07-14 15:24:44.056516 [warning] (<0.117.0>) >>>>>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>>>>> 2009-07-14 15:24:44.056573 [warning] (<0.117.0>) >>>>>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>>>>> 2009-07-14 15:24:45.053091 [warning] (<0.143.0>) >>>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>>> 2009-07-14 15:24:45.053173 [warning] (<0.118.0>) >>>>>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>>>>> 2009-07-14 15:24:45.053224 [warning] (<0.118.0>) >>>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>>> {error,badarith}" >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Enter the BlackBerry Developer Challenge >>>>>> This is your chance to win up to $100,000 in prizes! For a limited time, >>>>>> vendors submitting new applications to BlackBerry App World(TM) will have >>>>>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>> _______________________________________________ >>>>>> Kai-users-ja mailing list >>>>>> Kai...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Enter the BlackBerry Developer Challenge >>>>> This is your chance to win up to $100,000 in prizes! For a limited time, >>>>> vendors submitting new applications to BlackBerry App World(TM) will have >>>>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>>>> details at: http://p.sf.net/sfu/Challenge >>>>> _______________________________________________ >>>>> Kai-users-ja mailing list >>>>> Kai...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>>>> >>>> >>>> >>>> >>>> -- >>>> Masaki SAWAMURA <ma...@sa...> >>>> >>> >>> >>> >>> -- >>> Masaki SAWAMURA <ma...@sa...> >>> >> >> >> >> -- >> Masaki SAWAMURA <ma...@sa...> >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> Kai-users-ja mailing list >> Kai...@li... >> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >> > > > > -- > Takeru INOUE > -- Masaki SAWAMURA <ma...@sa...> |
From: Takeru I. <tak...@gm...> - 2009-07-18 02:25:46
|
補足です. trunk/ や branches/shino_data_in_bag/ では,クラスタを組むときの kai_rpc:check_node の引数が変更されています. gihyo.jp では, kai_rpc:check_node(NodeA, NodeB). となっていますが, kai_rpc:check_node(NodeA, NodeA, NodeB). としてください. なお,NodeA の重複が無駄なわけですが,これは過渡的な措置で,近いうちに新設する RPC コマンドで置き換える予定です. 2009/7/15 Masaki SAWAMURA <mas...@gm...>: > 起動しました。ありがとうございます。 > なるほど、gihyoの記事の時点と設定項目が変わっていたのですね。 > 了解です。 > > > > 2009/07/15 0:08 に Takeru INOUE<tak...@gm...> さんは書きました: >> kai.config の {quorum, {3,2,2}} が邪魔をしていると思います. >> これは,3つの複製を作ろうとし,少なくとも 2つが成功しなければならない,という意味になります. >> 1台では必ず失敗するわけです. >> >> この設定を {quorum, {1,1,1}} にして,次のように設定の上書きをせずに (-kai という引数なしに) 起動してみてください. >> >> $ erl -pa ebin -config kai >> >> なお,ver.0.4 では同様の設定が {n,1}, {r,1}, {w,1} と 3項目に分かれていましたが,trunk/ などでは 1つ >> (quorum) に統一されています. >> >>> configが >>> >>> {store, ets}, >>> >>> だと dets_dir は関係ないでしょうか? >>> だとすると原因は %{dets_dir, "/path/to/dir"},のところではないですよね? >> >> ets のときは,dets_dir は関係ありません. >> >> >>> 2009/07/14 17:43 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>>> 自己レスすいません。 >>>> >>>> /path/to/dir ってのが残ってますね。。 >>>> すいません。直します。 >>>> >>>> 2009/07/14 17:42 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>>>> 澤村です >>>>> >>>>> configは以下のようにしています。(makeしたまんまです) >>>>> >>>>> >>>>> $ more kai.config >>>>> [{kai, [ >>>>> %{logfile, "kai.log"}, >>>>> %{hostname, "localhost"}, >>>>> {rpc_port, 11011}, >>>>> {rpc_max_processes, 60}, >>>>> {memcache_port, 11211}, >>>>> {memcache_max_processes, 20}, >>>>> {max_connections, 64}, >>>>> {quorum, {3,2,2}}, >>>>> {buckets, 1024}, >>>>> {virtual_nodes, 128}, >>>>> {store, ets}, >>>>> %{dets_dir, "/path/to/dir"}, >>>>> %{dets_tables, 128}, >>>>> {sync_interval, 1000}, %% msec >>>>> {membership_interval, 1000} %% msec >>>>> ]}]. >>>>> >>>>> >>>>> ちなみにtraunkとbranches/shino_data_in_bagと両方チェックアウトして試したのですが >>>>> 同じ現象になっています。 >>>>> よろしくおねがいします >>>>> Thanks in advance >>>>> >>>>> >>>>> 2009/07/14 17:30 に Tomoya Hashimoto<tom...@gm...> さんは書きました: >>>>>> 橋本です。 >>>>>> >>>>>> configの内容はどうなっているでしょうか。差し支えない範囲で教えてもらえると有益なアドバイスがもらえるかと思います。 >>>>>> >>>>>> あとは、iptablesやSELinuxが邪魔しているのかもしれません。 >>>>>> >>>>>> 2009/07/14 15:30 に Masaki SAWAMURA<mas...@gm...> さんは書きました: >>>>>>> はじまめて。澤村です。 >>>>>>> >>>>>>> gihyo.jpの記事を見ながらKaiをためしているのですが、 >>>>>>> うまく動かなくて困っています。 >>>>>>> >>>>>>> 現象としてはkaiの起動には成功するのですが、 >>>>>>> 書き込みを行おうとするとfailed to writeといったエラーになっています。 >>>>>>> >>>>>>> 参考にしているのは下記のページです。 >>>>>>> http://gihyo.jp/dev/feature/01/kai/0002?page=2 >>>>>>> >>>>>>> 何かヒントいただけると幸いです。 >>>>>>> よろしくおねがいします >>>>>>> >>>>>>> >>>>>>> >>>>>>> $ erl -pa ebin -config kai -kai n 1 -kai r 1 -kai w 1 -eval >>>>>>> 'application:start(kai).' >>>>>>> Erlang R13B01 (erts-5.7.2) [source] [rq:1] [async-threads:0] [hipe] >>>>>>> [kernel-poll:false] >>>>>>> >>>>>>> Eshell V5.7.2 (abort with ^G) >>>>>>> 1> 2009-07-14 15:24:31.313725 [info] (<0.42.0>) ./kai_hash.erl:181: {update, >>>>>>> [{{{172,22, >>>>>>> 148,152}, >>>>>>> 11011}, >>>>>>> >>>>>>> [{virtual_nodes, >>>>>>> 128}]}], >>>>>>> []} >>>>>>> 2009-07-14 15:24:40.061078 [warning] (<0.113.0>) >>>>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>>>> 2009-07-14 15:24:40.061174 [warning] (<0.113.0>) >>>>>>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>>>>>> 2009-07-14 15:24:40.062005 [warning] (<0.133.0>) >>>>>>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>>>>>> 2009-07-14 15:24:41.053788 [warning] (<0.135.0>) >>>>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>>>> 2009-07-14 15:24:41.053890 [warning] (<0.114.0>) >>>>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>>>> 2009-07-14 15:24:41.053957 [warning] (<0.114.0>) >>>>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>>>> {error,badarith}" >>>>>>> 2009-07-14 15:24:42.056424 [warning] (<0.137.0>) >>>>>>> ./kai_coordinator.erl:210: "gather_in_delete/4: timeout" >>>>>>> 2009-07-14 15:24:42.056542 [warning] (<0.115.0>) >>>>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>>>> 2009-07-14 15:24:42.056609 [warning] (<0.115.0>) >>>>>>> ./kai_memcache.erl:158: "send_error_and_close/2: >>>>>>> {state,{{172,22,148,152},11011},{3,2,2}}" >>>>>>> 2009-07-14 15:24:42.056703 [warning] (<0.115.0>) >>>>>>> ./kai_tcp_server_acceptor.erl:109: "call_mod(kai_memcache) >>>>>>> {unexpected_result,\n {close,\n >>>>>>> [\"SERVER_ERROR \",\n >>>>>>> {state,{{172,22,148,152},11011},{3,2,2}},\n >>>>>>> \"\\r\\n\"],\n \"Failed to >>>>>>> delete.\"}}" >>>>>>> 2009-07-14 15:24:43.053087 [warning] (<0.139.0>) >>>>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>>>> 2009-07-14 15:24:43.053164 [warning] (<0.116.0>) >>>>>>> ./kai_coordinator.erl:30: "route(\"foo\"): timeout" >>>>>>> 2009-07-14 15:24:43.053216 [warning] (<0.116.0>) >>>>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>>>> {error,badarith}" >>>>>>> 2009-07-14 15:24:44.056432 [warning] (<0.141.0>) >>>>>>> ./kai_coordinator.erl:168: "gather_in_put/3: timeout" >>>>>>> 2009-07-14 15:24:44.056516 [warning] (<0.117.0>) >>>>>>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>>>>>> 2009-07-14 15:24:44.056573 [warning] (<0.117.0>) >>>>>>> ./kai_memcache.erl:158: "send_error_and_close/2: \"Failed to write.\"" >>>>>>> 2009-07-14 15:24:45.053091 [warning] (<0.143.0>) >>>>>>> ./kai_coordinator.erl:117: "gather_in_get/4: timeout" >>>>>>> 2009-07-14 15:24:45.053173 [warning] (<0.118.0>) >>>>>>> ./kai_coordinator.erl:30: "route(\"baz\"): timeout" >>>>>>> 2009-07-14 15:24:45.053224 [warning] (<0.118.0>) >>>>>>> ./kai_tcp_server_acceptor.erl:54: "accept(kai_memcache) >>>>>>> {error,badarith}" >>>>>>> >>>>>>> ------------------------------------------------------------------------------ >>>>>>> Enter the BlackBerry Developer Challenge >>>>>>> This is your chance to win up to $100,000 in prizes! For a limited time, >>>>>>> vendors submitting new applications to BlackBerry App World(TM) will have >>>>>>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>>> _______________________________________________ >>>>>>> Kai-users-ja mailing list >>>>>>> Kai...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Enter the BlackBerry Developer Challenge >>>>>> This is your chance to win up to $100,000 in prizes! For a limited time, >>>>>> vendors submitting new applications to BlackBerry App World(TM) will have >>>>>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>>>>> details at: http://p.sf.net/sfu/Challenge >>>>>> _______________________________________________ >>>>>> Kai-users-ja mailing list >>>>>> Kai...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Masaki SAWAMURA <ma...@sa...> >>>>> >>>> >>>> >>>> >>>> -- >>>> Masaki SAWAMURA <ma...@sa...> >>>> >>> >>> >>> >>> -- >>> Masaki SAWAMURA <ma...@sa...> >>> >>> ------------------------------------------------------------------------------ >>> Enter the BlackBerry Developer Challenge >>> This is your chance to win up to $100,000 in prizes! For a limited time, >>> vendors submitting new applications to BlackBerry App World(TM) will have >>> the opportunity to enter the BlackBerry Developer Challenge. See full prize >>> details at: http://p.sf.net/sfu/Challenge >>> _______________________________________________ >>> Kai-users-ja mailing list >>> Kai...@li... >>> https://lists.sourceforge.net/lists/listinfo/kai-users-ja >>> >> >> >> >> -- >> Takeru INOUE >> > > > > -- > Masaki SAWAMURA <ma...@sa...> > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Kai-users-ja mailing list > Kai...@li... > https://lists.sourceforge.net/lists/listinfo/kai-users-ja > -- Takeru INOUE |