Can't start second node in local machine

Jeff Kirkell jeff.kirkell at gmail.com
Sat Nov 19 17:31:29 EST 2011


One other thing to note, if you ever started the second node with the old
name from the vm.args file, you need to do a reip. See the Wiki for details
on how to run.

Jeff

On Sat, Nov 19, 2011 at 2:59 PM, Jeremiah Peschka <
jeremiah.peschka at gmail.com> wrote:

> There are no books about Riak, yet. Mathias Meyer wrote a NoSQL handbook
> that has a chapter about Riak, but I've never read it. Seven Databases in
> Seven Weeks is rumored to contain a chapter about Riak, but it's just in a
> planning stage, I believe. You can search the mailing list archives through
> markmail: http://markmail.org/search/?q=list%3Acom.basho.lists.riak-users
>
> The Fast Track doesn't do anything hidden, it uses `make` and `rebar` to
> create a 4 node cluster by copying the configuration and binary folders.
> You can see what happens by looking in the Makefile for the devrel section.
> It's pretty dull and it just copies configuration around with some magic to
> change the port numbers.
>
> I can appreciate wanting to manually configure Riak and all, but keep in
> mind that having multiple Riak nodes on the same physical machine is not
> recommended for production use. The only thing that you're going to be
> change is the name you're using for the node. When in doubt, take the path
> of least resistance.
>
> If you're still intent on doing all of this by hand, you need to make sure
> that you also change the handoff_port and pb_port in the node configuration
> file. When I run a diff on my node1 and node2 config files, I see the
> following:
>
> $ diff dev1/etc/app.config dev2/etc/app.config
> 11c11
> <               {http, [ {"0.0.0.0", 8091 } ]},
> ---
> >               {http, [ {"0.0.0.0", 8092 } ]},
> 15c15
> <               %{https, [{ "0.0.0.0", 8091 }]},
> ---
> >               %{https, [{ "0.0.0.0", 8092 }]},
> 26c26
> <               {handoff_port, 8101 },
> ---
> >               {handoff_port, 8102 },
> 55c55
> <             {pb_port, 8081 },
> ---
> >             {pb_port, 8082 },
>
> HTH
>
> ---
> Jeremiah Peschka - Founder, Brent Ozar PLF, LLC
> Microsoft SQL Server MVP
>
> On Nov 19, 2011, at 1:14 AM, yozloy wrote:
>
> > Hey Jeremiah,
> >
> > I change the port that RIak listening on by changing the {http,
> [{"127.0.0.1",8098}]} to {http, [{127.0.0.1}, 8099]} in the etc/app.config,
> but the Node 'riak2 at 127.0.0.1' not responding to pings.
> >
> > And the fast track seems to me use some sh file hidden some command, I
> want do manually configure RIak.
> >
> > Could you recommend some books or any reading material about Riak
> besides the online official documentation?
> >
> > Thanks
> >
> > On Nov 19, 2011, at 12:08 PM, Jeremiah Peschka wrote:
> >
> >>
> >> Did you change the ports that Risk is listening on for the second
> instance?
> >>
> >> If you follow the Riak fast track, it explains how to set up a 4 node
> cluster.
> >>
> >> Jeremiah Peschka
> >> Founder, Brent Ozar PLF
> >>
> >> On Nov 18, 2011 7:24 PM, "yozloy" <yozloy at me.com> wrote:
> >> I copied the riak-1.0.2 folder, and change the node name to
> riak2 at 127.0.0.1 in the vm.args file. But the changed node refused to
> start, it returned
> >>
> >> Argo:bin yozloy$ ./riak start
> >> !!!!
> >> !!!! WARNING: ulimit -n is 256; 1024 is the recommended minimum.
> >> !!!!
> >> 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.
> >> Argo:bin yozloy$ ls
> >>
> >>
> >> _______________________________________________
> >> riak-users mailing list
> >> riak-users at lists.basho.com
> >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20111119/8cd34457/attachment.html>


More information about the riak-users mailing list