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

Storing doubly linked lists in Riak without a race condition?

We want to use Riak's Links to create a doubly linked list. The algorithm for it is quite simple, I believe: Let 'N0' be the new element to insert Get the head of the list, including its 'next' link (N1) Set the 'previous' of N1 to be the N0. Set…
Julien Genestoux
  • 31,046
  • 20
  • 66
  • 93
0
votes
1 answer

Riak in-memory store per-key overhead

As a follow-up to THIS question I asked earlier, are there any estimates of the per-key overhead in Riak when using the in-memory backend? Google hasn't helped much thus far, most searches leading me back to Bitcask estimates. I'm basically trying…
Dev Kanchen
  • 2,332
  • 3
  • 28
  • 40
0
votes
1 answer

Riak Erlang map/reduce returns {error,notfound}

I've running the following Riak map phase: -module(delete_map_function). -export([get_keys/3]). %Returns bucket and key pairs from a map phase get_keys(Value,_Keydata,_Arg) -> [[riak_object:bucket(Value),riak_object:key(Value)]]. And the…
Mark
  • 67,098
  • 47
  • 117
  • 162
0
votes
1 answer

MapReduce: map objects from another bucket against a list of keys (without link walking)?

Edit: Looks like the concept is known as "forwarding and collecting". Going to see how this works in the Riak-Java client. Right now performing a simple MapReduce in Riak that returns a list of keys of User objects. To keep things simple, I want to…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
0
votes
1 answer

I have two buckets in riak client_user and account_user, I am trying to make a mapreduce to get all users' objects

I have two riak buckets , "client_user" which contains compose_key as key like clientid-userid and another bucket "account_user" which contains userid as key and users' information. I am trying to make one mapreduce query to find out all users info…
Yang Sun
  • 18
  • 3
0
votes
2 answers

Riak solution for querying data by books or unique pages

Consider a set of data called Library, which contains a set of Books and each book contains a set of Pages. Let's say you are using Riak to store this data, and you need to be access the data in two possible ways: - Query for a particular page (with…
chaimp
  • 16,897
  • 16
  • 53
  • 86
0
votes
1 answer

Riak - How to get the ID of the current item in a Map function

Using Riak, how can I get the ID of the current item that's being processed in a Javascript map function? function(v, kd, arg) { var element = v.values[0]; var id = "??"; // How to get the ID of the current item return [id]; }
Mark
  • 67,098
  • 47
  • 117
  • 162
0
votes
1 answer

Querying riak through curl blocking return

I'm relatively new to riak and am just in the process of exploring things I seem to have this recurring problem thats an on again ..off again thing .. NOTE: This issue started after i tried setting up a mulit backend setup but reverted back to…
Aatish Molasi
  • 2,138
  • 3
  • 20
  • 43
0
votes
1 answer

How can I register the Scala Jackson Module in Riak-Java?

Needed to have support for Scala Lists and Options when storing to Riak. Looks like the Scala Module for Jackson would work for this. However, how would it be hooked into the object mapper in Riak? Not sure if I need to override something or if…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
0
votes
1 answer

how to convert a stored erlang term to a string outside of erlang

I have stored an Erlang Term into a bucket/key in Riak. This Term is stored as what I believe is binary by Erlang. For example this is the original erlang Term: {someAtom,[1,2,3],{"text1","text2"}} Using a java program I am trying to obtain the…
gextra
  • 8,439
  • 8
  • 40
  • 62
0
votes
1 answer

Do I need riak to run hallway (Singly)?

In the taskman section of the hallway config there is a section about riak. I wonder if riak is necesary to run the API. "taskman": { "numWorkers": 4, "pagingTiming": 2000, "defaultScanTime": 5000, "attempts": 8, "heartbeat":…
0
votes
1 answer

How do I index already existing objects in Riak

I created a bucket in riak and stored some key value pairs (value being a json object). After this I ran /usr/sbin/search-cmd install to start riak search for the bucket. Each object has a 'type' attribute and I am trying to search objects…
Vamsi
  • 365
  • 2
  • 8
0
votes
1 answer

Creating riak nodes: bitcask version clash

I have installed riak on a Fedora 17 system (but not using the package manager) by following the standard instructions, i.e.: $ wget http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/1.2/1.2.1/riak-1.2.1.tar.gz $ tar zxvf…
jogojapan
  • 68,383
  • 11
  • 101
  • 131
0
votes
2 answers

Writing date objects to riak with python and flask (with overly complex jsonification)

I've been working on a small project for myself, where I use riak, python and flask framework. Like in most cases, I'd like to store creation date of my objects stored in riak, and some other dates as well (like session expiration dates). When I…
SpankMe
  • 836
  • 1
  • 8
  • 23
0
votes
1 answer

Storing (or fetching) multiple values at once from Riak with Python and Flask

I am trying to write a small app that gets visitor IP and stores in Riak database. On its /show route it should list all visitors, that is, stored IP's and associated dates. However, for some reason, I am either storing only last visitor, or…
SpankMe
  • 836
  • 1
  • 8
  • 23