Skip to content

Instantly share code, notes, and snippets.

View adamhunter's full-sized avatar

Adam Hunter adamhunter

View GitHub Profile
test: &test
bin_dir: /usr/local/riak/bin/
temp_dir: /Users/username/Projects/project/tmp/riaktest
cucumber:
<<: *test
@adamhunter
adamhunter / gist:704010
Created November 17, 2010 20:21
use the full path stupid
{"init terminating in do_boot",{{badmatch,{error,{file_error,"riak11172010.bak",enoent}}},[{riak_kv_backup,restore,2},{erl_eval,do_apply,5},{init,start_it,1},{init,start_em,1}]}}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Colors</key>
<dict>
<key>Background</key>
<string>0.195 0.195 0.195</string>
<key>InsertionPoint</key>
<string>0.902 0.902 0.902</string>
bundle_commands=( spec rspec cucumber cap watchr rails rackup )
function run_bundler_cmd () {
if [ -e ./Gemfile ]; then
echo "bundle exec $@"
bundle exec $@
else
echo "$@"
$@
fi
adamhunter # i have three nodes in a cluster, how do i remove a node from a cluster?
seancribbs # adamhunter: I had one hang on me earlier, thought it was just Ruby
jlee # adamhunter: are you trying to simulate a failure, or scale the cluster down to two node permanently?
adamhunter # i am trying to figure out if the other two nodes are messing up the first
seancribbs # adamhunter: 0.9?
adamhunter # yeah
seancribbs # use riak_connect:remove_from_cluster/1 in the console, then wait for the handoff to finish
Damm joined #riak
Apr 22 14:52
adamhunter # i clearly must have done something wrong when i installed :) it doesn't work on any of my three nodes, tks
groupadd mysql
useradd -g mysql mysql
gunzip < mysql-VERSION.tar.gz | tar -xvf -
cd mysql-VERSION
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \
-fno-exceptions -fno-rtti" ./configure \
--prefix=/usr/local/mysql-VERSION --enable-assembler \
--with-mysqld-ldflags=-all-static --with-plugins=innobase
make
#! /bin/bash
### BEGIN INIT INFO
# Provides: riak
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
describe Ripple::Document::Finders do
include Fixtures::Finders # Box is defined in this module
before :each do
@http = mock("HTTP Backend")
@client = Ripple.client
@client.stub!(:http).and_return(@http)
@bucket = Riak::Bucket.new(@client, "boxes")
@client.stub!(:[]).and_return(@bucket)
# mongo
def proxy_class
return @proxy_class if defined?(@proxy_class)
@proxy_class =
if many?
if klass.embeddable?
polymorphic? ? ManyEmbeddedPolymorphicProxy : ManyEmbeddedProxy
else
if polymorphic?
create this file in /Library/LaunchDaemons/org.basho.riak.plist
run: sudo launchctl load /Library/LaunchDaemons/org.basho.riak.plist
riak ping to verify