About Protocol Buffers

2014-06-23 Thread Alex De la rosa
Hi there, I just installed RIAK 2.0 beta 1 and was playing with the Python library using 'pbc' (Protocol Buffers). test.py +++++++++++ import riak client = riak.RiakClient(host ='127.0.0.1', http_port

Re: About Protocol Buffers

2014-06-23 Thread Alex De la rosa
2. Register encoder and decoder functions [1] on the RiakClient object, > like so: > > client.set_decoder('application/pb-person', Person.ParseFromString) > client.set_encoder('application/pb-person', lambda x: > x.SerializeToString()) > > [1] > http

Re: About Protocol Buffers

2014-06-23 Thread Alex De la rosa
cs site <http://docs.basho.com/riak/2.0.0beta1/> > soon. > > Hope that helps! > > Luc > > > On Mon, Jun 23, 2014 at 4:54 PM, Alex De la rosa > wrote: > >> Hi Sean, >> >> Thanks for your quick reply, is what i suspected, moreover after checking

Re: About Protocol Buffers

2014-06-23 Thread Alex De la rosa
1]. > > I’m sure those more in the know will correct me if I’ve misspoken. > > Brett > > [1] http://docs.basho.com/riak/2.0.0beta1/dev/advanced/search/ > > On June 23, 2014 at 10:47:45 AM, Alex De la rosa (alex.rosa@gmail.com) > wrote: > > Hi Luc, > > Cool,

Re: About Protocol Buffers

2014-06-23 Thread Alex De la rosa
at: https://raw.githubusercontent.com/basho/basho_docs/2.0.0/source/languages/en/riak/dev/using/data-types.md Thanks, Alex On Mon, Jun 23, 2014 at 10:03 PM, Alex De la rosa wrote: > Hi Bret, > > Thanks for your reply, I had used Riak since version 0.14 via HTTP... for > 2.0 I decided to

Re: About Protocol Buffers

2014-06-24 Thread Alex De la rosa
> > Also be aware that you can call a bucket type that you set up to use > counters anything that you'd like. The only reserved term for bucket types > is *default*. > > Luc > > > On T

Re: About Protocol Buffers

2014-06-24 Thread Alex De la rosa
t all Riak 2.0 features have been merged to master on the Python client, > including CRDTs. We are in final testing of that feature and will have a > release candidate package of the client out soon. > > > On Tue, Jun 24, 2014 at 5:26 AM, Alex De la rosa > wrote: > >> Hi

Python client: Connection pool

2014-06-25 Thread Alex De la rosa
Hi there, Using the Python client, in the documentation I can read this: "The client maintains a connection pool behind the scenes, one for each protocol. Connections are opened as-needed; a random node is selected when a new connection is requested." Imagine that I create my connection like thi

Possible bug in Python client?

2014-06-25 Thread Alex De la rosa
Hi there, I was testing 2i via PBC on Python and I found a wrong behaviour, this is my code: ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--- import riak client = riak.RiakClient(protocol='pbc', nodes=[{'host'

Fwd: Possible bug in Python client?

2014-06-25 Thread Alex De la rosa
** SORRY, WAS SEND BEFORE I FINISHED ** Hi there, I was testing 2i via PBC on Python and I found a wrong behaviour, this is my code: ---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+--- import riak client = riak.

Re: Python client: Connection pool

2014-06-25 Thread Alex De la rosa
when *opening* a connection. After > that, it just uses what is first available in the pool. > > We have an outstanding plan to support auto-configuring clients, but that > work did not make it into the 2.0 cycle. > > > On Wed, Jun 25, 2014 at 7:18 AM, Alex De la rosa >

Riak for streaming video

2014-06-26 Thread Alex De la rosa
Hi there, Imagine that I want to use Riak for a video service like Youtube and I save the video file in Riak... is there a way to stream the contents of 1 key? I know we can stream keys... but what about its content? It would be pretty troublesome to have to wait for the full data to be downloade

Re: Riak for streaming video

2014-06-26 Thread Alex De la rosa
> > [0] http://docs.basho.com/riakcs/latest/ > [1] > http://docs.basho.com/riakcs/latest/references/apis/storage/s3/RiakCS-GET-Object/#Examples > > On Thu, Jun 26, 2014 at 3:22 PM, Alex De la rosa > wrote: > > Hi there, > > > > Imagine that I want to use Riak f

Re: Riak for streaming video

2014-06-26 Thread Alex De la rosa
un 26, 2014 at 10:45 PM, Hector Castro wrote: > Hey Alex, > > My response are inline below. > > -- > Hector > > > On Thu, Jun 26, 2014 at 4:26 PM, Alex De la rosa > wrote: > > Hi Hector, > > > > I see, I always thought that Riak CS was the same as Ria

Help on bucket quorums

2014-06-28 Thread Alex De la rosa
Hi there, Can somebody help me understand a bit better the bucket quorums? I will use the Python API to write code examples: Imagine we are building a web app like twitter, and we want fast read (although not need to be consistent) and safe writings, this R/W combination is appropriate? bucket =

Re: Help on bucket quorums

2014-06-28 Thread Alex De la rosa
useful. > > http://basho.com/understanding-riaks-configurable-behaviors-part-1/ > > > Sent from my iPhone > > On Jun 28, 2014, at 5:56 AM, Alex De la rosa > wrote: > > Hi there, > > Can somebody help me understand a bit better the bucket quorums? I will > us

Re: Help on bucket quorums

2014-06-28 Thread Alex De la rosa
ant strong consistency. Leaving again just the real need to set "r" and "w" if we want to speed up any of the processes. Am I right? Cheers, Alex On Sat, Jun 28, 2014 at 8:41 PM, Sean Cribbs wrote: > > On Sat, Jun 28, 2014 at 4:55 AM, Alex De la rosa > wrote: &g

Re: Riak for streaming video

2014-06-29 Thread Alex De la rosa
t; >> RiakCS is wonderful, but it does seem overkill for some uses where you >> don't need to expose an S3 interface, don't need the S3 permission >> structure, and really just want file storage. >> >> - Original Message - >> From: "Alex De la rosa

Question about counters

2014-06-29 Thread Alex De la rosa
Hi there, I have a question about something that just came up to my mind... can we determine which counter is higher in a bucket? For example: # Taking the FIFA World Cup as example: bucket = client.bucket_type('counter_bucket').bucket('goals') counter = bucket.new('Neymar') counter.increment(4)

Re: Riak for streaming video

2014-06-30 Thread Alex De la rosa
scribed on our docs > page > http://docs.basho.com/riakcs/latest/cookbooks/configuration/Configuring-Stanchion/ > . > > Keep the questions coming, if I don't know the details I'll hand off to > Engineers more knowledgable with RiakCS. > > -Jared > > > > &g

Re: Question about counters

2014-06-30 Thread Alex De la rosa
f. I believe keys are independent in this regard. Basho > is introducing sets in riak 2.0 but I don't think they will bee sorted sets > like in redis. > > -Alexander > > @siculars > http://siculars.posthaven.com > > Sent from my iRotaryPhone > > On Jun 29, 2014, a

Re: Question about counters

2014-06-30 Thread Alex De la rosa
h MapReduce, you could instead enable Riak Search 2.0 > for the bucket and query the largest values through Solr, which should be > more efficient and flexible than using MapReduce. > > Best regards, > > Christian > > > On Mon, Jun 30, 2014 at 7:17 AM, Alex De la rosa >

Cluster security

2014-06-30 Thread Alex De la rosa
Hi there, Imaging the following IP configuration for Riak 2.0: # /etc/riak/riak.conf nodename = riak@111.222.333.1 listener.http.internal = 127.0.0.1:8098 listener.protobuf.internal = 127.0.0.1:8087 listener.https.internal = 127.0.0.1:8098 I put the server's real IP in the nodename so they can

Re: Cluster security

2014-06-30 Thread Alex De la rosa
tion between > your VMs to ensure authenticity of clients, as well as > confidentiality. > > On Mon, Jun 30, 2014 at 2:47 AM, Alex De la rosa > wrote: > > Hi there, > > > > Imaging the following IP configuration for Riak 2.0: > > > > # /etc/riak/riak.conf >

Re: Riak for streaming video

2014-06-30 Thread Alex De la rosa
l function just fine without it except for those > functions. > > > > > > On Jun 30, 2014, at 3:10 AM, Alex De la rosa > > wrote: > > > > Hi Jared, > > > > Thanks for your explanation and links... my next question is... Is > Stanchion > >

Re: Question about counters

2014-07-01 Thread Alex De la rosa
Hi there, I found out why Riak was not starting when I enabled it... JAVA was not installed!!... However, after installing Java and successfully started Riak with search enabled, when trying to use "search" it crashes very badly, this is the Java Version I have under Ubuntu Server 14.04 LTS: java

Re: Question about counters

2014-07-01 Thread Alex De la rosa
--+-+- Is a problem of the Python client? Or there is something wrong on my code? When will it be a Python client update solving all these issues? is a bit frustrating wanting to try the features and see you can not do it because the client is not fully operational. Cheers, Alex On Tue, Ju

Re: Question about counters

2014-07-01 Thread Alex De la rosa
akken > CSE > lbak...@basho.com > > > On Tue, Jul 1, 2014 at 2:10 AM, Alex De la rosa > wrote: > >> I found out on http://docs.basho.com/riak/2.0.0beta1/dev/using/search >> that in Riak

Re: Question about counters

2014-07-01 Thread Alex De la rosa
riak/security.py", line 19, in File "build/bdist.linux-x86_64/egg/OpenSSL/__init__.py", line 8, in File "build/bdist.linux-x86_64/egg/OpenSSL/rand.py", line 11, in File "build/bdist.linux-x86_64/egg/OpenSSL/_util.py", line 3, in ImportError: No module n

Re: Question about counters

2014-07-01 Thread Alex De la rosa
can work through these issues. Once you have everything working via > your virtualenv-environment, update your global environment. > > -- > Luke Bakken > CSE > lbak...@basho.com > > > On Tue, Jul 1, 2014 at 6:40 AM, Alex De la rosa > wrote: > > > > Ok...

Re: Question about counters

2014-07-01 Thread Alex De la rosa
his: > > ./setup.py install > > That should ensure that all the proper dependencies are installed. > > > On Tue, Jul 1, 2014 at 8:52 AM, Alex De la rosa > wrote: > >> Uhm... I'm new to Python so that sounds like Chinese to me... I will have >> to look onlin

Re: Question about counters

2014-07-01 Thread Alex De la rosa
ve > always installed Python dependencies via pip or easy_install. In general, I > would distrust the distribution version because they tend to be out-of-date. > > > On Tue, Jul 1, 2014 at 9:07 AM, Alex De la rosa > wrote: > >> Hi Sean, >> >> I indeed installed

Re: Riak 2.0.0 RC1

2014-07-21 Thread Alex De la rosa
Awesome! Can't wait to try it! What about the python client for Riak 2.0? I remember testing the actual version and still have many issues and non-workable new features (like counters, sets, maps, etc.) Thanks! Alex On Mon, Jul 21, 2014 at 11:34 PM, Jared Morrow wrote: > Riak-Users, > > Everyo

Re: Riak 2.0.0 RC1

2014-07-21 Thread Alex De la rosa
ll being finalized. Word on the street is the Java > client RC will be very soon, and the other clients will follow. The person > who would know best has today off, but stay tuned. > > Thanks, > Jared > > > On Mon, Jul 21, 2014 at 3:38 PM, Alex De la rosa > wrote: >

Python Client for 2.0rc1

2014-07-28 Thread Alex De la rosa
Hi there, Is there any estimate time for the Python Client to be released so we can use Counters, Sets, Maps, etc... properly? Thanks! Alex ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.b

Re: Python Client for 2.0rc1

2014-07-28 Thread Alex De la rosa
> > On Mon, Jul 28, 2014 at 10:31 AM, Alex De la rosa > wrote: > >> Hi there, >> >> Is there any estimate time for the Python Client to be released so we can >> use Counters, Sets, Maps, etc... properly? >> >> Thanks! >> Alex >> >&g

Re: Riak Python Client release candidate published

2014-07-30 Thread Alex De la rosa
Awesome!! Can't wait to get my hands on it and Riak 2.0rc1! :) Thanks! Alex On Wednesday, July 30, 2014, Sean Cribbs wrote: > Hey Riak Users, > > We've just pushed a release candidate of the official Python client to > PyPi [1]. This package includes support for Riak 2.0.0 RC1 features, > inclu

Python client error

2014-08-15 Thread Alex De la rosa
Hi there, I installed riak-2.0rc1 and the Python client through "easy_intall riak", however, when importing the "riak" library I got the following error: Traceback (most recent call last): File "x.py", line 1, in import riak File "/usr/local/lib/python2.7/dist-packages/riak-2.1.0rc1-py2.

package-cloud update issue

2014-08-15 Thread Alex De la rosa
Hi there, I installed RIAK using the packagecloud.io repository [ https://packagecloud.io/basho/riak/install ], however, every time that I do an "aptitude update" I receive that RIAK has a new version although is not true: aptitude safe-upgrade The following packages will be upgraded: riak 1 pa

Re: Python client error

2014-08-15 Thread Alex De la rosa
Fixed, instead of using "easy_install riak" I used "pip install riak" and it worked like a charm :) Thanks! Alex On Fri, Aug 15, 2014 at 5:29 PM, Alex De la rosa wrote: > Hi there, > > I installed riak-2.0rc1 and the Python client through "easy_intall ri

Re: Python client error

2014-08-15 Thread Alex De la rosa
Thanks for your reply, I already fixed it deleting everything and using "pip install riak" instead. Thanks! Alex On Fri, Aug 15, 2014 at 5:59 PM, tele wrote: > Hi Alex, > > Try with: pip install cryptography > > :tele > > > On Fri, 15 Aug 2014 17:29:29 +0200

Python library: Error with counters

2014-08-15 Thread Alex De la rosa
Hi there, I created a "counter" bucket called "likes" with the following shell script: riak-admin bucket-type create likes '{"props":{"datatype":"counter"}}' When I try to follow the guide [ http://docs.basho.com/riak/2.0.0/dev/using/data-types ] to use this bucket with Python, I found the follo

Re: Python library: Error with counters

2014-08-15 Thread Alex De la rosa
from git and see if you get the same error: > > git clone https://github.com/basho/riak-python-client.git > cd riak-python-client > python setup.py install > > :tele > > > On Fri, 15 Aug 2014 18:12:09 +0200 > Alex De la rosa wrote: > > > Hi there, > > &g

Re: Python library: Error with counters

2014-08-15 Thread Alex De la rosa
.1.0rc1 > > Also, did you activate your bucket-type using riak-admin? It won't be > usable until it's activated. > > On Fri, Aug 15, 2014 at 12:02 PM, Alex De la rosa > wrote: > > Hi, thanks for your suggestion, but I would prefer to use the official > >

Re: Python library: Error with counters

2014-08-15 Thread Alex De la rosa
activate likes* > > If that returns *likes has been activated* or something along those > lines, then the bucket type is ready to be used. > > Luc > > > On Fri, Aug 15, 2014 at 10:37 AM, Alex De la rosa > wrote: > >> Hi Sean, >> >> I activated the

Re: Python library: Error with counters

2014-08-17 Thread Alex De la rosa
nd python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/cryptography Storing debug log for failure in /root/.pip/pip.log Thanks, Alex On Fri, Aug 15, 2014 at 7:07 PM, Sean Cribbs wrote: > Hi Alex, > > The published version is not a final release, so it won't b

Re: Python library: Error with counters

2014-08-17 Thread Alex De la rosa
On Sun, Aug 17, 2014 at 7:12 PM, Alex De la rosa wrote: > Hi Sean, > > I tried to install version 2.1.0rc1 as you suggested, but "pip" gives a > compilation error and doesn't install it, here you have the log: > > # pip install riak==2.1.0rc1 > Downloading/unp

Python: More problems with counters

2014-08-17 Thread Alex De la rosa
Hi there, I was able to install the latest python client version with "pip install riak==2.1.0rc1", however, counters still fails to work... I used the following code ( that is the same as in the documentation ): bucket = client.bucket_type('counter_bucket').bucket('likes') however I get the fol

Re: Python: More problems with counters

2014-08-17 Thread Alex De la rosa
type named "likes". If that's the case, you'd swap the function params: > > bucket = client.bucket_type('likes').bucket('counter_bucket') > > Hope that helps, > Eric > > > On Aug 17, 2014, at 10:33 AM, Alex De la rosa > wrote: > >

Re: Python library: Error with counters

2014-08-17 Thread Alex De la rosa
2014 at 12:23 PM, Alex De la rosa > wrote: > > Murphy's law... as soon as I post it, as soon as I found why it > failed... I > > was missing the following libraries on my Ubuntu Server: > > > > aptitude install build-essential libssl-dev libffi-dev python-de

Help: Riak Search on Counters

2014-08-18 Thread Alex De la rosa
Hi there, Can somebody help me with Riak Search 2.0 on Counters? Imagine we have a counter called "visitors" to store how many people visits certain cities: client.create_sea

Riak Search Issue

2014-08-18 Thread Alex De la rosa
Hi there, I had been following the documentation [ http://docs.basho.com/riak/2.0.0/dev/using/search/ ] about Riak Search and the code provided in the site doesn't seem to work? Everything I try ends up with an error saying no index found taking the name of the bucket as a not found index :( ria

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
of_the_bucket" > > If the above returns a 404, please use this guide to ensure you've > created the index correctly: > > http://docs.basho.com/riak/2.0.0/dev/using/search/ > > If you expect the index to be there and it is not, the solr.log file > in /var/lo

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
animals". Note that a bucket > type is not the same thing as a bucket in previous versions of Riak. A > bucket type is a way to give 1 or more buckets within that type the > same properties. You'll have to use different code in your Riak client > to use bucket types: > >

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
e set up correctly. This > (untested) code should create an object ("cat-1") in the "cats" bucket > (within the "animals" bucket type), which will then be indexed by the > "famous" index: > > bucket = client.bucket_type('animals').bucke

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
g you're using the 2.1.0rc1 version of the Python client > available here: > > https://pypi.python.org/pypi?:action=display&name=riak#downloads > > -- > Luke Bakken > CSE > lbak...@basho.com > > > On Mon, Aug 18, 2014 at 8:47 AM, Alex De la rosa > wro

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
on/json') key.store() print bucket.search('name=Felix') RESULT: ERROR! ---- ---- ---- ----

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
:20}} RESULT: ERROR! ---- ---- -

Re: Help: Riak Search on Counters

2014-08-18 Thread Alex De la rosa
nter" field in the Solr index. For counts > greater than 3 you might query with "counter:[3 TO *]". > > Hope that helps! > > On Mon, Aug 18, 2014 at 8:01 AM, Alex De la rosa > > wrote: > > Hi there, > > > > Can somebody help me with Riak Search

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
wrote: > Alex, > > Don't call enable_search(). That enables *old* Riak Search (it sets the > property "search":true). To revert that setting, bucket.set_property("search", > False) > > > > On Aug 18, 2014, at 10:55 AM, Alex De la rosa > wrote: &

Re: Help: Riak Search on Counters

2014-08-18 Thread Alex De la rosa
uot; sort="counter desc", rows=5) > > Eric > > > On Aug 18, 2014, at 12:06 PM, Alex De la rosa > wrote: > > Hi Sean, > > Thank you for the "counter" field trick :) > > What id you don't know the max value and you want the top 5 cities? In > yo

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
/transports/pbc/connection.py", line 142, in _recv_msg raise RiakError(err.errmsg) riak.RiakError: 'No index <<"fcb">> found.' Again it says "fcb" index not found... and this time I fully

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
t;famoso". > > Eric > > > On Aug 18, 2014, at 1:56 PM, Alex De la rosa > wrote: > > Ok, I found the first error in the documentation, parameters are in > reverse order: > > bucket = client.bucket('animals', 'cats') > > should be: > > b

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
#x27;Invalid bucket type: <<"fcb">>' How to solve that? Is step by step the documentation provided. Thanks, Alex On Mon, Aug 18, 2014 at 10:05 PM, Eric Redmond wrote: > The correct way to set up and use search is in the documentation. Be wary > of any externa

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
2014 at 11:10 PM, Eric Redmond wrote: > Alex, > > You may have discovered a legitimate bug in the python driver. In the > meantime, if you give your bucket and index the same name, you can proceed, > while we investigate. > > Thanks, > Eric > > > On Aug 18, 2014, at

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
27;: u'1.e+00', u'leader_b': u'true', u'_yz_id': u'1*futbolistas*famoso*lionel*8', u'_yz_rt': u'futbolistas'}]} Thanks! Alex On Mon, Aug 18, 2014 at 11:33 PM, Eric Redmond wrote: > Alex, > > I was m

Riak Search VS other query systems

2014-08-18 Thread Alex De la rosa
Hi there, I had been seeing lately Riak Search as an ultimate way to query Riak... and it seems recommended to use over MapReduce and even 2i... said so... should we try to always use Riak Search over the other systems? Is there any situation in which MapReduce could be a better approach than Ria

Re: Riak Search Issue

2014-08-19 Thread Alex De la rosa
': u'1*futbolistas*fcb*lionel*59', u'_yz_rt': u'futbolistas'}, {u'age_i': u'30', u'name_s': u'Lionel', u'_yz_rk': u'lionel', u'_yz_rb': u'famoso', u'score': u'1.0

Re: Riak Search Issue

2014-08-19 Thread Alex De la rosa
> > Alex, > > > > You may have discovered a legitimate bug in the python driver. In the > > meantime, if you give your bucket and index the same name, you can > proceed, > > while we investigate. > > > > Thanks, > > Eric > > > > > >

Re: Riak python client and Solr

2014-08-19 Thread Alex De la rosa
Hi there, I was having the same problems too... this works fine: r = client.fulltext_search('ix_images', 'site_s:xxx AND keywords_s:yyy') but this gives the same error as yours: r = client.fulltext_search('ix_images', 'site_s:xxx AND keywords_s:yyy&sort="clickrate_f desc"') Then I saw this way

Re: Riak python client and Solr

2014-08-19 Thread Alex De la rosa
ks! Alex On Tue, Aug 19, 2014 at 10:13 PM, Alex De la rosa wrote: > Hi there, > > I was having the same problems too... > > this works fine: > r = client.fulltext_search('ix_images', 'site_s:xxx AND keywords_s:yyy') > > but this gives the same error

Re: Riak python client and Solr

2014-08-19 Thread Alex De la rosa
Ok, now I saw Sean's response... it worked perfectly that way :) r = client.fulltext_search('ix_images', 'site_s:aaa AND keywords_s:bbb', sort='clickrate_f asc') Thanks! Alex On Tue, Aug 19, 2014 at 10:17 PM, Alex De la rosa wrote: > Seems I was wr

Counters inside Maps

2014-08-19 Thread Alex De la rosa
Imagine I have a Riak object "footballer" with some static fields: name, team, number. I store them like this now: 1: CREATE INDEX FOR RIAK SEARCH curl -XPUT "http://148.251.140.229:8098/search/index/ix_footballers"; 2: CREATE BUCKET TYPE riak-admin bucket-type create tp_footballers '{"props":{"a

Re: Counters inside Maps

2014-08-19 Thread Alex De la rosa
x27;number'].increment(10) > key.store() > > Note that because Maps are based on mutation operations and not > replacing the value with new ones, you can later do this without > setting the entire value: > > key.counters['number'].increment(1) > key.store() > >

Re: Counters inside Maps

2014-08-19 Thread Alex De la rosa
rom riak.datatypes import Map* > > *bucket = client.bucket_type('maps').bucket('footballers')* > *messi_map = Map(bucket, 'lionelmessi')* > *messi_map.registers['name_s'].assign('Messi')* > *messi_map.registers['team_s'].assign('Barc

Re: Counters inside Maps

2014-08-19 Thread Alex De la rosa
Cool! Understood :) Thanks! Alex On Wednesday, August 20, 2014, Sean Cribbs wrote: > On Tue, Aug 19, 2014 at 3:34 PM, Alex De la rosa > > wrote: > > Hi Sean, > > > > I didn't created the bucket_type as a map datatype as at first i was just > > testing sim

Re: Riak Search VS other query systems

2014-08-20 Thread Alex De la rosa
Any thoughts about this? One thing it worries me about Riak Search is that if one index has several millions of object to search for maybe it becomes slow? 2i might be faster then? Thanks! Alex On Tue, Aug 19, 2014 at 8:47 AM, Alex De la rosa wrote: > Hi there, > > I had been seei

Riak Search on "Sets" data-types

2014-08-21 Thread Alex De la rosa
Hi there, For a project I'm building I'm saving a "keyword" and a "site" for an image like this: bucket = client.bucket_type('tp_images').bucket('images') key = bucket.new(image_hash) key.registers['raw'].assign(base64.b64encode(image_data)) key.registers['site'].assign('johnlewis.com')

Avoid siblings in "data-type" bucket

2014-08-21 Thread Alex De la rosa
Hi there, I was trying to create a bucket-type using the datatype MAP and it didn't allow me to create it with "allow_mult":false: # riak-admin bucket-type create tp_images '{"props":{"allow_mult":false,"search_index":"ix_images","datatype":"map"}}'Error creating bucket type tp_images:Data Type b

Re: Avoid siblings in "data-type" bucket

2014-08-21 Thread Alex De la rosa
Cool, thank you very much Alex On Thu, Aug 21, 2014 at 9:18 PM, John Daily wrote: > Siblings are resolved automatically by Riak when using our data types, > thus the requirement that allow_mult=true. > > -John > > > On Thu, Aug 21, 2014 at 3:17 PM, Alex De la rosa &

Re: Riak Search on "Sets" data-types

2014-08-22 Thread Alex De la rosa
Answering my own question, in case somebody has the same need some day, seems that a SET works like a collection of REGISTERS and you can use it as follows: r = client.fulltext_search('ix_images', 'keywords_set:DLSR') Thanks! Alex On Thu, Aug 21, 2014 at 8:32 PM, Alex De l

Re: duplicate keys in Riak secondary index

2014-08-22 Thread Alex De la rosa
Might be siblings? Thanks, Alex On Thu, Aug 21, 2014 at 10:29 PM, Chaim Peck wrote: > I am looking for some clues as to why there might be duplicate keys in a > Riak Secondary Index. I am using version 1.4.0. > > Thanks, > Chaim > ___ > riak-users ma

Custom data-types

2014-08-28 Thread Alex De la rosa
Hi there, Correct me if I'm wrong, but I think I read somewhere that custom data-types can be created through schemas or something like that. So, apart from COUNTERS, SETS and MAPS we could have some custom defined ones. I would love to have a STACKS data-type that would work like a FIFO stack, s

Re: Custom data-types

2014-08-29 Thread Alex De la rosa
; decide on a least-surprising behavior to expose to the user. Although > we have given a pretty familiar/friendly interface to the data types > shipping in 2.0, their behavior is strictly different from the types > you would use in a single-threaded program in local memory. > > On T

Riak VS Graph Databases

2014-08-29 Thread Alex De la rosa
Hi there, For some time already I have in mind building a kind of social network myself. Is pretty ambitious project although it doesn't have in mind to be a new facebook; but still data will be quite big and complex. I like Riak and I had been following since version 0.14, and new additions in R

Re: Riak VS Graph Databases

2014-08-29 Thread Alex De la rosa
; Guido. > > > On 29/08/14 15:54, Alex De la rosa wrote: > > Hi there, > > For some time already I have in mind building a kind of social network > myself. Is pretty ambitious project although it doesn't have in mind to be > a new facebook; but still data will be qui

Re: Riak VS Graph Databases

2014-08-29 Thread Alex De la rosa
e) nor cluster replication. > > It won't be that simple without many trade off to build an homogeneous > system. > > Guido. > > > On 29/08/14 16:06, Alex De la rosa wrote: > > Hi Guido, > > This could be a solution; although I would try to do it in

Re: [ANN] Riak 2.0.0

2014-09-02 Thread Alex De la rosa
Awesome! Thank you very much! Alex On Tue, Sep 2, 2014 at 11:53 PM, Alexander Sicular wrote: > Congrats to the whole Basho team. Great achievement! -Alexander > > > On Tue, Sep 2, 2014 at 5:30 PM, Jared Morrow wrote: > >> Riak Users, >> >> We are overjoyed to announce the final release of Ri

Packagecloud.io

2014-09-02 Thread Alex De la rosa
Hi there, The official documentation doesn't explain how to install through packagecloud.io but instead it uses riak's own repositories: http://docs.basho.com/riak/2.0.0/ops/building/installing/debian-ubuntu/ Also, I want to report again a problem I have with packagecloud.io; I followed the inst

Re: Retrieve keys on bucket by timestamp

2014-09-04 Thread Alex De la rosa
This is really useful! So we can use "now" as a constant to get a current timestamp? Thanks! Alex On Thu, Sep 4, 2014 at 3:44 PM, Sean Cribbs wrote: > Hi tele, > > Yes, a secondary index is the most reasonable way to accomplish this. > Here's an example using the Python client: > > now = time

Re: Retrieve keys on bucket by timestamp

2014-09-04 Thread Alex De la rosa
damn... i got excited i missed the first line "now = time.gmtime()"... forget my stupid question... lol Thanks, Alex On Thu, Sep 4, 2014 at 4:10 PM, Alex De la rosa wrote: > This is really useful! > > So we can use "now" as a constant to get a current timestamp

Re: Custom data-types

2014-09-06 Thread Alex De la rosa
Hi there, Can somebody explain the use for custom search schemas? I still don't get why would I want to have a custom schema if the default schema seems to be able to get me the info of all the fields i have in my object. Thanks! Alex On Fri, Aug 29, 2014 at 4:48 PM, Alex De la rosa

Re: Custom data-types

2014-09-06 Thread Alex De la rosa
n > Engineer / CSE > lbak...@basho.com > > > On Sat, Sep 6, 2014 at 2:20 AM, Alex De la rosa > wrote: > > Hi there, > > > > Can somebody explain the use for custom search schemas? I still don't get > > why would I want to have a custom schema if the

Can't delete objects being on an indexed bucket_type

2014-11-15 Thread Alex De la rosa
Hi there, I created an index and a MAP bucket-type in the following way: curl -XPUT "http://x.x.x.x:8098/search/index/ix_users"; riak-admin bucket-type create tp_users '{"props": {"allow_mult":true,"search_index":"ix_users","datatype":"map"}}' riak-admin bucket-type activate tp_users Then I save

Re: Can't delete objects being on an indexed bucket_type

2014-11-16 Thread Alex De la rosa
> Hi Alex, > > That's a bug in the Python client. There's an existing issue on the repo > for it: https://github.com/basho/riak-python-client/issues/365 > > In the meantime, here's a workaround: > > from riak.riak_object import RiakObject > > RiakObject(buc

Re: Can't delete objects being on an indexed bucket_type

2014-11-16 Thread Alex De la rosa
stkey').delete() > > On Sun, Nov 16, 2014 at 3:15 PM, Alex De la rosa > wrote: > >> Hi Sean, >> >> Seams that the workaround suggested hits the same error: >> >> Traceback (most recent call last): >> File "x.py", line 9, in >>

Re: Can't delete objects being on an indexed bucket_type

2014-11-17 Thread Alex De la rosa
Awesome, thanks :) On Mon, Nov 17, 2014 at 4:52 PM, Sean Cribbs wrote: > I'll confer with Brett, who is wrapping up some Python 3 compatibility, > another release is needed soon. > > On Mon, Nov 17, 2014 at 1:12 AM, Alex De la rosa > wrote: > >> Yeah! this time wor

Re: Can't delete objects being on an indexed bucket_type

2014-12-18 Thread Alex De la rosa
Hi Sean, I wonder how the Python client progress goes? I didn't see any news about it and PIP seems to not have a new version... when will the delete bug fixed? Thanks, Alex On Mon, Nov 17, 2014 at 4:53 PM, Alex De la rosa wrote: > > Awesome, thanks :) > > On Mon, Nov 17, 2014

Re: Can't delete objects being on an indexed bucket_type

2014-12-18 Thread Alex De la rosa
Awesome! Thank you so much :) Alex On Friday, December 19, 2014, Brett Hazen wrote: > Alex — > > The new version was released today, including this feature. Announcement > to follow. > > Brett > > On December 18, 2014 at 4:43:10 AM, Alex De la rosa ( > alex.r

deleting a register (Python client)

2014-12-19 Thread Alex De la rosa
Hi there, This is a pretty dumb question but I think I have never recalled doing it before. Imagine that I have a register called "something" with a value: obj.registers['something'].assign('blah') If later on I want to remove this "something" register from the riak map object, how to do it? I d

  1   2   >