Questions tagged [riak]

Riak is a key/value data store written in Erlang. It implements principles from Amazon's Dynamo paper.

Riak is a NoSQL database implementing the principles from Amazon's Dynamo paper. Riak is designed to deliver maximum data availability by distributing data across multiple servers. As long as your Riak client can reach one Riak server, it should be able to write data.

While Riak is typically known as an eventually consistent system, beginning with version 2.0 it can be used either as an eventually or strongly consistent system, and these two approaches can be mixed and matched in a single cluster.

For more information please refer to:

  1. Home page
  2. Downloads

Related tags :

771 questions
0
votes
1 answer

Riak - Aggregration Group by Functions

How do I perform aggregation group by like functions in RIAK? Functions such as: Min Max Count Avg Stddev In SQL this seems straight forward but I cannot find any examples in Riak online.
revert
  • 49
  • 3
0
votes
1 answer

RIAK - Time Query

Is it possible to search for records in RIAK based on time intervals? Such as pulling out the most recent records for the past 7 days. Ie, from MySQL: WHERE DATE(edit_date) = DATE_SUB(CURDATE(), INTERVAL 7 DAY)
revert
  • 49
  • 3
0
votes
1 answer

Querying a Riak DB by a Subkey

I'm using riak-js and node.js If I have a document as follows: { 'skey1': 'val1', 'skey2': 'val2', ......, 'skeyn': 'valn' } How can I return a document that has skey2 = 'val2'? How would this be done in node.js / riak-js?
KingFish
  • 8,773
  • 12
  • 53
  • 81
0
votes
1 answer

Riak responds with 204 even if returnbody is true

We are running loadtests and Riak is sometimes responding with 204 No content when we do a PUT operation, even though we've passed returnbody=true (this answer implies this is not expected) It happens rarely, so what might be the possible…
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
0
votes
1 answer

Riak secondary index search returns no keys every time

I must be crazy... I've got the search function working for my bucket just fine. Keys are returned nicely. But when my php riak object contains: ["indexes":protected]=> array(2) { ["sign_id_int"]=> array(1) { …
0
votes
1 answer

How to List all keys from bucket using riak-java-client

Its rather simple question about how to list bucket keys using riak and I am using java-riak-client v1.1.4 and Riak 1.3.2 , there are few ways to do so that I know of: -> Though Deprecated, val riak = new…
mane
  • 1,149
  • 16
  • 41
0
votes
1 answer

How to understand this Riak stacktrace?

Can anyone help me solve this problem, I have the stacktrace of the problem, but can't understand what the trace actually means. The error occurs when I try to retrieve all data from a bucket, in a Riak Database. And I am using java-riak-client…
mane
  • 1,149
  • 16
  • 41
0
votes
1 answer

How to write a reduce phase function in erlang on riak database

I am having data a riak bucket i am getting data like the below by using python-riak client <<"{\"META\": {\"campaign\": \"5IVUPHE42HP1NEYvKb7qSvpX2Cm\", \"createdat\": 1406978070.0, \"user_email\":…
Krish gopi
  • 155
  • 4
  • 12
0
votes
1 answer

Riak: are my 2is broken?

we're having some weird things happening with a cleanup cronjob and riak: the objects we store (postboxes) have a 2i for modification date (which is a unix timestamp). there's a cronjob running freqently deleting all postboxes that have not been…
Matthias
  • 2,622
  • 1
  • 18
  • 29
0
votes
1 answer

How to write riak query in riakc

I am a noob at riak, and have been trying to test the query aspect of riak using riakc in erlang. but I can not find any example of how to query the database that match the old SQL way, Only on how to get a single value out of a single field. I…
jazzjazzy
  • 412
  • 3
  • 20
0
votes
1 answer

riak: poll a bucket for all items in a bucket by secondary index

Trying to do this via the documentation at their site, but it appears to be outdated. Have a bucket with a secondary index, and want to curl it to get the JSON associated with all objects that have a certain value for a secondary index. Looks like…
fox
  • 15,428
  • 20
  • 55
  • 85
0
votes
1 answer

Using Riak.js / Riak, how do I do an "AND" select?

I am trying to determine the existence of an object to decide whether to create a new object with a new key or to update an existing object. The goal here is to match on two Secondary Indexes. db.query(bucket, {end: null, definition_id: id},…
Jazzy
  • 6,029
  • 11
  • 50
  • 74
0
votes
0 answers

Riak Search, problems with fields starting with "-"

There seems to be a bit of problem when doing riak search, using Java Riak Client, val result = client.mapReduce(BUCKET_NAME, searchHead + ":" + userID) .addMapPhase(new NamedJSFunction("Riak.mapValuesJson"), true) .execute Here,…
mane
  • 1,149
  • 16
  • 41
0
votes
2 answers

Riak: Create index on key via Java/Scala

I have a bucket on riak in which I store simple Timestamp -> String values in this way: val riakClient = RiakFactory.newClient(myHttpClusterConfig) val myBucket = riakClient.fetchBucket(name).execute myBucket.store(timestamp.toString,…
StefanoP
  • 3,798
  • 2
  • 19
  • 26
0
votes
1 answer

Can we retrieve Riak Objects instead of keys using 2i

I have a use-case where I need to query based on a 2i value and retrieve all the Riak objects intstead of only keys. Doing a map-reduce operation for this took quite a long time and more computations. Is there any other solution for this?
Gaurav
  • 107
  • 1
  • 8