Questions tagged [riak]
Riak is a key/value data store written in Erlang. It implements principles from Amazon's Dynamo paper.
771
questions
0
votes
1
answer
61
views
Riak - partitions waiting to handoff
I'm running a cluster with 24 nodes with 1024 partitions
riak_kv_version : <<"2.1.7-226">>
I have 142 partitions waiting to handoff for more than 10 days. There's no ongoing ...
0
votes
1
answer
27
views
Rollback Riak node leaving ring job
I have run riak-admin cluster leave riak@gcp-07-internal.com on a node I want to leave riak ring.
The command runs successfully but the partitions transfer is taking more than 2 days.
riak@gcp-07 ====...
0
votes
1
answer
97
views
Riak 2 partitions waiting to handoff indefinitely
I'm running a 16 nodes cluster (Riak 2.1.7)
I have 2 partitions which are stuck in the "waiting to handoff" state for a long time.
The 2 partitions in question types are secondary instead of ...
1
vote
1
answer
51
views
Nitrogen - File upload directly to database
In the Nitrogen Web framework, files uploaded always end in the ./scratch/ directory when using #upload{}. From here you are supposed to manage the uploaded files, for example, by copying them to ...
1
vote
2
answers
157
views
python3 failed to import riak
I used python 3.9.13, and have installed riak client lib. But I failed to
import riak
Here's the exception message below
Traceback (most recent call last):
File "<stdin>", line 1, ...
0
votes
1
answer
71
views
Why is the Erlang riak client crashing?
I have followed the riak installation instructions for Ubuntu and the readme for the riak erlang client. At the point in the client instructions where a ping is sent to test the connection, I get the ...
1
vote
1
answer
334
views
How do I Install Riak on Ubuntu using apt
The Riak KV installation using apt on Ubuntu documents links are all broken on the documentation page.
Any ideas on how to do an install?
1
vote
1
answer
121
views
Riak failed to start within 15 seconds after renaming node
sudo riak start does not work anymore after I change nodename from nodename=riak@127.0.0.1 to nodename=riak@192.x.x.x. I followed the steps mentioned here: https://docs.riak.com/riak/kv/latest/using/...
0
votes
1
answer
96
views
Riak can't find object by key in first time
We have cluster of 5 Riak nodes.
We use riak-java-client for work with Riak, usually for create, read, delete data.
Unfortunately we have a problem with read old objects from riak.
Sometime when we ...
-1
votes
1
answer
123
views
Migrate Data from one Riak cluster to another
I have a situation where we need to migrate data from one Riak cluster to another and then remove the old cluster. The ring size will be same, even the region will be the same. We need to do this to ...
0
votes
1
answer
71
views
Riak. MultiDelete of RiakClient don't throw Exception
I use MultiDelete for acceleration of remove operation.
When need remove batch of objects from Riak:
public void deleteBatch(Collection<String> keys) throws ExecutionException, ...
1
vote
1
answer
369
views
Is RocksDB and LevelDB just like Riak?
I have a question regarding some NoSQL databases. In Ehcache we have for example the JCache API, in MapDB the Map Interface and in Riak KV we have a own process with clusters. How do I exactly find ...
0
votes
1
answer
45
views
Modeling data for maximum searchability
What's the best way to model this data:
public class Item {
Double price;
String geoHash;
Long startAvailabilty; // timestamp
Long endAvailabilty; // timestamp
Set<String> ...
0
votes
1
answer
82
views
Using Riak KV for Multitenant Applications
The current Riak 2.0 API precedes buckets with types, thus it is quite hard to use with a Multitenant environment, meaning multiple applications accessing the same database, other databases allow this ...
0
votes
1
answer
66
views
Riak kv SearchOperation NoNodesAvailableException
I am getting nonodesavailableexception with this code:
String query = "{\"phone\":\"111\"}";
User user = new User("222",null,null);
SearchOperation searchOp = ...
4
votes
2
answers
1k
views
Distributed database which allows custom CRDT merging
I‘m rather new to distributed databases, though I have already studied related literature (e.g. CAP theorem, CRDT) and implemented some POC to allow scaling my application horizontally.
Now I however ...
1
vote
0
answers
73
views
riak error: [ERROR] [Node] (172.16.1.56:8087|0|0) failed healthcheck in createConnection
I'm using Riak KV 2.2.6 in a single host. I need this for implementing APACHE TRAFFIC CONTROL which is my CDN platform. I need to connect from one of my server in APACHE TRAFFIC CONTROL to Riak server ...
1
vote
1
answer
58
views
Does Riak CS instances interact with other Riak CS instances inside a cluster and why is Riak CS deployed on each node of a cluster?
Riak CS implements the S3 API for an underlying Riak distributed, decentralized data storage system. Not only the Riak data storage system but also Riak CS must be deployed on each node. A further ...
6
votes
2
answers
13k
views
How do I make sure that my default C/C++ compiler is GCC
I'm trying to install Riak from source on macOS (https://docs.riak.com/riak/kv/2.2.3/setup/installing/mac-osx.1.html#installing-from-source).
There is a note:
Riak will not compile with Clang. ...
1
vote
1
answer
71
views
Riak: is $bucket safe in production?
I need to clean a few buckets in a massive riak database. For certain buckets, since we had indexes, I just queried those and deleted the keys. But now I'm dealing with two buckets that don't have any ...
0
votes
1
answer
59
views
Difference between node_gets and vnode_gets in Riak
Can anyone please tell me the difference the following metrics in Riak:
1. node_gets vs vnode_gets
2. node_puts vs vnode_puts
As per the documentation, node_gets is the number of gets co-ordinated by ...
3
votes
1
answer
139
views
RIAK Node does not Start after changing IP
I am in the process of setting up a Riak Cluster on Raspberry Pis.
Unfortunately I get the following error message after changing the IP address.
Versions I used:
Debian Jessie (Raspberry PI)
riak (...
2
votes
1
answer
284
views
In Bitcask, how is the index/hashtable in memory updated after the old files are merged and compacted?
In Bitcask, when a write happens:
Data is appended to a file
A hashtable in memory is updated with the pointer to the data.
When a read happens for a key:
The file and offset is found from the ...
0
votes
1
answer
107
views
How to configure connection pool for Riak
I am trying to configure my riak connector similar to how I did my Datasource Service connector. (source below is from: https://cloud.spring.io/spring-cloud-connectors/spring-cloud-spring-service-...
1
vote
0
answers
47
views
Riak: searchable list of maps (with CRDTs)
I have a use-case which consist in storing several maps under an attribute. It's the equivalent JSON list:
[
{"tel": "+33123456789", "type": "work"},
{"tel": "+33600000000", "type": "mobile"},
{"tel":...
0
votes
1
answer
2k
views
Querying by attribute in Riak
I'm developing an app with Riak and java. Basically I want to store news, for which I have an object with this attributes:
public String title;
public String author;
public String URL;
public ...
0
votes
1
answer
67
views
Can I have conflict in Riak with using a vclock getting by a get
I want to know if I can have conflict in this scenario :
#!/usr/bin/env bash
curl -XPUT -d '{"bar":"baz"}' \
-H "Content-Type: application/json" \
http://127.0.0.1:8098/riak/obj/1
...
0
votes
0
answers
135
views
Riak KV returns 403 Forbidden when it's behing reverse proxy
I'm getting 403 Forbidden from RiakKV, which is behind reverse proxy, when trying to reach it from my frontend (I'm making a request from Angular http client). The strange thing about it is that when ...
0
votes
2
answers
246
views
List of forbidden character in Lucene query for Solr
I got a setup of a Solr search engine on a Riak database.
When I am trying to realize a search with the following query:
my_field:#
I a paring query error from Solr
I also tried to query as follow
...
0
votes
1
answer
122
views
Riak & memory backend: handling expiration and pruning
I am wondering what the best strategy is to manage expiration of session-related data stored in a memory Riak bucket type.
It seems that this backend supports ttl (http://docs.basho.com/riak/kv/2.2.3/...
0
votes
1
answer
135
views
Riak search on CRDT data types - memory backend
I am using riak2.2.3, and trying to search in a map bucket type, but nothing is ever returned.
I've configured a bucket type "dist_cache" on the memory backend:
# riak-admin bucket-type status ...
0
votes
1
answer
64
views
How to list all existing users using Riak admin-shell?
In Riak, how do I retrieve a list of currently existing users? I can't seem to find it anywhere on Stack Overflow.
2
votes
1
answer
424
views
Search in json nested fields (schema + query)
I got the following JSON stored in a Riak bucket which handle Solr research.
{
"date" : 1535673489,
"customer" : {
"name" : "X"
"id" : 1205643
}
}
And my schema.xml fields look ...
0
votes
1
answer
40
views
Can we create more then 2 riak cluster
Can we setup Riak Cluster with only 2 nodes like this
node01
node02
or we add more cluster or less then 2 cluster if we can then please let me how we can achieve that .
0
votes
1
answer
53
views
What is the best SGDB for Riak kv - Basho?
I'm starting with riak, Is there any SGDB for linux that contemplate it?
As if it were studio 3t for MongoDb.
thankful
1
vote
0
answers
74
views
Java Riak "Channel closed while operation in progress" error [duplicate]
I'm trying to execute TasteOfRiak.java from basic tutorial (https://docs.basho.com/riak/kv/2.0.0/developing/getting-started/java/ ) but Riak logs error during execution:
602441 [nioEventLoopGroup-2-2]...
1
vote
1
answer
202
views
Riak TS should not be a no NoSQL database?
Why is Riak TS considered as a NoSQL database when it needs a predefined schema for tables? This schema even cannot be changed! Source: documentation
I think that some people may think that when Riak ...
1
vote
0
answers
128
views
Confusing netty IllegalAccessErrror 4.1.5.Final
I've started seeing an error in production that's new to me. It looks like the Java Riak client driver hit an error and then I've been spammed with thousands of errors from netty.
This is the stack ...
0
votes
1
answer
99
views
Can we join different versions of riak kv in a cluster?
I am just trying to figure out if we can join different versions of riak kv in a cluster.
I currently run a 5 node cluster of riak-1.4.7. Can I join riak-2.0.X versions to the same cluster? If the ...
0
votes
1
answer
74
views
Can we add a new node in riak kv test environment?
There are 5 nodes (dev/dev1....dev/dev5) configured in test environment. Can we add a new node dev/dev6 to the cluster? If we can add it, will it replicate data after joining the node to the cluster?
...
2
votes
0
answers
130
views
Differences between Voldemort and Riak KV
I have read about these two databases. I am interested in some practical differences between them, but I couldn't find any. They are both AP Key-Value databases.
They are mostly compared only to ...
0
votes
0
answers
42
views
RIAK and Swagger UI
I am learning about RIAK and thinking about using it to store JSON objects.
I have also used swagger UI many times in the past to document API's.
I would like to build a simple example bucket in RIAK ...
0
votes
1
answer
2k
views
Curl coudn't resolve proxy 'PUT'
I'm trying to add a link to a already existing bucket in RIAK which was created by me before using POST , and now im getting the following error.
curl -x PUT http://localhost:8091/riak/games/...
0
votes
0
answers
166
views
Riak is Not Starting After Reboot
I'm seeing an IO error on the Riak console. I'm not sure what the cause is as the owner of the directory is riak. Here's how the error looks.
2018-01-25 23:18:06.922 [info] <0.2301.0>@...
0
votes
0
answers
38
views
How to install two Ries KV?
Installed Riak KV in /etc/riak.
How to install another version of Riak KV on the same computer?
I have riak 2.2.0
uname -a
Linux riak-2 2.6.32-642.1.1.el6.x86_64 #1 SMP Fri May 6 14:54:05 EDT 2016 ...
0
votes
1
answer
84
views
Replication Properties of Riak nodes
With a partitioned database with N nodes. Assume W is the number of nodes in which the number of nodes required to be locked to be written and R is the number of nodes required to be locked in order ...
0
votes
1
answer
386
views
Modifying single json value in Riak through HTTP
I am learning to use the riak noSQL-database, but I have a question I have not found an answer to in several days.
I have a database entry like so:
{
"Username" : "Pete",
"Pets" : "Cat",
"...
0
votes
2
answers
76
views
how we make Riak KV Cluster with security implementation using java client
Can anybody tell how we interact with security enables Riak KV Cluster using java client.
I tried with following java code to interact with security enabled riak cluster, but getting SSLEngine ...
0
votes
1
answer
31
views
Riak Security in Cluster
I am finding difficulty while setting up Riak Kv Cluster setup using java client.
Can anybody tell how we do that??
Achually i tried with below code to use riak security in cluster but i am getting ...
1
vote
0
answers
323
views
Riak db returns 500 Internal server error
I seem to be having an issue with our riak-kv db v2.2.3, we are currently running 5 node cluster, out of nowhere last week suddenly requests to our db started returning 500 internal server error for ...