Skip to content
Nils Kübler edited this page Jul 9, 2013 · 1 revision

Setting up development machines with Vagrant

Hannibal supports different versions of HBase. To test Hannibal with those different versions, we use Vagrant to easily setup virtual HBase instances where we can test Hannibal on.

To install Vagrant, please follow the official getting started guide.

When you have Vagrant installed you can create and launch the virutal machine with HBase started:

vagrant up hbase090 #for hbase 0.90
vagrant up hbase092 #for hbase 0.92
vagrant up hbase094 #for hbase 0.94

The HBase-Master interface is then be available under

http://192.168.80.90:60010/master-status #for hbase 0.90
http://192.168.80.92:60010/master-status #for hbase 0.92
http://192.168.80.94:60010/master-status #for hbase 0.94

To ssh on the machine do a

vagrant ssh hbase090 #for hbase 0.90
vagrant ssh hbase092 #for hbase 0.92
vagrant ssh hbase094 #for hbase 0.94

When bringing up the vagrant machine there is also a script started which continuously puts random testdata on hbase. The script therefor creates 3 tables with 10 regions each. The script can be controlled via the init script

/etc/init.d/hbase-testdata-generator status

The hannibal source itself is available under /vagrant

cd /vagrant
ls

Before running hannibal ensure that there is no custom configuration made in conf/hbase-site.xml

cp conf/hbase-site.template.xml conf/hbase-site.xml

Finally, let's build and run the project

./sbt "~ run"

Once ready, Hannibal can be accessed under:

http://192.168.80.90:9000 #for hbase 0.90
http://192.168.80.92:9000 #for hbase 0.92
http://192.168.80.94:9000 #for hbase 0.94

To stop the Virtual Machine do a

vagrant halt 

githalytics.com alpha

Clone this wiki locally