【问题标题】:Installation of Riak under Ubuntu 14.04 LTSUbuntu 14.04 LTS 下安装 Riak
【发布时间】:2016-02-28 21:49:24
【问题描述】:

我不能让 riak 在 Ubuntu 14.04 上工作。 LTS 使用下面的 bash 指令 http://docs.basho.com/riak/latest/ops/building/installing/debian-ubuntu/.

当运行 riak start 我得到:

riak failed to start within 15 seconds,
see the output of 'riak console' for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait.

之后运行 riak 控制台时:

Exec:  /usr/lib/riak/erts-5.10.3/bin/erlexec -boot /usr/lib/riak/releases/2.1.3/riak               -config /var/lib/riak/generated.configs/app.2016.02.28.21.43.04.config -args_file /var/lib/riak/generated.configs/vm.2016.02.28.21.43.04.args -vm_args /var/lib/riak/generated.configs/vm.2016.02.28.21.43.04.args              -pa /usr/lib/riak/lib/basho-patches -- console -x
Root: /usr/lib/riak
Erlang R16B02_basho8 (erts-5.10.3) [source] [64-bit] [smp:2:2] [async-threads:64] [kernel-poll:true] [frame-pointer]

[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_start_failure,riak_core,{bad_return,{{riak_core_app,start,[normal,[]]},{'EXIT',{{function_clause,[{orddict,fetch,['riak@127.0.0.1',[{'riak@54.194.69.48',[{{riak_core,bucket_types},[true,false]},{{riak_core,fold_req_version},[v2,v1]},{{riak_core,net_ticktime},[true,false]},{{riak_core,resizable_ring},[true,false]},{{riak_core,security},[true,false]},{{riak_core,staged_joins},[true,false]},{{riak_core,vnode_routing},[proxy,legacy]},{{riak_pipe,trace_format},[ordsets,sets]}]}]],[{file,\"orddict.erl\"},{line,72}]},{riak_core_capability,renegotiate_capabilities,1,[{file,\"src/riak_core_capability.erl\"},{line,441}]},{riak_core_capability,handle_call,3,[{file,\"src/riak_core_capability.erl\"},{line,213}]},{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,585}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]},{gen_server,call,[riak_core_capability,{register,{riak_core,vnode_routing},{capability,[proxy,legacy],legacy,{riak_core,legacy_vnode_routing,[{true,legacy},{false,proxy}]}}},infinity]}}}}}}"}

知道如何解决这个问题吗?安装已通过 apt-get 完成。默认 riak.conf。 Riak 版本是 2.1.3。

【问题讨论】:

  • 这和编程有关系吗?为什么不试试 ubuntu 问答?
  • 抱歉昨天来晚了 - 忘了把 riak 放在标题中。

标签: riak


【解决方案1】:

这是一个 Riak 错误,与 Ubuntu 完全无关。

错误信息表明节点的当前名称与环文件中的任何节点的名称都不匹配。如果在配置节点名称之前使用默认配置启动节点,则会发生这种情况。见Note on changing the name valuehttp://docs.basho.com/riak/latest/ops/building/basic-cluster-setup/

如果这是一个单例节点,最简单的解决方案是删除/var/lib/riak/ring中的文件(先备份)。启动节点时会创建一个新节点。

【讨论】:

  • 解决了。 EC2 中的另一个问题是在名称配置中使用公共 IP 时出现 eaddressavail 错误。使用私有 IP 有效。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-05-31
  • 2015-08-30
  • 2015-09-25
  • 2016-02-24
  • 1970-01-01
  • 2015-01-28
  • 1970-01-01
相关资源
最近更新 更多