For 1.x version, this can be done by editing the file 'app.config'.

{riak_kv, [
  %% ...
  {add_paths, ["/tmp/beams/"]},
  %% ...

But now, 'app.config' has been replaced on 'riak.conf' which has an another format.

有帮助吗?

解决方案

Create /etc/riak/advanced.config with the following content:

[
    {riak_kv, [{add_paths, ["/tmp/beams/"]}]}
].

When you start Riak, you'll see messages about cuttlefish merging in the contents of advanced.config in the logs (/var/log/riak/*).

其他提示

Last I heard, Joe DeVivo had yet to add support for add_paths to the new configuration format. Certainly as of the Riak 2.0 tech preview it wasn't supported.

However, it is possible to continue to use the old format for configuration bits that are not yet accessible in the new riak.conf (Cuttlefish) format, by creating a file named advanced.config. See: https://github.com/basho/cuttlefish/issues/13

sudo gvim /var/lib/riak/.erlang

code:add_pathz("/your_erlang_beam_path").
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top