Re: Error installing riak from source on OS X

2010-11-27 Thread Jeremiah Peschka
Did you pull down the riak sources by cloning the github repo or did you
just download from somewhere?

Jeremiah Peschka
SQL Server MVP
MCITP: Database Developer, DBA
614.515.0727
On Nov 27, 2010 1:47 AM, "Jonah Crawford" 
wrote:
> Hi I've been able to get riak funning using brew but getting some glitches
with client code so I decided to install from source to see if it helps any.
Here is the error I'm getting:
>
> abort: There is no Mercurial repository here (.hg not found)
> ./rebar get-deps
> Uncaught error in rebar_core: {'EXIT',
> {undef,
> [{crypto,start,[]},
> {rebar_core,run,1},
> {rebar,main,1},
> {escript,run,2},
> {escript,start,1},
> {init,start_it,1},
> {init,start_em,1}]}}
>
> =ERROR REPORT 26-Nov-2010::22:40:37 ===
> Error in process <0.30.0> with exit value:
{badarg,[{erlang,system_info,[build_type]},{crypto,on_load,0},{code_server,'-handle_on_load/4-fun-0-',1}]}
>
> make: *** [deps] Error 1
>
>
>
> Obviously it's looking for something that's not there... what libs need to
be installed or present in the build package for this to work ?
>
> Thanks in advance,
>
> Jonah
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Error installing riak from source on OS X

2010-11-27 Thread Alexander Sicular
I believe you need to have mercurial installed. I think rebar looks for it even 
though the primary repos are in git now. 

-Alexander


On Nov 27, 2010, at 10:16 AM, Jeremiah Peschka wrote:

> Did you pull down the riak sources by cloning the github repo or did you just 
> download from somewhere?
> 
> Jeremiah Peschka
> SQL Server MVP
> MCITP: Database Developer, DBA
> 614.515.0727
> 
> On Nov 27, 2010 1:47 AM, "Jonah Crawford"  wrote:
> > Hi I've been able to get riak funning using brew but getting some glitches 
> > with client code so I decided to install from source to see if it helps 
> > any. Here is the error I'm getting:
> > 
> > abort: There is no Mercurial repository here (.hg not found)
> > ./rebar get-deps
> > Uncaught error in rebar_core: {'EXIT',
> > {undef,
> > [{crypto,start,[]},
> > {rebar_core,run,1},
> > {rebar,main,1},
> > {escript,run,2},
> > {escript,start,1},
> > {init,start_it,1},
> > {init,start_em,1}]}}
> > 
> > =ERROR REPORT 26-Nov-2010::22:40:37 ===
> > Error in process <0.30.0> with exit value: 
> > {badarg,[{erlang,system_info,[build_type]},{crypto,on_load,0},{code_server,'-handle_on_load/4-fun-0-',1}]}
> > 
> > make: *** [deps] Error 1
> > 
> > 
> > 
> > Obviously it's looking for something that's not there... what libs need to 
> > be installed or present in the build package for this to work ?
> > 
> > Thanks in advance,
> > 
> > Jonah
> > ___
> > riak-users mailing list
> > riak-users@lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Error installing riak from source on OS X

2010-11-27 Thread David Smith
On Fri, Nov 26, 2010 at 11:47 PM, Jonah Crawford
 wrote:
> Hi I've been able to get riak funning using brew but getting some glitches 
> with client code so I decided to install from source to see if it helps any. 
> Here is the error I'm getting:

The root question here is "how did you install Erlang"? I suspect that
your Erlang install does not include support for SSL/crypto, so rebar
is blowing up. An easy way to verify this is to do the following on
the command line:

1. Start up erl (the erlang interpreter)
2. On the erl prompt type:

crypto:start().

If all goes well, you should see something like:

(diz...@drekar).(~)% erl
Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:2:2] [rq:2]
[async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.5  (abort with ^G)
1> crypto:start().
ok
2>

Hope that helps...

D.

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Error installing riak from source on OS X

2010-11-27 Thread Jeremiah Peschka
If you pull from github using the instructions
here,
it doesn't require the mercurial repository. I can only say that with any
confidence because I just pulled it down the source and tried it out.

I do recall running into this problem several months ago.

David has the right question: "how did you install Erlang?" I installed mine
through homebrew (Erlang R14B (erts-5.8.1) [source] [64-bit] [smp:4:4]
[rq:4] [async-threads:0] [hipe] [kernel-poll:false])

Eshell V5.8.1  (abort with ^G)

Jeremiah Peschka
Microsoft SQL Server MVP
MCITP: Database Developer, DBA
614.515.0727


On Sat, Nov 27, 2010 at 10:20 AM, Alexander Sicular wrote:

> I believe you need to have mercurial installed. I think rebar looks for it
> even though the primary repos are in git now.
>
> -Alexander
>
>
> On Nov 27, 2010, at 10:16 AM, Jeremiah Peschka wrote:
>
> > Did you pull down the riak sources by cloning the github repo or did you
> just download from somewhere?
> >
> > Jeremiah Peschka
> > SQL Server MVP
> > MCITP: Database Developer, DBA
> > 614.515.0727
> >
> > On Nov 27, 2010 1:47 AM, "Jonah Crawford" 
> wrote:
> > > Hi I've been able to get riak funning using brew but getting some
> glitches with client code so I decided to install from source to see if it
> helps any. Here is the error I'm getting:
> > >
> > > abort: There is no Mercurial repository here (.hg not found)
> > > ./rebar get-deps
> > > Uncaught error in rebar_core: {'EXIT',
> > > {undef,
> > > [{crypto,start,[]},
> > > {rebar_core,run,1},
> > > {rebar,main,1},
> > > {escript,run,2},
> > > {escript,start,1},
> > > {init,start_it,1},
> > > {init,start_em,1}]}}
> > >
> > > =ERROR REPORT 26-Nov-2010::22:40:37 ===
> > > Error in process <0.30.0> with exit value:
> {badarg,[{erlang,system_info,[build_type]},{crypto,on_load,0},{code_server,'-handle_on_load/4-fun-0-',1}]}
> > >
> > > make: *** [deps] Error 1
> > >
> > >
> > >
> > > Obviously it's looking for something that's not there... what libs need
> to be installed or present in the build package for this to work ?
> > >
> > > Thanks in advance,
> > >
> > > Jonah
> > > ___
> > > riak-users mailing list
> > > riak-users@lists.basho.com
> > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> > ___
> > riak-users mailing list
> > riak-users@lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Error installing riak from source on OS X

2010-11-27 Thread Jonah Crawford
I was able to get riak to compile. Uninstalled all things riak related from 
brew and used the source found here - 
https://wiki.basho.com/display/RIAK/Installing+Riak+from+Source - Thanks for 
the help!

On Nov 27, 2010, at 7:41 AM, Jeremiah Peschka wrote:

> If you pull from github using the instructions here, it doesn't require the 
> mercurial repository. I can only say that with any confidence because I just 
> pulled it down the source and tried it out. 
> 
> I do recall running into this problem several months ago. 
> 
> David has the right question: "how did you install Erlang?" I installed mine 
> through homebrew (Erlang R14B (erts-5.8.1) [source] [64-bit] [smp:4:4] [rq:4] 
> [async-threads:0] [hipe] [kernel-poll:false])
> 
> Eshell V5.8.1  (abort with ^G)
> 
> Jeremiah Peschka
> Microsoft SQL Server MVP
> MCITP: Database Developer, DBA
> 614.515.0727
> 
> 
> On Sat, Nov 27, 2010 at 10:20 AM, Alexander Sicular  
> wrote:
> I believe you need to have mercurial installed. I think rebar looks for it 
> even though the primary repos are in git now.
> 
> -Alexander
> 
> 
> On Nov 27, 2010, at 10:16 AM, Jeremiah Peschka wrote:
> 
> > Did you pull down the riak sources by cloning the github repo or did you 
> > just download from somewhere?
> >
> > Jeremiah Peschka
> > SQL Server MVP
> > MCITP: Database Developer, DBA
> > 614.515.0727
> >
> > On Nov 27, 2010 1:47 AM, "Jonah Crawford"  
> > wrote:
> > > Hi I've been able to get riak funning using brew but getting some 
> > > glitches with client code so I decided to install from source to see if 
> > > it helps any. Here is the error I'm getting:
> > >
> > > abort: There is no Mercurial repository here (.hg not found)
> > > ./rebar get-deps
> > > Uncaught error in rebar_core: {'EXIT',
> > > {undef,
> > > [{crypto,start,[]},
> > > {rebar_core,run,1},
> > > {rebar,main,1},
> > > {escript,run,2},
> > > {escript,start,1},
> > > {init,start_it,1},
> > > {init,start_em,1}]}}
> > >
> > > =ERROR REPORT 26-Nov-2010::22:40:37 ===
> > > Error in process <0.30.0> with exit value: 
> > > {badarg,[{erlang,system_info,[build_type]},{crypto,on_load,0},{code_server,'-handle_on_load/4-fun-0-',1}]}
> > >
> > > make: *** [deps] Error 1
> > >
> > >
> > >
> > > Obviously it's looking for something that's not there... what libs need 
> > > to be installed or present in the build package for this to work ?
> > >
> > > Thanks in advance,
> > >
> > > Jonah
> > > ___
> > > riak-users mailing list
> > > riak-users@lists.basho.com
> > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> > ___
> > riak-users mailing list
> > riak-users@lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
> 
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Whole cluster times out if one node is gone

2010-11-27 Thread Jay Adkisson
Neville, I'm not sure how you mean.  The network gear is all functional,
otherwise I wouldn't be able to interact with the machines at all (they're
at our colo).  But as far as I understand, if I hard reboot a box (or, in a
real-world scenario, the pdu fails), the switch will happily continue
forwarding packets into nothingness, causing HTTP requests to hang
indefinitely until they time out.  From what Dan said, I would expect that
Riak handles that sort of situation intelligently.  I guess my remaining
questions are:

* How does Riak detect that a node is down, and what could cause that to
take a full minute?
* When N=3, what about a single node failure could cause a read with R=1 to
time out?
* Is there a way to configure the strictness of when nodes are assumed dead?
 I'm thinking like a "timeout" config option or something.

Peace,
--Jay

On Tue, Nov 23, 2010 at 2:55 PM, Neville Burnell
wrote:

> Just a thought ... have you verified your switch, cables, nics, etc
>
>
> On 24 November 2010 09:33, Jay Adkisson  wrote:
>
>> (many profuse apologies to Dan - hit "reply" instead of "reply all")
>>
>> Alrighty, I've done a little more digging.  When I throttle the writes
>> heavily (2/sec) and set R and W to 1 all around, the cluster works just fine
>> after I restart the node for about 15-20 seconds.  Then the read request
>> hangs for about a minute, until node D disappears from connected_nodes in
>> riak-admin status, at which point it returns the desired value (although
>> sometimes I get a 503):
>>
>> --2010-11-23 13:*01:28*--  http://:8098/riak//?r=1
>> Resolving ... 
>> Connecting to ||:8098... connected.
>> HTTP request sent, awaiting response... * *200 OK
>> Length: 3684 (3.6K) [image/jpeg]
>> Saving to: `?r=1'
>>
>> 100%[==>] 3,684   --.-K/s   in 0s
>>
>> 2010-11-23 13:*02:21* (49.5 MB/s) - `?r=1' saved [3684/3684]
>>
>> --2010-11-23 13:02:23--  http://:8098/riak//?r=1
>> Resolving ... 
>> Connecting to ||:8098... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 3684 (3.6K) [image/jpeg]
>> Saving to: `?r=1'
>>
>> 100%[==>] 3,684   --.-K/s   in 0s
>>
>> 2010-11-23 13:02:23 (220 MB/s) - `?r=1' saved [3684/3684]
>>
>> Afterwards, node D comes back up and re-joins the cluster seamlessly.
>>
>> Any insights?
>>
>> --Jay
>>
>> On Mon, Nov 22, 2010 at 5:59 PM, Jay Adkisson  wrote:
>>
>>> Hey Dan,
>>>
>>> Thanks for the response!  I tried it again while watching `riak-admin
>>> status` - basically, it takes about 30 seconds of node C being down before
>>> riak realizes it's gone.  During that time, if I'm writing to the cluster at
>>> all (I throttled it to 2 writes per second for testing), both writes and
>>> reads hang indefinitely, and sometimes time out.
>>>
>>> I'm using Ripple to do the writes, and wget to test reads, all on node A
>>> for now, since I know it'll be up.  I'm using the default R and W options
>>> for now.
>>>
>>> Thanks for the help and clarification around ringready.
>>>
>>> --Jay
>>>
>>>
>>> On Mon, Nov 22, 2010 at 5:15 PM, Dan Reverri  wrote:
>>>
 Your HTTP calls should not being timing out. Are you sending requests
 directly to the Riak node or are you using a load balancer? How much load
 are you placing on node A? Is it a write only load or are there reads as
 well? Can you confirm "all" requests time out or is it a large subset of 
 the
 requests? How large are the objects being written? Are you setting R and W
 in the request? Are you using a particular client (Ruby, Python, etc.)? Can
 you provide the output of "riak-admin status" from node A?

 Regarding the ringready command; that is behaving as I would expect
 considering a node is down.

 Thanks,
 Dan

 Daniel Reverri
 Developer Advocate
 Basho Technologies, Inc.
 d...@basho.com


 On Mon, Nov 22, 2010 at 4:55 PM, Jay Adkisson wrote:

> Hey all,
>
> Here's what I'm seeing: I have four nodes A, B, C, and D.  I'm loading
> lots of data into node A, which is being distributed evenly across the
> nodes.  If I physically reboot node D, all my HTTP calls time out, and
> `riak-admin ringready` complains that not all nodes are up.  Is this
> intended behavior?  Is there a configuration option I can set so it fails
> more gracefully?
>
> --Jay
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>

>>>
>>
>> ___
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.

Re: Whole cluster times out if one node is gone

2010-11-27 Thread Sean Cribbs
1) Riak detects node outage the same way any Erlang system does - when a 
message fails to deliver, or the heartbeat maintained by epmd fails.  The 
default timeout in epmd is 1 minute, which is probably why you're seeing it 
take 1 minute to be detected.
2) If it takes too long (the vnode is overloaded, perhaps, or is just starting 
up as a hint partition) to retrieve from any node, the request can time out.9
3) You could probably configure epmd to timeout sooner, but then you become 
more vulnerable to temporary partitions. YMMV

Sean Cribbs 
Developer Advocate
Basho Technologies, Inc.
http://basho.com/

On Nov 27, 2010, at 3:21 PM, Jay Adkisson wrote:

> Neville, I'm not sure how you mean.  The network gear is all functional, 
> otherwise I wouldn't be able to interact with the machines at all (they're at 
> our colo).  But as far as I understand, if I hard reboot a box (or, in a 
> real-world scenario, the pdu fails), the switch will happily continue 
> forwarding packets into nothingness, causing HTTP requests to hang 
> indefinitely until they time out.  From what Dan said, I would expect that 
> Riak handles that sort of situation intelligently.  I guess my remaining 
> questions are:
> 
> * How does Riak detect that a node is down, and what could cause that to take 
> a full minute?
> * When N=3, what about a single node failure could cause a read with R=1 to 
> time out?
> * Is there a way to configure the strictness of when nodes are assumed dead?  
> I'm thinking like a "timeout" config option or something.
> 
> Peace,
> --Jay
> 
> On Tue, Nov 23, 2010 at 2:55 PM, Neville Burnell  
> wrote:
> Just a thought ... have you verified your switch, cables, nics, etc
> 
> 
> On 24 November 2010 09:33, Jay Adkisson  wrote:
> (many profuse apologies to Dan - hit "reply" instead of "reply all")
> 
> Alrighty, I've done a little more digging.  When I throttle the writes 
> heavily (2/sec) and set R and W to 1 all around, the cluster works just fine 
> after I restart the node for about 15-20 seconds.  Then the read request 
> hangs for about a minute, until node D disappears from connected_nodes in 
> riak-admin status, at which point it returns the desired value (although 
> sometimes I get a 503):
> 
> --2010-11-23 13:01:28--  http://:8098/riak//?r=1
> Resolving ... 
> Connecting to ||:8098... connected.
> HTTP request sent, awaiting response...  200 OK
> Length: 3684 (3.6K) [image/jpeg]
> Saving to: `?r=1'
> 
> 100%[==>] 3,684   --.-K/s   in 0s
> 
> 2010-11-23 13:02:21 (49.5 MB/s) - `?r=1' saved [3684/3684]
> 
> --2010-11-23 13:02:23--  http://:8098/riak//?r=1
> Resolving ... 
> Connecting to ||:8098... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 3684 (3.6K) [image/jpeg]
> Saving to: `?r=1'
> 
> 100%[==>] 3,684   --.-K/s   in 0s
> 
> 2010-11-23 13:02:23 (220 MB/s) - `?r=1' saved [3684/3684]
> 
> Afterwards, node D comes back up and re-joins the cluster seamlessly.
> 
> Any insights?  
> 
> --Jay
> 
> On Mon, Nov 22, 2010 at 5:59 PM, Jay Adkisson  wrote:
> Hey Dan,
> 
> Thanks for the response!  I tried it again while watching `riak-admin status` 
> - basically, it takes about 30 seconds of node C being down before riak 
> realizes it's gone.  During that time, if I'm writing to the cluster at all 
> (I throttled it to 2 writes per second for testing), both writes and reads 
> hang indefinitely, and sometimes time out.
> 
> I'm using Ripple to do the writes, and wget to test reads, all on node A for 
> now, since I know it'll be up.  I'm using the default R and W options for now.
> 
> Thanks for the help and clarification around ringready.
> 
> --Jay
> 
> 
> On Mon, Nov 22, 2010 at 5:15 PM, Dan Reverri  wrote:
> Your HTTP calls should not being timing out. Are you sending requests 
> directly to the Riak node or are you using a load balancer? How much load are 
> you placing on node A? Is it a write only load or are there reads as well? 
> Can you confirm "all" requests time out or is it a large subset of the 
> requests? How large are the objects being written? Are you setting R and W in 
> the request? Are you using a particular client (Ruby, Python, etc.)? Can you 
> provide the output of "riak-admin status" from node A?
> 
> Regarding the ringready command; that is behaving as I would expect 
> considering a node is down.
> 
> Thanks,
> Dan
> 
> Daniel Reverri
> Developer Advocate
> Basho Technologies, Inc.
> d...@basho.com
> 
> 
> On Mon, Nov 22, 2010 at 4:55 PM, Jay Adkisson  wrote:
> Hey all,
> 
> Here's what I'm seeing: I have four nodes A, B, C, and D.  I'm loading lots 
> of data into node A, which is being distributed evenly across the nodes.  If 
> I physically reboot node D, all my HTTP calls time out, and `riak-admin 
> ringready` complains that not all nodes are up.  Is this intended behavior?  
> Is there a configuration option I can set so it fails more gracefully?
> 
> --Jay
> 
> ___