2014-01-05 101 views
0

我安裝了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?

+0

日誌中出現的任何錯誤('。/ dev/devX/logs')?您應該能夠啓動節點(儘管取消ulimit是個好主意) –

+0

另外 - 安裝了哪個版本的erlang,以及它是如何安裝的? –

+0

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

回答

1

Riak對Erlang應該安裝的版本非常挑剔。從its documentation on that開始,看起來R15B01是您需要安裝的Erlang的版本。

此外,我建議您爲您選擇的平臺找到二進制文件或軟件包,而不是從源代碼構建。

+0

+1並增加文件描述符限制警告 –

+0

我通過http://docs.basho.com/riak/latest/ops/building/installing/erlang/安裝卸載的erlang,刪除日誌文件夾,設置ulimit - 至4096,重新啓動服務器。現在我有空的error.log和crash.log,erlang.log,run_erl.log都指示服務器啓動,但我仍然無法查看http:// localhost:10017/stats。 – quantumpotato

+0

的console.log:<0.163.0> @riak_core_capability:process_capability_changes:530新能力:{riak_control,member_info_version} = V1 2014年1月5日20:17:06.080 [信息] <0.7.0>應用riak_control節點開始 '[email protected]' 2014-01-05 20:17:06.080 [info] <0.7.0>應用erlydtl在節點'[email protected]'上啓動 2014-01-05 20:17:19.199 [info] <0.322.0> @riak_core:wait_for_service:464等待完成服務riak_kv(13秒) – quantumpotato