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
5
votes
2 answers

Is there any way to provide authentication for riak database?

I want to authenticate riak node with a username and a password like we normally do authentication for SQL databases.
Ashok
  • 661
  • 6
  • 17
5
votes
1 answer

Getting notifications on database changes: is it possible to watch entries in riak?

I'm looking for an efficient way to subscribe to events in riak from node. I would like to be able to be notified of changes on an entry from riak. For example when one node.js server updates an entry, another server using and watching that entry…
Coyote
  • 2,454
  • 26
  • 47
5
votes
3 answers

Riak node no longer working after changing IP address

I'm using an instanced Amazon EC2 virtual Ubuntu 12.04 server as my single Riak node. I've gone through all the proper stages of setting up Riak on the instance using the guide on the basho website here. Where x.x.x.x is the private IP address of…
KillAWatt1705
  • 645
  • 1
  • 6
  • 13
5
votes
1 answer

Distributed Erlang and riak-core: how does the mesh scale for large clusters?

Using distributed Erlang creates a mesh network between all the nodes, and that doesn't scale well to hundreds of nodes. How does riak-core deal with that? Does it not use distributed Erlang (set -connect_all=false and use custom protocol for…
Harish
  • 473
  • 2
  • 13
5
votes
1 answer

Ensure correctness in riak?

It appears you cant do transactions in riak. How does one ensure data is correct? Lets say we want to insert a comments. In redis i'd do commentId=incr commentCount multi SET comment_post:commentId postId //for later use when we flag comments.…
user34537
4
votes
1 answer

Riak special chars in keys

I want to store a key with special char (slash in my case) to Riak via REST. HowTo http://wiki.basho.com/Riak-Search---Querying.html#Fields says: If your field contains special characters, such as (‘+’,‘-’,‘/’,‘[’,‘]’,‘(’,‘)’,‘:’ or space), then…
shipik
  • 45
  • 4
4
votes
1 answer

Backing up Riak Data when changing backends

I have Riak (1.0.2) installed in my VMWare Workstation running Ubuntu Linux Natty. It's a single machine installation and not a cluster. I changed my backend from BitCask to LevelDB to take advantage of secondary indices. However, now all my other…
ObiHill
  • 11,448
  • 20
  • 86
  • 135
4
votes
3 answers

I got error from the curl when testing riak

I'm newbie to Riak and web service I follow the riak fast track,In server side I type riak start and in a client side, I run curl -H "Accept: text/plain" http://markson.hk:8093/stats I got an error: curl: (7) couldn't connect to host update on the…
mko
  • 21,334
  • 49
  • 130
  • 191
4
votes
2 answers

erlang: Distributed Hash Table?

Are there any Distributed Hash Table implementations in Erlang? I searched the web and found a number of research papers but I did not find a mature implementation.
Paul Cager
  • 1,910
  • 14
  • 21
4
votes
1 answer

Write millions of documents into Riak

What is the best way to add huge amount of documents into riak? Let's say there are millions of product records, which change very often (prices, ...) and we want to update all of them very frequently. Is there a better way than replace keys one by…
Pavel S.
  • 11,892
  • 18
  • 75
  • 113
4
votes
1 answer

Timeout problems with the Riak Python Client with protocol buffers

I'm seeing a strange but consistent behaviour from the Python Riak Client when connecting to my riak AWS cluster using protocol buffers. This short python snippet produces the error: import time import riak client = riak.RiakClient( …
4
votes
1 answer

Interoperability: Scala Case Classes + Java Pojos

I'm using Scalatra + Riak. Scalatra uses case classes to map request (json) data to/from, while the Riak client uses pojos to map json data to/from the database. Instead of having both case classes and pojos, is there a way to use one or the other,…
Ari
  • 4,121
  • 8
  • 40
  • 56
4
votes
1 answer

Jackson annotation or method to URL encode/decode during serialization?

I'm wondering if there's an easy way to URL encode/decode when serializing and deserializing objects in Jackson. The reason for this would be to ensure that incoming fields that are going to be indexed in Riak do not contain illegal characters. For…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
4
votes
2 answers

Migrating Riak data when ring size changes

Is it trivial? I will be using Bitcask and file backups (of the files on each node). Let's say my initial ring size is 256 with 16 nodes. Now if I am required to expand to a ring of 1024, can I setup 16 new instances configured with a ring-size of…
Dev Kanchen
  • 2,332
  • 3
  • 28
  • 40
4
votes
2 answers

Riak - all partitions belong to one node

I'm going through the book Seven Databases in Seven Weeks (a good read so far), and I'm confused on a Riak detail that is passed over quickly in the book. Riak is supposed to, by default, break the data up into 64 partitions. Each of these…
chadoh
  • 4,343
  • 6
  • 39
  • 64