riak

Creating riak nodes: bitcask version clash

筅森魡賤 提交于 2019-12-25 04:53:09
问题 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 riak-1.2.1.tar.gz $ cd riak-1.2.1 $ make all This worked and I now tried to create four nodes as described in the Fast Track tutorial: $ make devrel This runs for a while and then produces the error below: ==> rel (generate) ERROR: generate failed while

riak mapreduce with limit on response size in java

戏子无情 提交于 2019-12-25 02:47:19
问题 I'm trying to run a mapReduce query on Riak 1.4 that queries by secondary index, sorts the records by date, and then limits the results to the first record. I've got the secondary index query working. The sort doesn't seem to do anything. No errors on the sort, just returns the results unsorted. The limit on the number of records returned yields a 'bad_json' error returned by the server. Here's what I have. It is suppose to query the "cars" bucket for the most recent car owned by "john_doe".

Riak simple SearchMapReduce throws IOException

ⅰ亾dé卋堺 提交于 2019-12-24 23:37:33
问题 I am trying to fetch Raik objects using simple filters. I have enabled search on the bucket before storing objects to it, and I try the following: MapReduceResult result = riakClient. mapReduce("serviceProvider", "name:oved1"). addMapPhase(new NamedJSFunction("Riak.mapValuesJson"), true).execute(); I get this exception: com.basho.riak.client.RiakException: java.io.IOException: {"error":"map_reduce_error"} at com.basho.riak.client.query.MapReduce.execute(MapReduce.java:80) at com.att.cso.omss

How long should this Riak Map Reduce query take?

妖精的绣舞 提交于 2019-12-24 15:13:11
问题 I have a bucket with approximately 900,000 records. The majority of those records have a status of PERSISTED in a secondary index. I want to retrieve all base_urls and a count of how many documents belong to each base_url for all docs that are marked PERSISTED. Here is the query: curl -X POST -H "content-type: application/json" \ http://localhost:8098/mapred?chunked=true --data @-<<\EOF { "timeout":600000, "inputs":{ "bucket":"test-bucket", "index":"status_bin", "key":"PERSISTED" }, "query":[

Riak mapreduce error

瘦欲@ 提交于 2019-12-24 09:54:56
问题 I am using the basic sample Riak sample provided. 5> ReFun = fun(O, _, Re) -> case re:run(riak_object:get_value(O), Re, [global]) of 5> {match, Matches} -> [{riak_object:key(O), length(Matches)}]; 5> nomatch -> [{riak_object:key(O), 0}] 5> end end. #Fun<erl_eval.18.50752066> 6> {ok, Re} = re:compile("caremad"). {ok,{re_pattern,0,0,0, <<69,82,67,80,85,0,0,0,0,0,0,0,81,0,0,0,255,255,255,255, 255,255,...>>}} 7> 7> {ok, Riak} = riakc_pb_socket:start_link("127.0.0.1", 8087). {ok,<0.44.0>} 8> riakc

Riak - Riak failed to start within 15 seconds,

萝らか妹 提交于 2019-12-24 06:59:10
问题 Despiste deceptively easy to follow riak install instructions for ubuntu, I get the below error. service riak start Riak failed to start within 15 seconds, see the output of 'riak console' for more information. If you want to wait longer, set the environment variable WAIT_FOR_ERLANG to the number of seconds to wait. 1) I updated the ip address in vm.args and app.config file and restarted riak 2) I ran the below: riak-admin reip riak@xxx.xxx.xxx.xxx Attempting to restart script through sudo -u

Riak - Riak failed to start within 15 seconds,

只愿长相守 提交于 2019-12-24 06:59:03
问题 Despiste deceptively easy to follow riak install instructions for ubuntu, I get the below error. service riak start Riak failed to start within 15 seconds, see the output of 'riak console' for more information. If you want to wait longer, set the environment variable WAIT_FOR_ERLANG to the number of seconds to wait. 1) I updated the ip address in vm.args and app.config file and restarted riak 2) I ran the below: riak-admin reip riak@xxx.xxx.xxx.xxx Attempting to restart script through sudo -u

DELETE a table in Riak TS

旧时模样 提交于 2019-12-24 05:55:04
问题 I am attempting to drop an entire table in RIAK TS, but nothing seems to work. I have tried both "drop table" in a standard query so (using Python): from riak import RiakClient client = RiakClient(host = '127.0.0.1') client.ts_query('ticks', 'DROP TABLE ticks') but this gives me an error that DROP is not understood. An alternative would be to delete everything in the table using client.ts_delete('ticks', ["rows"]) but this seems to need me to specify the row keys. Is there a wildcard option

How to query nested keys in Riak?

故事扮演 提交于 2019-12-22 00:24:48
问题 Say you have added a bucket to Riak like below ( Using riak-php-client ): $myData = '{ "24":{ "1": { "Ryan":{ "email":"chris@test.com", "title":"Boss", "Phone":"555.555.5555", "Fax":"555.555.5555", "Twitter":"@testingtwitter" } } } }'; $data = json_decode($myData, true); $object->setData($myData); $object->store(); } }'; If you want to access the "Twitter" value. What is the correct way to access that key via Riak? 回答1: If you wish to retrieve your object by something other than the key, you

Quick Reference Guide to Various NoSQL Databases

允我心安 提交于 2019-12-21 05:15:16
问题 I'm looking for one place that summarizes the main properties of the NoSQL databases that I keep seeing referenced - in particular, MongoDB, Riak, Redis, Memcached, Membase, and Cassandra. Types of queries, acid, architecture for/properties of scaling, etc. All in memory, overflow to disk, backup on disk, or mainly only indexes in memory? 回答1: Probably one of the best source which summarizes basic information (and points you to more detailed source in the first place) about various nosql