Jeremy Ong | 18 Jun 2013 21:58
Favicon

Re: question about riak siblings




On Tue, Jun 18, 2013 at 12:57 PM, Jeremy Ong <jeremy <at> quarkgames.com> wrote:
Suppose I have two sources writing to the database, source A and source B.

Next, suppose A and B both issue a write to the database so they spawn two siblings: [a1, b1].

Finally, suppose A writes another object using the metadata of the riak object returned when writing a2. This will lead to the following situation:
Sorry typo. This should read:

"
Finally, suppose A writes another object using the metadata of the riak object returned when writing a1"

 
[a1, b1, a2].

Upon the next read, the client will be presented with these three siblings. Is there a publicly exposed way to establish a strict ordering between a1 and a2?

Thanks,
Jeremy

_______________________________________________
riak-users mailing list
riak-users <at> lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Jeremy Ong | 18 Jun 2013 21:57
Favicon

question about riak siblings

Suppose I have two sources writing to the database, source A and source B.

Next, suppose A and B both issue a write to the database so they spawn two siblings: [a1, b1].

Finally, suppose A writes another object using the metadata of the riak object returned when writing a2. This will lead to the following situation:

[a1, b1, a2].

Upon the next read, the client will be presented with these three siblings. Is there a publicly exposed way to establish a strict ordering between a1 and a2?

Thanks,
Jeremy
_______________________________________________
riak-users mailing list
riak-users <at> lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
mdr | 18 Jun 2013 09:10
Picon

On Ubuntu 13.04 / 64

Hello -

Trying to install on Ubuntu 13.04/64.
...
The apt-get listed here did not work:
http://docs.basho.com/riak/latest/tutorials/installation/Installing-on-Debian-and-Ubuntu/

Errors:
W: Failed to fetch
http://apt.basho.com/dists/raring/main/binary-amd64/Packages  403  Forbidden
[IP: 176.32.99.41 80]

W: Failed to fetch
http://apt.basho.com/dists/raring/main/binary-i386/Packages  403  Forbidden
[IP: 176.32.99.41 80]
...
It does say Ubuntu 12.04.

So wondering what would be the best way on Ubuntu 13.04. Get the .deb file?
Even the .deb file say 12.04 so am hoping it will work.

Thanks.

Mono

--
View this message in context: http://riak-users.197444.n3.nabble.com/On-Ubuntu-13-04-64-tp4028094.html
Sent from the Riak Users mailing list archive at Nabble.com.
Guy Morton | 18 Jun 2013 08:43
Favicon

riak-cs WAITING_FOR_ERLANG

It's a bit like waiting for Godot, who never arrives.

I am a riak-cs newbie, and I am stuck at this hurdle. Can someone please point me in the right direction?

--
Guy Morton
Web Development Manager
Brüel & Kjær EMS
This e-mail is confidential and may be read, copied and used only by the intended recipient. If you have
received it in error, please contact the sender immediately by return e-mail. Please then delete the
e-mail and do not disclose its contents to any other person.
magnatua | 17 Jun 2013 15:36
Picon
Gravatar

How to search for records in JSON?

How to search for records in JSON?

For example:

http://server.cc/riak/Scores/user12

{ v: "{"score":0,"tab":14,"gold":255}" }

How do I get all the records where the "gold" is more than 150 or equal 255?

I'm installed the Riak Search hook on bucket. I have used example from riak
php lib.

 $client = new Riak(self::HOST, self::PORT);
 $bucket = $client->bucket("Scores");
 $results = $client->search("Scores", "gold:255")->run();

doesn't have results.

Can this be done through mapreduce?

--
View this message in context: http://riak-users.197444.n3.nabble.com/How-to-search-for-records-in-JSON-tp4028088.html
Sent from the Riak Users mailing list archive at Nabble.com.
Joe Caswell | 17 Jun 2013 17:13
Gravatar

Re: One node reports cpu_sup error repeatedly

The cpu_sup module is not a Basho/Riak module.  The specific error you noted is discussed on the erlang-questions list here: http://erlang.org/pipermail/erlang-questions/2008-May/034891.html
It seems to be related to locales.  Perhaps setting the mentioned environment variables when starting Riak would help?  Something like `LANG=C LC_ALL=C riak start`

Joe 

From: goofansu <goofan.su <at> gmail.com>
Date: Sunday, June 16, 2013 11:30 PM
To: <riak-users <at> lists.basho.com>
Subject: One node reports cpu_sup error repeatedly

Hi,

I attached onto one node and see the console reporting errors every 5 seconds.

Errors is like following:

11:25:33.130 [error] Error in process <0.7402.0> on node 'dev1 <at> 127.0.0.1' with exit value: {{badmatch,{error,{fread,float}}},[{cpu_sup,get_uint32_measurement,2,[{file,"cpu_sup.erl"},{line,283}]},{cpu_sup,measurement_server_loop,1,[{file,"cpu_sup.erl"},{line,585}]}]}


I'm testing on my own macbook pro with "make devrel". Only one node reports this error even after I restarted it.

My env:

System: OSX 10.8.4

Erlang: R15B01


-- 
goofansu
已使用 Sparrow

_______________________________________________ riak-users mailing list riak-users <at> lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
riak-users <at> lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Joe Caswell | 17 Jun 2013 16:39
Gravatar

Re: bucket properties

When you set a custom property on a bucket, the custom settings as well as the current defaults are stored and gossiped among the nodes.
When Riak checks a property for a bucket, it checks for these previously stored settings first, then falls back on the default props. 
When you change default_bucket_props, any buckets whose settings have been modify from the defaults, and never reset (http://docs.basho.com/riak/latest/references/apis/http/HTTP-Reset-Bucket-Properties/) will continue to use their stored settings, all other buckets will use the new default.

Joe

From: Louis-Philippe Perron <lpperron <at> gmail.com>
Date: Monday, June 17, 2013 9:20 AM
To: <riak-users <at> lists.basho.com>
Subject: bucket properties

Hi list,
I'd like to know what happens when you modify some default_bucket_props, are all the previously created buckets for which no properties had been set affected by the new default properties, or only the newly created buckets inherit the default_bucket_props?
thanks!

L-P
_______________________________________________ riak-users mailing list riak-users <at> lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
riak-users <at> lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Louis-Philippe Perron | 17 Jun 2013 15:20
Picon
Gravatar

bucket properties

Hi list,

I'd like to know what happens when you modify some default_bucket_props, are all the previously created buckets for which no properties had been set affected by the new default properties, or only the newly created buckets inherit the default_bucket_props?
thanks!

L-P
_______________________________________________
riak-users mailing list
riak-users <at> lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Shane McEwan | 17 Jun 2013 13:03
Picon

Riak 1.3.1 - The Story So Far

G'day!

We've been running with 1.3.1 for most of this week. Generally it's been 
going well. We especially feel happier knowing that Active Anti-Entropy 
is keeping an eye on things. As we mostly use map reduce queries we 
rarely triggered any read repairs so it's good that we'll be getting 
repairs from now on. Nice work!

However, there's a few things that have popped up that I'd be interested 
in getting some advice about.

===

Firstly, as mentioned in an earlier message[1] (that seems to have 
fallen on deaf ears :-) ) we had a couple of 1.2.1 nodes crash when I 
upgraded one of the other nodes to 1.3.1. The current theory is that I 
made the mistake of installing the new Riak package on all the nodes 
before starting the upgrade. When I restarted the first node it started 
doing its handoff checks. The two 1.2.1 nodes that had vnode replicas of 
the new 1.3.1 node tried to start their riak_core_handoff_receiver 
functions. The only thing I can think of is that the 1.2.1 nodes didn't 
actually have those functions in memory so went to disk to load them. 
Because I'd upgraded the Riak software, but hadn't restarted it yet, it 
couldn't find the module files it was expecting so it failed. That's the 
theory, anyway. So, tip of the day, don't upgrade your software until 
you're ready to restart it!

===

Secondly, we've noticed a significant change in our FSM times since 
upgrading[2]. The red-ish lines are 95th percentile "puts" from our four 
nodes. The blue-ish lines are "gets". We were averaging a stable sub-2ms 
for puts before the upgrade and now we're closer to 4ms with a lot of 
jitter. The gets are unchanged. Is this related to active anti-entropy? 
The AAE trees have been indexed but we're still seeing that puts are slower.

===

Finally, we've started seeing the following error occasionally pop up on 
various nodes:

[error] <0.212.0> Supervisor riak_pipe_fitting_sup had child undefined 
started with riak_pipe_fitting:start_link() at <0.4459.767> exit with 
reason noproc in context shutdown_error

According to riak_pipe issue #49 on GitHub[3] the problem has been 
around since 1.1.2 but we're only seeing it since upgrading to 1.3.1. It 
doesn't seem to be load related and we don't get any associated errors 
in our application and it is happening less than once per day. Anything 
we should be worrying about?

Thanks!

Shane.

[1] 
http://lists.basho.com/pipermail/riak-users_lists.basho.com/2013-June/012237.html
[2] http://i.imgur.com/ucZRTBR.png
[3] https://github.com/basho/riak_pipe/issues/49
goofansu | 17 Jun 2013 05:30
Picon
Gravatar

One node reports cpu_sup error repeatedly

Hi,

I attached onto one node and see the console reporting errors every 5 seconds.

Errors is like following:

11:25:33.130 [error] Error in process <0.7402.0> on node 'dev1 <at> 127.0.0.1' with exit value: {{badmatch,{error,{fread,float}}},[{cpu_sup,get_uint32_measurement,2,[{file,"cpu_sup.erl"},{line,283}]},{cpu_sup,measurement_server_loop,1,[{file,"cpu_sup.erl"},{line,585}]}]}


I'm testing on my own macbook pro with "make devrel". Only one node reports this error even after I restarted it.

My env:

System: OSX 10.8.4

Erlang: R15B01


-- 
goofansu
已使用 Sparrow

_______________________________________________
riak-users mailing list
riak-users <at> lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
De Bunge | 15 Jun 2013 13:06
Picon

403 forbidden while creating admin user in Riak-CS

I'm following guidelines and set up anomimous user creation

     cat  /etc/riak-cs/app.config  | grep anonymous_user_creation
     {anonymous_user_creation, true},

and using post request to create admin user:

>   curl -H 'Content-Type: application/json' \
>   -X POST `http://localhost:8080/riak-cs/user` \
>   --data '{"email":"foobar <at> example.com", "name":"admin user"}'

The response always is

    <?xml version="1.0"
encoding="UTF-8"?><Error><Code>ServiceUnavailable</Code><Message>Please
reduce your request
rate.</Message><Resource>/riak-cs/user</Resource><RequestId></RequestId></Error>

No matter how long I wait (hours) between requests. What's wrong? How
sould I create admin user?

Gmane