To really understand data management solutions like Hypertable (http://www.hypertable.org/), I need to install and use it. So to start out, I decided to just get a single node installed using the local filesystem.
I use Debian Lenny, which is a Linux distribution and even with a bunch of libraries installed, I still had to do some dancing.
Getting Started
First step, read the README, no really, there are bunch of dependencies. I felt like I was installing GnuCash before apt/yum/yast. For the Debian distribution you need to apt-get the following:
apt-get install g++ make cmake libdb4.6++-dev libboost-*-dev liblog4cpp5-dev expat-devel libreadline5-dev zlib1g-dev libevent-dev
Installing Hyperic-Sigar
I followed the instructions in the README without any issues.
Installing Thrift
Several dependencies I ran into are not in the README, but these are thrift dependencies so I guess it’s ok. The bootstrap.sh script errored, stating it was looking for the autoscan command. Then I ran into several other errors when Thrift tried to compile. So I put the full list of the remaining dependencies below:
apt-get install autoconf libtool byacc flex ruby-dev
Compiling Hypertable
The final and last step, compile! Well… sort of. I downloaded hypertable from the website and for some odd reason (could be me), I ran into an issue trying to run cmake against the source. In the README they mention grabbing the source from a git repository. So, I grabbed the source from the repository and bam!, it compiled. Remember to read the README, setup the build directory and src directory. I don’t think it matters where they are, just make sure you have them in separate directories.
I hope this helps someone and if anyone has any changes or comments I would like to hear them.
Next step, put Hypertable to work.
Thanks Chris. For fedora, to get the prerequisites I did:
yum install libtool byacc flex ruby-devel
Also, note that if you’re trying to script this and are using the “bootstrap.sh” method, make sure you cd into the directory that you’ve untarred thrift into – you can’t just call the full path to the bootstrap.sh command (or afterward, the configure or make install, maybe this is obvious, but it is something I learned after trial and error!)