11/12/2013: Using Accumulo Proxy From Python
Using Accumulo Proxy From Python
Start the Proxy Server
- Start an Accumulo cluster using https://github.com/medined/Accumulo_1_5_0_By_Vagrant
- vagrant ssh master
- cd /home/vagrant/accumulo_home/bin/accumulo/proxy
- edit proxy.properties so that instance=instance and zookeepers=affy-master:2181
- accumulo proxy -p proxy.properties
- cd /home/vagrant/software
- Download the thrift gz from http://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.1/thrift-0.9.1.tar.gz
- sudo apt-get install -y libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
- sudo apt-get install -y ruby-full ruby-dev librspec-ruby rake rubygems libdaemons-ruby libgemplugin-ruby mongrel
- sudo apt-get install -y python-dev python-twisted
- sudo apt-get install -y libbit-vector-perl
- tar xvfz thrift-0.9.1.tar.gz
- cd thrift-0.9.1
- ./configure
- make
- sudo make install
- thrift -version
- cd lib/py
- sudo python setup.py install
- cd /home/vagrant/software
- thrift --gen py $ACCUMULO_HOME/proxy/thrift/proxy.thrift
- cd /home/vagrant/accumulo_home/software/accumulo
- export PYTHONPATH=/home/vagrant/accumulo_home/gen-py
- python proxy/examples/python/TestClient.py
11/11/2013: Watching Accumulo Heal Itself
Watching Accumulo heal itself was exciting - prove of technology stuff.
1. Start a cluster with a master and two nodes using https://github.com/medined/Accumulo_1_5_0_By_Vagrant.
2. Visit http://affy-master:50095/ to verify that two tablet servers are running.
3. Enable auto-refresh.
4. Run 'vagrant destroy slave1'
5. Visit http://affy-master:50095/. In a minute or two you should see one Dead Tablet Server. You'll also see messages on the Recent Logs page.
6. Run 'vagrant up slave1'
7. Run 'vagrant ssh slave1 -c /vagrant/files/post_spinup_setup_ssh.sh' to re-establish SSH public keys.
8. Run 'vagrant ssh master -c "accumulo_home/bin/accumulo/bin/start-all.sh"' to re-start the Accumulo processes on slave1.
9. Visit http://affy-master:50095/. In a minute or two you should have both Tablet Servers alive and responding to requests.
2. Visit http://affy-master:50095/ to verify that two tablet servers are running.
3. Enable auto-refresh.
4. Run 'vagrant destroy slave1'
5. Visit http://affy-master:50095/. In a minute or two you should see one Dead Tablet Server. You'll also see messages on the Recent Logs page.
6. Run 'vagrant up slave1'
7. Run 'vagrant ssh slave1 -c /vagrant/files/post_spinup_setup_ssh.sh' to re-establish SSH public keys.
8. Run 'vagrant ssh master -c "accumulo_home/bin/accumulo/bin/start-all.sh"' to re-start the Accumulo processes on slave1.
9. Visit http://affy-master:50095/. In a minute or two you should have both Tablet Servers alive and responding to requests.