riak build process erlang version detection

2011-11-09 Thread Ivan Trajkovic
can anyone point me to section in the build files for riak where the erlang version is being checked for? when I build riak on my current system in my rel/riak folder both the erts-5.9 and erts-5.8.4 folders are created, and riak is having trouble starting after that. the issue is that some weeks

Re: erlang precommit hook error

2011-11-09 Thread Hal Eisen
My input data is ascii text (not json or xml). Why would riak_object:get_value() return binary data? Can anyone explain how to retrieve, modify and store a riak_object within an Erlang precommit hook? I'm also trying to get some debug info with lager:info() but that seems to be giving an error a

Re: Riak Installation issue on Mac

2011-11-09 Thread Geeth Narayanan
Removing and ReInstalling Xcode seemed to have solved my issue. Thanks All for the help. -Geeth On Wed, Nov 9, 2011 at 8:27 PM, Geeth Narayanan wrote: > Thanks Jeremiah. > Here are the results of running those commands: > > $ gcc -version > i686-apple-darwin10-gcc-4.2.1: no input files > > $ ls

Re: Riak Installation issue on Mac

2011-11-09 Thread Geeth Narayanan
Thanks Jeremiah. Here are the results of running those commands: $ gcc -version i686-apple-darwin10-gcc-4.2.1: no input files $ ls /Developer/usr/lib/gcc i686-apple-darwin10 powerpc-apple-darwin10 -Geeth On Wed, Nov 9, 2011 at 3:24 PM, Jeremiah Peschka wrote: > In Terminal, what do the follow

Re: erlang precommit hook error

2011-11-09 Thread Joseph Lambert
AFAIK, When you do riak_object:get_value(), it will return a binary and you are calling string:tokens on a binary value. - Joe Lambert joseph.g.lamb...@gmail.com +86 13656213284 On Wed, Nov 9, 2011 at 4:01 AM, Hal Eisen wrote: > I've made some progress. Looks like I was not compiling my mod

Re: riak ubuntu 11 building problems

2011-11-09 Thread Ivan Trajkovic
so I upgraded to Ubuntu 11.10 from 11.04 same errors is there some way to specify when doing a build to use erts-5.8.4? because for some reason its using 5.9 which is having trouble starting. On Wed, Nov 9, 2011 at 4:18 PM, Ivan Trajkovic wrote: > Im definitely using R14B3 > running "riak con

Index query mapreduce error

2011-11-09 Thread Ben Kempe
Hi everybody, We have JSON data in a Riak 1.0/leveldb bucket with an index createdat_int. http://localhost:8098/buckets/data/index/createdat_int/5/1320883249 works, but curl -X POST \ -H "content-type: application/json" \ -d @- \ http://localhost:8098/mapred \ <>,<<"createdat_int">>,5,

Re: configurable prefix for consistent hashing?

2011-11-09 Thread Nate Lawson
On Nov 9, 2011, at 3:49 PM, Nate Lawson wrote: > On Nov 9, 2011, at 3:33 PM, Elias Levy wrote: > >> On Wed, Nov 9, 2011 at 3:29 PM, Phil Stanhope wrote: >> Tread carefully here ... by forcing localilty ... you will sacrifice high >> availability by algorithmically creating a bias and a single p

Re: configurable prefix for consistent hashing?

2011-11-09 Thread Nate Lawson
On Nov 9, 2011, at 3:33 PM, Elias Levy wrote: > On Wed, Nov 9, 2011 at 3:29 PM, Phil Stanhope wrote: > Tread carefully here ... by forcing localilty ... you will sacrifice high > availability by algorithmically creating a bias and a single point of failure > in the cluster. > > You don't have

Re: configurable prefix for consistent hashing?

2011-11-09 Thread Elias Levy
On Wed, Nov 9, 2011 at 3:29 PM, Phil Stanhope wrote: > Tread carefully here ... by forcing localilty ... you will sacrifice high > availability by algorithmically creating a bias and a single point of > failure in the cluster. > You don't have to loose high availability, your data is still being

Re: configurable prefix for consistent hashing?

2011-11-09 Thread Phil Stanhope
Tread carefully here ... by forcing localilty ... you will sacrifice high availability by algorithmically creating a bias and a single point of failure in the cluster. Cassandra made this easier to do ... and then there were many questions on the user list about: "why is my cluster is unbalanced?

SV: Riak crashing with {lucene_parse,"syntax error before: "AND""}

2011-11-09 Thread Erik Søe Sørensen
Well, the "stop word not allowed in query: 'and'" part of the logged error message sounds reasonably enough. But that ought to just abort the query in question, obviously not take down the entire node. - Reply message - Fra: "Spike Gronim" Dato: ons., nov. 9, 2011 23:55 Emne: Riak crash

Re: Riak crashing with {lucene_parse,"syntax error before: "AND""}

2011-11-09 Thread Spike Gronim
One of my Riak servers died again. I think the previously linked crash report was not what made it die. Now no erlang OS processes are running on the machine at all. This cluster is entirely idle except I am running search queries on it. The other 3 servers are up and happy. Here are some log m

Re: Riak Installation issue on Mac

2011-11-09 Thread Jeremiah Peschka
In Terminal, what do the following commands produce as output: gcc --version ls /Developer/usr/lib/gcc/ The errors you're seeing in the file you attached specifically indicate that you do not have a properly working set of tools to build software C/C++ programs. --- Jeremiah Peschka - Founde

Re: riak ubuntu 11 building problems

2011-11-09 Thread Ivan Trajkovic
Im definitely using R14B3 running "riak console" gives me the same errors On Wed, Nov 9, 2011 at 1:49 PM, Jared Morrow wrote: > Like I said, you seem to be using R15 in your building of riak, that's why > you have a erts-5.9 directory instead of erts-5.8.4. Please uninstall > your erlang versi

Re: Riak Installation issue on Mac

2011-11-09 Thread Geeth Narayanan
Jeff/Alexander, Thanks for your replies. I do have both Xcode and Erlang installed. $ ls /Developer About Xcode and iOS SDK.pdf Extras Platforms About Xcode.pdf Headers SDKs Applications Icon? Tools Documentation Library usr Examples Makefiles $ erl Erlang R14B03 (erts-5.8.4) [source] [smp:4:4]

Re: Errors upgrading to 1.0.1 via Homebrew

2011-11-09 Thread Gordon Tillman
Jon you can also install directly with homebrew as follows: brew install riak --HEAD --g On Nov 9, 2011, at 12:48 , Hector Castro wrote: > Hi Jon, > > I did the following to solve the OTP release issue with Homebrew: > > cd /usr/local > # Checkout commit right before r14b04 releas

Re: configurable prefix for consistent hashing?

2011-11-09 Thread Elias Levy
On Wed, Nov 9, 2011 at 12:00 PM, wrote: > From: Nate Lawson > > We have been looking into ways to cluster keys to benefit from the LevelDB > backend's prefix compression. If we were doing a batch of lookups and the > keys from a given document could be grouped on a partition, they could be > rea

Re: Riak Installation issue on Mac

2011-11-09 Thread Jeff Kirkell
You need Xcode git and erlang to compile on Mac Sent from my iPhone On Nov 9, 2011, at 3:22 PM, Alexander Sicular wrote: > Think you need Xcode installed to compile. > > @siculars > http://siculars.posterous.com > > Sent from my rotary phone. > > On Nov 9, 2011 3:00 PM, "Geeth Narayanan" w

Re: Riak Installation issue on Mac

2011-11-09 Thread Alexander Sicular
Think you need Xcode installed to compile. @siculars http://siculars.posterous.com Sent from my rotary phone. On Nov 9, 2011 3:00 PM, "Geeth Narayanan" wrote: > Hi, > > I am trying to install Riak on my Mac OS X and cloned the source from git > repo. When I tried to make, I am getting an error.

Re: Riak Installation issue on Mac

2011-11-09 Thread Jeremiah Peschka
You're missing string.h Do you have a compiler installed? --- Jeremiah Peschka - Founder, Brent Ozar PLF, LLC Microsoft SQL Server MVP On Nov 9, 2011, at 12:00 PM, Geeth Narayanan wrote: > Hi, > > I am trying to install Riak on my Mac OS X and cloned the source from git > repo. When I tried to

Riak Installation issue on Mac

2011-11-09 Thread Geeth Narayanan
Hi, I am trying to install Riak on my Mac OS X and cloned the source from git repo. When I tried to make, I am getting an error. Could you please let me know what the issue is and how I can solve it? I have attached the info in the shell. Thanks. Geeth sudo make Password: ./rebar get-deps ==> clu

configurable prefix for consistent hashing?

2011-11-09 Thread Nate Lawson
We have been looking into ways to cluster keys to benefit from the LevelDB backend's prefix compression. If we were doing a batch of lookups and the keys from a given document could be grouped on a partition, they could be read with less disk IO. However, consistent hashing in Riak currently spr

Timeouts in Riak Search

2011-11-09 Thread Spike Gronim
Hello, My Riak search cluster is timing out very often. I am indexing text content extracted from web pages containing news articles. My articles range in size from a few KB to tens of KB. I have put about 4.4 million articles into Riak for an average article size of 15 KB. The keys are MD5 AS

Re: riak ubuntu 11 building problems

2011-11-09 Thread Jared Morrow
Like I said, you seem to be using R15 in your building of riak, that's why you have a erts-5.9 directory instead of erts-5.8.4. Please uninstall your erlang version, and try using erlang-r14b03. Using something like kerl will make it easier to manage multiple

Re: Errors upgrading to 1.0.1 via Homebrew

2011-11-09 Thread Hector Castro
Hi Jon, I did the following to solve the OTP release issue with Homebrew: cd /usr/local # Checkout commit right before r14b04 release git checkout -b r14b03 9332ca98df235cf3b375ee490065947f19c6a3c8 brew install erlang git checkout master -- Hector On Nov

Riak Recap for November 4 - 8

2011-11-09 Thread Mark Phillips
Morning, Afternoon, Evening to All - For today's Recap: new code, press releases, and more. Enjoy. Mark Community Manager Basho Technologies wiki.basho.com twitter.com/pharkmillups --- Riak Recap for November 4 - 8 === 1) Jon Brisbin did som

Errors upgrading to 1.0.1 via Homebrew

2011-11-09 Thread Jon Brisbin
Tried upgrading my local Riak install to 1.0.1 using Homebrew (also after upgrading Erlang to R14B04) and I'm getting this: ==> skerl (compile) ERROR: OTP release R14B04 does not match required regex R14B0[23] make: *** [compile] Error 1 Can I trick it by hacking the rebar.config? I still ha

Re: Riak configurator?

2011-11-09 Thread Mark Phillips
This sounds like a super useful tool. You have a few minutes to write up some more specific details on what said tool might do and add it to features.basho.com? Mark On Tue, Nov 8, 2011 at 6:22 PM, Jonathan Langevin wrote: > K, let me know when you complete it :-D > > On Nov 8, 2011 9:05 PM, "Al

Re: Nodes neither leaving nor joining the cluster

2011-11-09 Thread Nitish Sharma
Hi Alexandre, Fortunately its a test cluster. Removing the ring files, stopping and starting the nodes, and then again running *join *brought the cluster in desirable state. Name and IP of all the nodes was same all the time, still restarting a single node brought the whole cluster in inconsistent

Re: Nodes neither leaving nor joining the cluster

2011-11-09 Thread Alexandre Ravey
Hi Nitish, Did you change the node name or IP at any point? If so, you need to reip your node(s). Run riak-admin status and check the node name in ring_members, must be the same as your actual node. (ie, same ip and node name). Check also that you are not using xxx@127.0.0.1 if your nodes aren't

Re: riak ubuntu 11 building problems

2011-11-09 Thread Andrew Musselman
Sorry, I haven't seen those errors. Have you tried running `riak console` instead of `bin/riak start`? That helped me sort out some other weird behavior I couldn't figure out. Best Andrew On 11/09/2011 12:59 AM, Ivan Trajkovic wrote: @Andrew erlang builds fine every time, never had a proble

Nodes neither leaving nor joining the cluster

2011-11-09 Thread Nitish Sharma
Hi, I've installed riak using pre-compiled Debian binary. I setup a Riak cluster consisting of 3 nodes (name of each node in format: riak@). The configuration file for all the nodes is same. Just to clarify my problem, I'll be using node names as A, B, and C. Initially, all three nodes were success

Re: Troubleshoot failure to add a node?

2011-11-09 Thread Rusty Klophaus
Excellent, happy to help! On Wed, Nov 9, 2011 at 10:49 AM, Jonathan Langevin < jlange...@loomlearning.com> wrote: > Had a moment of clarity :-) > > * > So, telnet failed. Double-checked firewall rules, I had set up the > firewall to allow 192.168.0.0/24, but I needed it to be 192.168.1.0/24. > Fu

Re: Troubleshoot failure to add a node?

2011-11-09 Thread Jonathan Langevin
Had a moment of clarity :-) * So, telnet failed. Double-checked firewall rules, I had set up the firewall to allow 192.168.0.0/24, but I needed it to be 192.168.1.0/24. Fun typo. Checking further, even though I had not previously started Riak on these servers (at least, not to my knowledge?), ria

Re: Troubleshoot failure to add a node?

2011-11-09 Thread Rusty Klophaus
Hi Jonathan, Can you verify that the machines otherwise see each other? (Can you ping or ssh between the three machines?) Can you verify that you can use telnet to connect to the different open ports from each machine? If so, can you double check your usage of `riak-admin join NODENAME`? How doe

Troubleshoot failure to add a node?

2011-11-09 Thread Jonathan Langevin
I'm setting up a Riak cluster, I've configured 3 fresh nodes for this cluster. The node name per is unique (format of rdevX@192.168.1.Y), firewall is configured to allow traffic on 8097:8099, 6000:7999, 4369 tcp, 4369 udp * Each is configured with the same config aside from names & ips to bind to.

Nodes crashes on every map reduce query

2011-11-09 Thread Alexandre Ravey
Hi, Following the Riak fast track I'm stuck at the map reduce phase. I've tried the following with devrel 4 nodes on the same box and 4 distinct virtual boxes with riak rel, same thing appends. Cluster is working fine, can put and get data, everything explained in the fast track work as expected

Re: Severe problems when adding a new node

2011-11-09 Thread John Axel Eriksson
To illustrate ONE problem we have (another problem is that the data returned is sometimes garbage): john@app-001:~$ curl -I http://localhost:8098/luwak/a5bbc21f0bcfcea4d51c4eedbc9ee5596b4cc6f1 HTTP/1.1 200 OK Vary: Accept-Encoding Transfer-Encoding: chunked Server: MochiWeb/1.1 WebMachine/1.9.0

Riak search KV, encoding

2011-11-09 Thread sergey
Hi! I make some test Riak search KV: test data: Content Type - application/json; { "field1": "value1", "field2": "значение2", "поле3": "value3", "поле4": "значение4" } test querying(solr interface) and result: curl http://localhost:8098/solr/tests/select?q=field1:value1 0 2 on 0 field1:value1

Re: riak ubuntu 11 building problems

2011-11-09 Thread Ivan Trajkovic
@Andrew erlang builds fine every time, never had a problem with that. following the riak build sequence to the letter that you listed riak builds fine like last time but the same message comes up: // ~/D