Hi Mike,

Just to make sure: Riak only supports IP addresses and not DNS names in the config files.
Though in your docs it still says:
"Riak identifies other machines in the ring using Erlang identifiers (<hostname or IP>, ex: riak@10.9.8.7)."

Riak only accepts ip addresses in the app.config file, but the vm.args "-name" parameter can use either full hostnames or ip addresses.  You can read about the -name parameter at http://www.erlang.org/doc/reference_manual/distributed.html.

The error logged when changing our config from something like 172.31.41.138 to riaknode2-ext is:

2013-09-19 21:49:53.383 [error] <0.113.0> Supervisor riak_core_sup had child "http_riaknode2-ext:8098" started with webmachine_mochiweb:start([{name,"http_riaknode2-ext:8098"},{ip,"riaknode2-ext"},{port,8098},{nodelay,true},{log_dir,"log"},...]) at undefined exit with reason {'EXIT',{{badmatch,{error,einval}},[{mochiweb_socket_server,parse_options,2},{mochiweb_socket_server,start,1},{supervisor,do_start_child,2},{supervisor,start_children,3},{supervisor,init_children,2},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}} in context start_error

If you've previously started the node with another "-name" parameter, you will have to do the renaming procedure instead of just changing the "-name" value: http://docs.basho.com/riak/latest/ops/running/nodes/renaming/.  

Thanks,
Alex

On September 19, 2013 at 6:52:29 PM, Mike Nathe (mna...@fathom-i.com) wrote:

hi.

we are trying to run Riak in the Amazon cloud (using OpsWorks).
With every restart of the servers the ip addresses change so using an entry in the /etc/hosts instead of an IP looks like a great idea.

Google's answer is:

Just to make sure: Riak only supports IP addresses and not DNS names in the config files.
Though in your docs it still says:
"Riak identifies other machines in the ring using Erlang identifiers (<hostname or IP>, ex: riak@10.9.8.7)."


The error logged when changing our config from something like 172.31.41.138 to riaknode2-ext is:

2013-09-19 21:49:53.383 [error] <0.113.0> Supervisor riak_core_sup had child "http_riaknode2-ext:8098" started with webmachine_mochiweb:start([{name,"http_riaknode2-ext:8098"},{ip,"riaknode2-ext"},{port,8098},{nodelay,true},{log_dir,"log"},...]) at undefined exit with reason {'EXIT',{{badmatch,{error,einval}},[{mochiweb_socket_server,parse_options,2},{mochiweb_socket_server,start,1},{supervisor,do_start_child,2},{supervisor,start_children,3},{supervisor,init_children,2},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}} in context start_error

Thanks a bunch.

Have a great day.
Michael
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to