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: how to enable KV indexing of buckets by default?

Riak docs have very good explanation of KV searching and indexing http://docs.basho.com/riak/1.2.1/cookbooks/Riak-Search---Indexing-and-Querying-Riak-KV-Data/ . It is recommended there to enable KV indexing for each bucket separately. So, you need…
kikulikov
  • 2,512
  • 4
  • 29
  • 45
0
votes
1 answer

Is there a object level TTL in RIAK?

Is there a way to set a document level TTL for every object that we store in RIAK? For example, if i want to store "value" for a "key" in RIAK, can i set a TTL of 30 seconds on that key so that the element expires on the 31st second?
dvk
  • 33
  • 4
0
votes
2 answers

RIAK: 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…
0
votes
1 answer

How connect to new riak node when the old node down?

I'm using riak-erlang-client. According to this guide, I can connect to one node: 1> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087). {ok,<0.56.0>} I know when the node is down, it will send the message {tcp_closed, _FromPid}, but…
goofansu
  • 2,277
  • 3
  • 30
  • 48
0
votes
1 answer

Configuring RIAK to use non-homogenous servers as nodes

I'm planning on putting together a cluster using Riak. The servers that I'll be using come with a variety of RAM and disk storage; some have 32GB RAM, others have 96GB. Some 1TB disk space, others 12TB. My question: how can I configure RIAK to…
OnesAndZeroes
  • 315
  • 1
  • 9
0
votes
1 answer

php post request with --data

I try to make a request from my php code to another remote server which has Riak DB running. I need to make a map-reduce request so I have to do it with POST http. Riak documentation says (for e.g.) curl -XPOST http://`localhost`:8091/mapred \ -H…
kikulikov
  • 2,512
  • 4
  • 29
  • 45
0
votes
2 answers

How to set bucket properties of a riak cluster using ripple?

I am new to both ripple and riak. Does anyone have an idea, how can I set the bucket properties like n_val allow_multi etc using ripple in my code. I don't want to do it via the curl request: $ curl -v -XPUT -H "Content-Type: application/json" -d…
Infant Dev
  • 1,659
  • 8
  • 24
  • 48
0
votes
1 answer

How to configure Riak 1.3.* with range request (Accept-Ranges: bytes)

I'm trying to use riak for storing of video contents. I'm allready able to push my video to riak with the correct mite type and I also receive the Video by its URL. The riak page tells me, that riak in version 1.3.* is capable of supporting range…
0
votes
1 answer

Accessing Riak node from a remote machine (riak-admin backup)

While trying to run a riak-admin backup riak@ec2-xxx.compute-1.amazonaws.com riak /home/user/backup.dat all on a remote machine (ec2 instance) I encounter the following error message {"init terminating in…
Sagish
  • 1,065
  • 8
  • 13
0
votes
1 answer

How to queryl based on time interval in riak

I am trying to implement the following functionality. I have a bucket where I am storing objects. One of the object field is timestamp. Now I want to retrieve the objects whose timestamp is between an interval like (20130605 08:00:00 to 20130605…
0
votes
1 answer

Riak 1.3.1 will not start on lucid, Ec2 instance

I have installed riak (apt-get) on an EC2 instance, lucid, amd64 with libssl. When running riak start I get: Attempting to restart script through sudo -H -u riak Riak failed to start within 15 seconds, see the output of 'riak console' for more…
Kurt Campher
  • 745
  • 1
  • 5
  • 11
0
votes
1 answer

Riak set timeout for individual keys

What i would like to do is set a timeout for individual keys in riak I know that you can set a timeout on using bitcask but if im not mistaken that is only to the buckets i have a method where i could implement the timeout functionality manually but…
Aatish Molasi
  • 2,138
  • 3
  • 20
  • 43
0
votes
2 answers

Riak MapReduce: Group items by field + sum another field

Everywhere I read, people say you shouldn't use Riak's MapReduce over an entire bucket and that there are other ways of achieving your goals. I'm not sure how, though. I'm also not clear on why using an entire bucket is slow, if you only have one…
d11wtq
  • 34,788
  • 19
  • 120
  • 195
0
votes
3 answers

Completely confused about MapReduce in Riak + Erlang's riakc client

The main thing I'm confused about here (I think) is what the arguments to the qfun are supposed to be and what the return value should be. The README basically doesn't say anything about this and the example it gives throws away the second and third…
d11wtq
  • 34,788
  • 19
  • 120
  • 195
0
votes
1 answer

riak-cs crashing with a lot of requests

I'm testing RIAK-CS as an S3 alternative. I currently have 3 nodes with 4GB RAM and 2GB SWAP each. I pushed 10GB of data to RIAK-CS. Except the high IO, everything was fine. Then I tried to pull that data with the following python script. conn =…