CONTENTS
=== HOW TO BUILD ===
Install CMake (http://www.cmake.org/)
Make sure Java 1.5 or later and the ant build tool is installed on your machine.
Install the following libraries:
HIGHLY RECOMMENDED (but non required):
NOTE: If tcmalloc is available on your system, install it. Hypertable is very malloc intensive and tcmalloc provides a huge performance improvement.
Checkout the source code.
mkdir ~/src cd ~/src git clone git://72.51.43.91/pub/repos/hypertable.git ( or if you prefer, svn checkout http://hypertable.googlecode.com/svn/trunk hypertable )
Build hypertable.jar
cd ~/src/hypertable ant jar
Create an install directory
mkdir ~/hypertable
Create a build directory
mkdir -p ~/build/hypertable
Configure the build.
cd ~/build/hypertable cmake -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_INSTALL_PREFIX= ~/src/hypertable
Build the software.
make
make install DESTDIR=
=== HOW TO RUN REGRESSION TESTS ===
Make sure software is built and installed according to 'HOW TO BUILD'
NOTE: These instructions assume the installation directory is ~/hypertable
Make sure you have extended attributes enabled on the partition that holds the installation (e.g. ~/hypertable). To do that, you need to add the user_xattr property to the relevant file systems in your /etc/fstab file. For example:
/dev/hda3 /home ext3 defaults,user_xattr 1 2
You can then remount the affected partitions as follows:
$ mount -o remount /home
Stop the servers
* Must be performed prior to running the regression tests each time
cd ~/hypertable ./test/stop-servers.sh
Start the servers. The following example illustrates the use of the 'local' DFS broker, but can be changed to use any DFS broker (e.g. hadoop, kosmos, etc.) by replacing the 'local' keyword with the name of the broker you want to use.
* Must be performed prior to running the regression tests each time
cd ~/hypertable ./test/start-servers.sh local
[ Expected output ... ] Successfully started DFSBroker (local) Successfully started Hyperspace Successfully started Hypertable.Master Successfully started Hypertable.RangeServer
Run the regression tests
cd ~/build/hypertable make test
=== HOW TO BUILD SOURCE CODE DOCUMENTATION TREE (Doxygen) ===
Install the following libraries:
If you have doxygen installed on your system, then CMake should detect this and add a 'doc' target to the make file. Building the source code documentation tree is just a matter of running the following commands:
cd ~/build/hypertable make doc
The documentation tree will get generated under ~/build/hypertable/doc. To view the HTML docs, load the following file into a web browser:
~/build/hypertable/doc/html/index.html