Question

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.

Était-ce utile?

La solution

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/*).

Autres conseils

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").
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top