我安裝了riak版本riak-1.4.6。riak節點沒有運行
我跑了讓rel然後使devrel。
rel/gen_dev dev1 rel/vars/dev_vars.config.src rel/vars/dev1_vars.config
Generating dev1 - node='[email protected]' pbc=10017 http=10018 handoff=10019
(cd rel && ../rebar generate target_dir=../dev/dev1 overlay_vars=vars/dev1_vars.config)
==> rel (generate)
mkdir -p dev
rel/gen_dev dev2 rel/vars/dev_vars.config.src rel/vars/dev2_vars.config
Generating dev2 - node='[email protected]' pbc=10027 http=10028 handoff=10029
(cd rel && ../rebar generate target_dir=../dev/dev2 overlay_vars=vars/dev2_vars.config)
==> rel (generate)
mkdir -p dev
rel/gen_dev dev3 rel/vars/dev_vars.config.src rel/vars/dev3_vars.config
Generating dev3 - node='[email protected]' pbc=10037 http=10038 handoff=10039
(cd rel && ../rebar generate target_dir=../dev/dev3 overlay_vars=vars/dev3_vars.config)
==> rel (generate)
mkdir -p dev
然後我跑
./dev/dev1/bin/riak start
!!!!
!!!! WARNING: ulimit -n is 256; 4096 is the recommended minimum.
!!!!:riak username$ ./dev/dev2/bin/riak start
!!!!
!!!! WARNING: ulimit -n is 256; 4096 is the recommended minimum.
!!!!
同爲./dev/dev2/bin/riak開始
在我的網頁瀏覽器:http://localhost:10017/stats
找不到服務器。
我然後跑
./dev/dev2/bin/riak-admin cluster join [email protected]
Node is not running!
然後
./dev/dev1/bin/riak restart
Node '[email protected]' not responding to pings.
好了,我會嘗試再次啓動:
./dev/dev1/bin/riak start
!!!!
!!!! WARNING: ulimit -n is 256; 4096 is the recommended minimum.
!!!!
這一次,它重新啓動:
./dev/dev1/bin/riak restart
ok
在
vim ./dev/dev1/etc/app.config
我發現
%% Protocol Buffers interface will bind.
{pb, [ {"127.0.0.1", 10017 } ]}
]},
和
%% http is a list of IP addresses and TCP ports that the Riak
%% HTTP interface will bind.
{http, [ {"127.0.0.1", 10018 } ]},
%% https is a list of IP addresses and TCP ports that the Riak
%% HTTPS interface will bind.
%{https, [{ "127.0.0.1", 10018 }]},
但我不能從任何127.0.0.1:10017或127.0.0.1:10018得到平。
./dev/dev1/etc/vm.args
顯示
## Name of the riak node
-name [email protected]
如何啓動這些服務器了Riak?
日誌中出現的任何錯誤('。/ dev/devX/logs')?您應該能夠啓動節點(儘管取消ulimit是個好主意) –
另外 - 安裝了哪個版本的erlang,以及它是如何安裝的? –
CRASH.LOG:014-01-05 11時01分51秒= CRASH REPORT ==== 破碎機: 初始呼叫:riak_kv_index_hashtree:初始化/ 1 PID:<0.1462.0> registered_name:[] 退出異常:{{{ badmatch,{error,{db_open,「IO error:./data/anti_entropy/1233142006497949337234359077604363797834693083136/000002.dbtmp:打開的文件過多」}}} – quantumpotato