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
('application/pb-person', Person.ParseFromString) client.set_encoder('application/pb-person', lambda x: x.SerializeToString()) [1] http://riak-python-client.readthedocs.org/en/latest/client.html#serialization Cheers, On Mon, Jun 23, 2014 at 9:19 AM, Alex De la rosa alex.rosa@gmail.com wrote

Re: About Protocol Buffers

2014-06-23 Thread Alex De la rosa
23, 2014 at 4:54 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Sean, Thanks for your quick reply, is what i suspected, moreover after checking riak.proto file in the source. So mainly the contents to store (json or not json) is not PB encoded semantically, but is encoded as a body

Re: About Protocol Buffers

2014-06-23 Thread Alex De la rosa
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, thanks! I can see how to do it now: bucket = client.bucket_type('counter_bucket').bucket

Re: About Protocol Buffers

2014-06-23 Thread Alex De la rosa
-types.md Thanks, Alex On Mon, Jun 23, 2014 at 10:03 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Bret, Thanks for your reply, I had used Riak since version 0.14 via HTTP... for 2.0 I decided to do the switch to PBC and I'm glad to hear all HTTP calls has been migrated to PBC too

Re: About Protocol Buffers

2014-06-24 Thread Alex De la rosa
that you'd like. The only reserved term for bucket types is *default*. Luc On Tue, Jun 24, 2014 at 12:31 AM, Alex De la rosa alex.rosa@gmail.com wrote: By the way, I have the following error using PBC on Riak 2.0: test.py

Re: About Protocol Buffers

2014-06-24 Thread Alex De la rosa
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 alex.rosa@gmail.com wrote: Hi Luc, I tried your

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

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',

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 =

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 alex.rosa@gmail.com wrote: Hi

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

Re: Riak for streaming video

2014-06-26 Thread Alex De la rosa
] 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 alex.rosa@gmail.com wrote: Hi there, Imagine that I want to use Riak for a video service like Youtube and I save the video file in Riak

Re: Riak for streaming video

2014-06-26 Thread Alex De la rosa
, 2014 at 10:45 PM, Hector Castro hec...@basho.com wrote: Hey Alex, My response are inline below. -- Hector On Thu, Jun 26, 2014 at 4:26 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Hector, I see, I always thought that Riak CS was the same as Riak just that you run

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 alex.rosa@gmail.com wrote: Hi there, Can somebody help me understand a bit better the bucket quorums? I will use the Python API to write code

Re: Help on bucket quorums

2014-06-28 Thread Alex De la rosa
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 s...@basho.com wrote: On Sat, Jun 28, 2014 at 4:55 AM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, Can

Re: Riak for streaming video

2014-06-29 Thread Alex De la rosa
, and really just want file storage. - Original Message - From: Alex De la rosa alex.rosa@gmail.com To: Hector Castro hec...@basho.com Cc: riak-users riak-users@lists.basho.com Sent: Friday, 27 June, 2014 6:55:13 AM Subject: Re: Riak for streaming video Hi Hector, Thanks for your

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')

Re: Riak for streaming video

2014-06-30 Thread Alex De la rosa
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 On Sun, Jun 29, 2014 at 5:58 AM, Alex De la rosa alex.rosa@gmail.com

Re: Question about counters

2014-06-30 Thread Alex De la rosa
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, at 15:54, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, I have a question

Re: Question about counters

2014-06-30 Thread Alex De la rosa
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 alex.rosa@gmail.com wrote: A set may not be a good

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
authenticity of clients, as well as confidentiality. On Mon, Jun 30, 2014 at 2:47 AM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, Imaging the following IP configuration for Riak 2.0: # /etc/riak/riak.conf nodename = riak@111.222.333.1 listener.http.internal

Re: Riak for streaming video

2014-06-30 Thread Alex De la rosa
, 2014, at 3:10 AM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Jared, Thanks for your explanation and links... my next question is... Is Stanchion not a single-point of failure? One of the things I like in Standard Riak is that every node has the same level, there are no masters

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
it because the client is not fully operational. Cheers, Alex On Tue, Jul 1, 2014 at 10:38 AM, Alex De la rosa alex.rosa@gmail.com wrote: 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

Re: Question about counters

2014-07-01 Thread Alex De la rosa
, 2014 at 2:10 AM, Alex De la rosa alex.rosa@gmail.com wrote: I found out on http://docs.basho.com/riak/2.0.0beta1/dev/using/search that in Riak 2.0 additional steps are needed... i fixed my code as follows, but still crashing

Re: Question about counters

2014-07-01 Thread Alex De la rosa
, Jul 1, 2014 at 3:32 PM, Alex De la rosa alex.rosa@gmail.com wrote: I actually have the latest version available (2.0.3), I got it like this: easy_install https://pypi.python.org/packages/2.7/r/riak/riak-2.0.3-py2.7.egg If I clone the GIT repository, may I have problems as I have

Re: Question about counters

2014-07-01 Thread Alex De la rosa
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 alex.rosa@gmail.com wrote: Ok... now is worse... i removed my old Python client EGG and cloned the GIT

Re: Question about counters

2014-07-01 Thread Alex De la rosa
That should ensure that all the proper dependencies are installed. On Tue, Jul 1, 2014 at 8:52 AM, Alex De la rosa alex.rosa@gmail.com wrote: Uhm... I'm new to Python so that sounds like Chinese to me... I will have to look online how to do all that, see if I can fix it. Cheers, Alex On Tue

Re: Question about counters

2014-07-01 Thread Alex De la rosa
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 alex.rosa@gmail.com javascript:_e(%7B%7D,'cvml','alex.rosa@gmail.com'); wrote: Hi Sean, I

Re: Riak 2.0.0 RC1

2014-07-21 Thread Alex De la rosa
are still 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 alex.rosa@gmail.com wrote: Awesome

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

Re: Python Client for 2.0rc1

2014-07-28 Thread Alex De la rosa
, 2014 at 10:31 AM, Alex De la rosa alex.rosa@gmail.com 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 ___ riak-users mailing list riak

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 s...@basho.com 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

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 module import riak File

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

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 alex.rosa@gmail.com wrote: Hi there, I installed riak-2.0rc1 and the Python client through easy_intall riak, however, when

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 t...@rhizomatica.org wrote: Hi Alex, Try with: pip install cryptography :tele On Fri, 15 Aug 2014 17:29:29 +0200 Alex De la rosa

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 following

Re: Python library: Error with counters

2014-08-15 Thread Alex De la rosa
the version 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 alex.rosa@gmail.com wrote: Hi there, I created a counter bucket

Re: Python library: Error with counters

2014-08-15 Thread Alex De la rosa
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 alex.rosa@gmail.com wrote: Hi, thanks for your suggestion, but I would prefer to use the official packages, and for what I saw on the list some days ago, the new version

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 alex.rosa@gmail.com wrote: Hi Sean, I activated the bucket as follows: riak-admin bucket-type

Re: Python library: Error with counters

2014-08-17 Thread Alex De la rosa
be usable until it's activated. On Fri, Aug 15, 2014 at 12:02 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi, thanks for your suggestion, but I would prefer to use the official packages, and for what I saw on the list some days ago, the new version was published, so I wonder why is not yet

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

Re: Python: More problems with counters

2014-08-17 Thread Alex De la rosa
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 alex.rosa@gmail.com wrote: Hi there, I was able to install the latest python client version with pip install riak

Re: Python library: Error with counters

2014-08-17 Thread Alex De la rosa
:23 PM, Alex De la rosa alex.rosa@gmail.com 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-dev After this, the cryptography

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:

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 :(

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
/ If you expect the index to be there and it is not, the solr.log file in /var/log/riak could provide a clue. -- Luke Bakken CSE lbak...@basho.com On Mon, Aug 18, 2014 at 6:59 AM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, I had been following the documentation [ http

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
different code in your Riak client to use bucket types: http://docs.basho.com/riak/2.0.0/dev/advanced/bucket-types/ -- Luke Bakken CSE lbak...@basho.com On Mon, Aug 18, 2014 at 7:32 AM, Alex De la rosa alex.rosa@gmail.com wrote: If I do this, I got the right index: http://RIAK:8098

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
= 'application/json' obj.data = { 'name': 'Felix', 'species': 'Felis catus' } obj.store() -- Luke Bakken CSE lbak...@basho.com On Mon, Aug 18, 2014 at 7:50 AM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Luke, I also tried with a normal bucket cats using the type animals

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
the 2.1.0rc1 version of the Python client available here: https://pypi.python.org/pypi?:action=displayname=riak#downloads -- Luke Bakken CSE lbak...@basho.com On Mon, Aug 18, 2014 at 8:47 AM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Luke, Same error: bucket

Re: Help: Riak Search on Counters

2014-08-18 Thread Alex De la rosa
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 alex.rosa@gmail.com javascript:; wrote: Hi there, Can somebody help me with Riak Search 2.0 on Counters? Imagine we have a counter called

Re: Riak Search Issue

2014-08-18 Thread Alex De la rosa
, and the API is weirded for backward compatibility reasons. You should be able to search by index name this way. client.fulltext_search(index, query, **params) We'll update the docs to match. Eric On Aug 18, 2014, at 2:29 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Sean, Yeah, I

Re: Riak Search Issue

2014-08-19 Thread Alex De la rosa
', u'leader_b': u'true', u'_yz_id': u'1*futbolistas*famoso*lionel*8', u'_yz_rt': u'futbolistas'}]} Later will check to install GIT's version and see if it works with a different bucket name. Thanks. Alex On Mon, Aug 18, 2014 at 11:12 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Eric, I

Re: Riak Search Issue

2014-08-19 Thread Alex De la rosa
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 2:00 PM, Alex De la rosa alex.rosa@gmail.com wrote: Yes, I did it in purpose

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

Re: Counters inside Maps

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

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 alex.rosa@gmail.com wrote: Hi there, I had

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 buckets must

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 jda...@basho.com 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 alex.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 la rosa alex.rosa

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 chaimp...@gmail.com 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 ___

Re: Custom data-types

2014-08-29 Thread Alex De la rosa
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 Thu, Aug 28, 2014 at 4:47 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, Correct me if I'm wrong, but I think I read

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

Re: Riak VS Graph Databases

2014-08-29 Thread Alex De la rosa
. 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 quite big and complex. I like Riak and I had been

Re: Riak VS Graph Databases

2014-08-29 Thread Alex De la rosa
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 an homogeneous system where only one NoSQL DB would be around if possible

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 sicul...@gmail.com wrote: Congrats to the whole Basho team. Great achievement! -Alexander On Tue, Sep 2, 2014 at 5:30 PM, Jared Morrow ja...@basho.com wrote: Riak Users, We are overjoyed to announce

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

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 s...@basho.com wrote: Hi tele, Yes, a secondary index is the most reasonable way to accomplish this. Here's an example using the Python client: now

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 alex.rosa@gmail.com wrote: This is really useful! So we can use now as a constant to get a current timestamp? Thanks

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 alex.rosa

Re: Custom data-types

2014-09-06 Thread Alex De la rosa
On Sat, Sep 6, 2014 at 2:20 AM, Alex De la rosa alex.rosa@gmail.com 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 default schema seems to be able to get me the info of all the fields i have in my

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

2014-11-16 Thread Alex De la rosa
. 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(bucket, 'testkey').delete() Sorry for the inconvenience. On Sat, Nov 15, 2014 at 5:54 PM, Alex De la

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

2014-11-16 Thread Alex De la rosa
').delete() On Sun, Nov 16, 2014 at 3:15 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Sean, Seams that the workaround suggested hits the same error: Traceback (most recent call last): File x.py, line 9, in module RiakObject(bucket, 'testkey').delete() File /usr/local/lib

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 s...@basho.com 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 alex.rosa@gmail.com wrote: Yeah! this time

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 alex.rosa@gmail.com wrote: Awesome, thanks :) On Mon, Nov 17

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 br...@basho.com 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.rosa@gmail.com

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

Re: deleting a register (Python client)

2014-12-19 Thread Alex De la rosa
Cool! good to know :) I think is not explained anywhere in the docs. Thanks! Alex On Fri, Dec 19, 2014 at 3:50 PM, Sean Cribbs s...@basho.com wrote: Alex, This will remove the register from the map: del obj.registers['something'] obj.store() On Fri, Dec 19, 2014 at 5:37 AM, Alex De la

Re: deleting a register (Python client)

2014-12-19 Thread Alex De la rosa
, 2014 at 4:31 PM, Alex De la rosa alex.rosa@gmail.com wrote: Cool! good to know :) I think is not explained anywhere in the docs. Thanks! Alex On Fri, Dec 19, 2014 at 3:50 PM, Sean Cribbs s...@basho.com wrote: Alex, This will remove the register from the map: del obj.registers

Packagecloud.io issue

2015-03-30 Thread Alex De la rosa
Hi there, I want to report again a problem I have with packagecloud.io; everytime I do aptitude update I get a hit as if a new version of Riak is available (that is not)... and I have to re-install Riak to a version I already have. I just did an aptitude safe-upgrade and upgraded Riak to version

Re: How to refresh Riak's data

2015-03-30 Thread Alex De la rosa
all the stuff in it. -Alexander @siculars http://siculars.posthaven.com Sent from my iRotaryPhone On Mar 30, 2015, at 04:41, Alex De la rosa alex.rosa@gmail.com wrote: Hi there, I have a 1-node riak 2.0.5 cluster for testing stuff on my laptop (Ubuntu); how can I refresh

Re: Query on Riak Search in a cluster of 3 nodes behind ELB is giving different result everytime

2015-04-01 Thread Alex De la rosa
cluster join node riak-admin cluster plan riak-admin cluster commit Regards, Vitaliy On Wed, Apr 1, 2015 at 10:54 AM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Vitaliy, How did you find out a node in the cluster was not part in the cluster? any commands to check

Re: Query on Riak Search in a cluster of 3 nodes behind ELB is giving different result everytime

2015-04-01 Thread Alex De la rosa
Hi Vitaliy, How did you find out a node in the cluster was not part in the cluster? any commands to check that? And then, how did you fix that? (Just curious and for future references) Thanks, Alex On Wed, Apr 1, 2015 at 9:50 AM, Vitaliy E 13vitam...@gmail.com wrote: Hello everyone, I've

Re: object sizes

2015-04-20 Thread Alex De la rosa
of the object stored in Riak as opposed to in memory, right? The 1MB limit is on Riak storage? thanks, Brett On April 17, 2015 at 2:41:56 PM, Alex De la rosa (alex.rosa@gmail.com) wrote: Hi Matthew, I don't have a github account so seems i'm not able to create the ticket

Re: scaling up vertically upgrading HD

2015-04-23 Thread Alex De la rosa
Alex, Riak allocates data to nodes evenly - it doesn't take into account free space. You should just be able to upgrade all nodes to 1Tb and Riak will use the space, without needing to take any additional actions. Jon On Thu, Apr 23, 2015 at 7:17 AM, Alex De la rosa alex.rosa@gmail.com

scaling up vertically upgrading HD

2015-04-23 Thread Alex De la rosa
Hi there, I have the following question about scaling up vertically upgrading HDs to get more space. I have the understanding that if HDs are of different sizes on ring creation, they get the smallest size of them all and make all nodes even, for example: Node 1: 500GB Node 2: 500GB Node 3:

Re: scaling up vertically upgrading HD

2015-04-23 Thread Alex De la rosa
://siculars.posthaven.com Sent from my iRotaryPhone On Apr 23, 2015, at 10:42, Alex De la rosa alex.rosa@gmail.com javascript:_e(%7B%7D,'cvml','alex.rosa@gmail.com'); wrote: Cool, thank you :) however, is true that if 4 nodes are 1TB and the other one is 2TB; the 5 nodes will act as having

Re: warnings on updating from 2.0 to 2.1

2015-04-29 Thread Alex De la rosa
directory as the priv/solr/solr-webapp directory should be its only descendant. It is used as temporary space by Solr. In the future, this will be located in /var/riak along with other variable temp data. -- Luke Bakken Engineer lbak...@basho.com On Wed, Apr 29, 2015 at 2:28 AM, Alex De la

warnings on updating from 2.0 to 2.1

2015-04-29 Thread Alex De la rosa
I'm getting the following warnings: Preparing to unpack .../riak_2.1.0-1_amd64.deb ... Unpacking riak (2.1.0-1) over (2.0.5-1) ... dpkg: warning: unable to delete old directory '/usr/lib/riak/lib/yokozuna-2.0.0-34-g122659d/priv/solr/solr-webapp': Directory not empty dpkg: warning: unable to

Re: Riak bind to hostname instead of IP Address!!

2015-04-30 Thread Alex De la rosa
You really don't want to do that... In the past, when using PostgreSQL and binding it to a subdomain like db.yourdomain.com (just for not having to remember IPs, even it doesn't really matter in code-level) I had experienced randomly and unexpectedly very slow timings and even disconnections for

Re: [Announcement] Riak 2.1 - Features Release Notes

2015-04-16 Thread Alex De la rosa
The write_once property is applied to a bucket type... why only on bucket types? ex: RIAK.bucket_type('my_type').bucket('my_bucket').get('my_key') Normally I use bucket types to use mutable data like Maps/Sets/Counters... so I can update its contents (multiple writes) and when I have static data

object sizes

2015-04-09 Thread Alex De la rosa
Hi there, I'm using the python client (by the way). obj = RIAK.bucket('my_bucket').get('my_key') Is there any way to know the actual size of an object stored in Riak? to make sure something mutable (like a set) didn't added up to more than 1MB in storage size. Thanks! Alex

Re: object sizes

2015-04-13 Thread Alex De la rosa
, but I'm reasonably certain it supports the invocation of MapReduce jobs. Bryan On 10 Apr 2015, at 13:51, Alex De la rosa alex.rosa@gmail.com wrote: Also, I forgot, i'm most interested on bucket_types instead of simple riak buckets. Being able how my mutable data inside a MAP/SET has

Re: object sizes

2015-04-17 Thread Alex De la rosa
Hi Matthew, I don't have a github account so seems i'm not able to create the ticket for this feature, could you do it? Thanks, Alex On Thu, Apr 16, 2015 at 10:08 PM, Alex De la rosa alex.rosa@gmail.com wrote: Hi Matthew, Thanks for your answer : ) i always have interesting questions

non-indexable SOLR schema

2015-04-04 Thread Alex De la rosa
Hi all, To be able to use counters/sets/maps in Riak I have to store the object into a defined bucket_type indexed via SOLR. However, this will require extra disk space as data will be indexed (if using the default schema). Can I create a custom schema ignoring all fields so nothing is indexed?

Re: non-indexable SOLR schema

2015-04-04 Thread Alex De la rosa
ones and then explicitly add the fields you want to index/search on. On 4/4/15, 7:25 AM, Alex De la rosa alex.rosa@gmail.com javascript:_e(%7B%7D,'cvml','alex.rosa@gmail.com'); wrote: Hi all, To be able to use counters/sets/maps in Riak I have to store the object into a defined

  1   2   >