Created
July 11, 2012 18:11
-
-
Save drewkerrigan/3092101 to your computer and use it in GitHub Desktop.
Azure Riak Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps to Setup riak / erlang on Ubuntu (Azure): | |
# Prerequisites | |
sudo apt-get install git make build-essential libncurses5-dev openssl libssl-dev | |
# Installing Erlang | |
wget http://erlang.org/download/otp_src_R14B03.tar.gz | |
tar zxvf otp_src_R14B03.tar.gz | |
cd otp_src_R14B03 | |
./configure && make && sudo make install | |
cd .. | |
# Installing Riak | |
curl -O http://downloads.basho.com/riak/CURRENT/riak-1.1.4.tar.gz | |
tar zxvf riak-1.1.4.tar.gz | |
cd riak-1.1.4 | |
make rel | |
cd .. | |
# Configuring / running | |
# on node 1 | |
ifconfig #take note of a line similar to "inet addr:10.119.88.146", known as <IP_ONE> from now on | |
# foreach node 1 to <N> | |
cd riak-1.1.4/rel/riak | |
ifconfig #take note of a line similar to "inet addr:10.119.88.146", known as <IP_N> from now on | |
vi etc/vm.args # Change "-name [email protected]" to "-name riak<N>@<IP_N>" | |
vi etc/app.config # Change "{http, [ {"127.0.0.1", 8098 } ]}," to "{http, [ {"<IP_N>", 8098 } ]}," | |
./bin/riak start | |
# foreach node 2 to <N> | |
cd riak-1.1.4/rel/riak | |
./bin/riak-admin join riak1@<IP_ONE> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment