Re: ulimit error

2016-04-15 Thread satish bhatti
I had an old version (1.4.6) installed. I installed the latest version in
the 1.4 series (1.4.12) using the Basho package.  This appears to have
fixed the problem. Thanks for the pointer! I guess the other version I had
built myself.


On Fri, Apr 15, 2016 at 2:46 PM, Luke Bakken  wrote:

> Satish -
>
> Thanks for the info. Did you install the Basho-packaged Riak or build
> it yourself?
>
> If you built it yourself, I suspect you are running into this issue:
> https://github.com/basho/riak/issues/267
>
> Fix is here: https://gist.github.com/vinoski/4689170
>
> Please remember to use "reply all" so that the riak-users list may
> gain from our debugging.
>
> --
> Luke Bakken
> Engineer
> lbak...@basho.com
>
> On Fri, Apr 15, 2016 at 2:05 PM, satish bhatti  wrote:
> > Remote Shell: Use "Ctrl-C a" to quit. q() or init:stop() will terminate
> the
> > riak node.
> > Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:8:8] [async-threads:0]
> > [kernel-poll:false]
> >
> > Eshell V5.9.1  (abort with ^G)
> > (riak@127.0.0.1)1> os:cmd("ulimit -n").
> > "65536\n"
> > (riak@127.0.0.1)2>
> >
> > On Fri, Apr 15, 2016 at 1:21 PM, Luke Bakken  wrote:
> >>
> >> Please run:
> >>
> >> riak attach
> >>
> >> then in the Erlang shell:
> >>
> >> os:cmd("ulimit -n").
> >>
> >> Please note that the period at the end of the above statement is
> >> significant. CTRL-C twice will exit the attach session.
> >>
> >> --
> >> Luke Bakken
> >> Engineer
> >> lbak...@basho.com
> >>
> >>
> >> On Fri, Apr 15, 2016 at 1:02 PM, satish bhatti 
> wrote:
> >> > That's the strange thing. I read that, and modified
> >> >
> >> > /Library/LaunchDaemons/limit.maxproc.plist
> >> > /Library/LaunchDaemons/limit.maxfiles.plist
> >> >
> >> > as described.
> >> >
> >> > ulimit -n claims to be set to 65536
> >> >
> >> > I have attached the logfiles.
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: ulimit error

2016-04-15 Thread Luke Bakken
Satish -

Thanks for the info. Did you install the Basho-packaged Riak or build
it yourself?

If you built it yourself, I suspect you are running into this issue:
https://github.com/basho/riak/issues/267

Fix is here: https://gist.github.com/vinoski/4689170

Please remember to use "reply all" so that the riak-users list may
gain from our debugging.

--
Luke Bakken
Engineer
lbak...@basho.com

On Fri, Apr 15, 2016 at 2:05 PM, satish bhatti  wrote:
> Remote Shell: Use "Ctrl-C a" to quit. q() or init:stop() will terminate the
> riak node.
> Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:8:8] [async-threads:0]
> [kernel-poll:false]
>
> Eshell V5.9.1  (abort with ^G)
> (riak@127.0.0.1)1> os:cmd("ulimit -n").
> "65536\n"
> (riak@127.0.0.1)2>
>
> On Fri, Apr 15, 2016 at 1:21 PM, Luke Bakken  wrote:
>>
>> Please run:
>>
>> riak attach
>>
>> then in the Erlang shell:
>>
>> os:cmd("ulimit -n").
>>
>> Please note that the period at the end of the above statement is
>> significant. CTRL-C twice will exit the attach session.
>>
>> --
>> Luke Bakken
>> Engineer
>> lbak...@basho.com
>>
>>
>> On Fri, Apr 15, 2016 at 1:02 PM, satish bhatti  wrote:
>> > That's the strange thing. I read that, and modified
>> >
>> > /Library/LaunchDaemons/limit.maxproc.plist
>> > /Library/LaunchDaemons/limit.maxfiles.plist
>> >
>> > as described.
>> >
>> > ulimit -n claims to be set to 65536
>> >
>> > I have attached the logfiles.

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


Re: ulimit error

2016-04-15 Thread Luke Bakken
Please run:

riak attach

then in the Erlang shell:

os:cmd("ulimit -n").

Please note that the period at the end of the above statement is
significant. CTRL-C twice will exit the attach session.

--
Luke Bakken
Engineer
lbak...@basho.com


On Fri, Apr 15, 2016 at 1:02 PM, satish bhatti  wrote:
> That's the strange thing. I read that, and modified
>
> /Library/LaunchDaemons/limit.maxproc.plist
> /Library/LaunchDaemons/limit.maxfiles.plist
>
> as described.
>
> ulimit -n claims to be set to 65536
>
> I have attached the logfiles.
>
> Satish
>
>
> On Fri, Apr 15, 2016 at 12:49 PM, Luke Bakken  wrote:
>>
>> Satish -
>>
>> Do the steps here resolve your issue?
>>
>>
>> http://docs.basho.com/riak/kv/2.1.3/using/performance/open-files-limit/#mac-os-x
>>
>> --
>> Luke Bakken
>> Engineer
>> lbak...@basho.com
>>
>>
>> On Fri, Apr 15, 2016 at 12:25 PM, satish bhatti  wrote:
>> > Riak on OSX keeps crashing out with:
>> >
>> > 2016-04-15 12:22:34.462 [error] emulator
>> > driver_select(0x2633,
>> > 1028, ERL_DRV_READ ERL_DRV_USE, 1) by tcp_inet driver #Port<0.9779>
>> > failed:
>> > fd=1028 is larger than the largest allowed fd=1023
>> >
>> > but when I check my ulimit:
>> >
>> > aleph:~ $ ulimit -n
>> > 65536
>> >
>> > Where on earth is Riak picking up a ulimit of 1024?
>> >
>> >
>> > ___
>> > 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: ulimit error

2016-04-15 Thread Luke Bakken
Satish -

Do the steps here resolve your issue?

http://docs.basho.com/riak/kv/2.1.3/using/performance/open-files-limit/#mac-os-x

--
Luke Bakken
Engineer
lbak...@basho.com


On Fri, Apr 15, 2016 at 12:25 PM, satish bhatti  wrote:
> Riak on OSX keeps crashing out with:
>
> 2016-04-15 12:22:34.462 [error] emulator driver_select(0x2633,
> 1028, ERL_DRV_READ ERL_DRV_USE, 1) by tcp_inet driver #Port<0.9779> failed:
> fd=1028 is larger than the largest allowed fd=1023
>
> but when I check my ulimit:
>
> aleph:~ $ ulimit -n
> 65536
>
> Where on earth is Riak picking up a ulimit of 1024?
>
>
> ___
> 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


ulimit error

2016-04-15 Thread satish bhatti
Riak on OSX keeps crashing out with:

2016-04-15 12:22:34.462 [error] emulator driver_select(0x2633,
1028, ERL_DRV_READ ERL_DRV_USE, 1) by tcp_inet driver #Port<0.9779> failed:
fd=1028 is larger than the largest allowed fd=1023

but when I check my ulimit:

aleph:~ $ ulimit -n
65536

Where on earth is Riak picking up a ulimit of 1024?
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Can't delete objects from Riak KV

2016-04-15 Thread Luke Bakken
Hi everyone -

I'm following up on the solution. The biggest hint were Erlang RPC
errors when commands such as "riak-admin" were run. It turned out that
removing the ring files in /var/lib/riak/ring and restarting this node
(single node test cluster) resolved the issue.

--
Luke Bakken
Engineer
lbak...@basho.com


On Wed, Apr 13, 2016 at 9:53 PM, Alex De la rosa
 wrote:
> Hi there,
>
> I'm trying to delete objects from riak with the python library and is timing
> out, any ideas? (this example is from a simple object, but also have issues
> with bucket types with map objects, etc...)... Just I seem to unable to
> delete anything, just times out.
>
 import riak
 RIAK = riak.RiakClient(protocol = 'pbc', nodes = [{'host': '',
 'http_port': 8098, 'pb_port': 8087}])
 x = RIAK.bucket('test').get('something')
 print x.data
> {"something":"here"}
 x.delete()
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/usr/local/lib/python2.7/dist-packages/riak/riak_object.py", line
> 329, in delete
> timeout=timeout)
>   File "/usr/local/lib/python2.7/dist-packages/riak/client/transport.py",
> line 196, in wrapper
> return self._with_retries(pool, thunk)
>   File "/usr/local/lib/python2.7/dist-packages/riak/client/transport.py",
> line 138, in _with_retries
> return fn(transport)
>   File "/usr/local/lib/python2.7/dist-packages/riak/client/transport.py",
> line 194, in thunk
> return fn(self, transport, *args, **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/riak/client/operations.py",
> line 744, in delete
> pw=pw, timeout=timeout)
>   File
> "/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/transport.py",
> line 283, in delete
> riak.pb.messages.MSG_CODE_DEL_RESP)
>   File
> "/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/connection.py",
> line 34, in _request
> return self._recv_msg(expect)
>   File
> "/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/connection.py",
> line 165, in _recv_msg
> raise RiakError(bytes_to_str(err.errmsg))
> riak.riak_error.RiakError: 'timeout'
>
> My Riak version is 2.1.4
>
> My Python library is (installed via pip):
> Name: riak
> Version: 2.2.0
> Location: /usr/local/lib/python2.7/dist-packages
> Requires: six, pyOpenSSL, riak-pb
>
> Thanks,
> Alex
>
>
> ___
> 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: Riak KV vs Riak TS

2016-04-15 Thread Alex De la rosa
Hi there,

Can somebody give some answers to this? I really want to know if Riak TS is
something for me to use or i'm better with Riak KV.

Thanks,
Alex

On Thu, Apr 14, 2016 at 3:42 PM, Alex De la rosa 
wrote:

> Hi there,
>
> I had been building a project for a while (i got stuck with work and kinda
> got delayed for a year until now that i could resume it) and I was planning
> to use the following setup (the project is a social network... so imagine
> something like Facebook)
>
> - Riak CS: Video storage and streaming
> - Riak KV: Everything else... Users, Profiles, Photos, Statuses, Likes,
> Counters, etc...
>
> For what I've seen now, Riak CS is gone; I guess it was replaced by Riak
> S2... and now there is the new Riak TS. Now I wonder if Riak TS could be
> good for my project and what use case I could really give it (maybe user's
> status updates?)
>
> However, in this situation I could think of:
>
> - Riak S2: Video storage and streaming (photo storage too)
> - Riak TS: Statuses, Updates, News, etc...
> - Riak KV: Users, Profiles, Settings
>
> Is this something to think of going forward? Also... would I require a
> cluster of at least 5 servers for each Riak variant?? That would require a
> minimum of 15 servers just to start!... a bit too much.
>
> Can somebody enlighten me a little on this new Riak TS? Also, is not yet
> available to download/test?
>
> Thanks,
> Alex
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com