riak节点未运行

时间:2014-01-05 17:20:59

标签: macos riak

我安装了riak版riak-1.4.6。

我跑了make rel然后制作devrel。

rel/gen_dev dev1 rel/vars/dev_vars.config.src rel/vars/dev1_vars.config
Generating dev1 - node='dev1@127.0.0.1' 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='dev2@127.0.0.1' 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='dev3@127.0.0.1' 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 start

在我的网络浏览器中:http://localhost:10017/stats

无法找到服务器。

然后我跑了

 ./dev/dev2/bin/riak-admin cluster join dev1@127.0.0.1
Node is not running!

然后

 ./dev/dev1/bin/riak restart
Node 'dev1@127.0.0.1' 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获得ping。

./dev/dev1/etc/vm.args

显示

## Name of the riak node
-name dev1@127.0.0.1

如何启动这些riak服务器?

1 个答案:

答案 0 :(得分:1)

Riak对于应该安装什么版本的Erlang相当挑剔。从its documentation on that开始,看起来R15B01是您需要安装的Erlang版本。

另外,我建议您为自己选择的平台找到二进制文件或软件包,而不是从源代码构建。