My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
HowToInstall  
See the README in the distribution for details
Updated Dec 15, 2009 by sjha...@gmail.com

HOW TO BUILD

1. Install CMake (http://www.cmake.org/)

2. Install the following libraries (you may already have them installed. See README for details):

RECOMMENDED (but not required):

3. Checkout the source code.

    mkdir -p <your_source_dir>
    cd <your_source_dir>
    git clone git://scm.hypertable.org/pub/repos/hypertable.git

4. Create an install directory

    mkdir -p <your_install_dir>

5. Create a build directory

    mkdir -p <your_build_dir>

6. Configure the build.

    cd <your_build_dir>
    cmake <your_source_dir>
To edit the build options interactively:
    ccmake <your_source_dir>

7. Build the software.

    make (or make -j<number_of_cpu_or_cores_plus_1> for faster compile)
    make install

HOW TO RUN REGRESSION TESTS

1. Make sure software is built and installed according to 'HOW TO BUILD'

2. Restart servers and re-create test tables

WARNING: THIS STEP MUST BE PERFORMED PRIOR TO RUNNING THE TEST

  cd <your_install_dir>/<version>
  bin/kill-servers.sh
  bin/start-all-servers.sh local

4. Run the regression tests

  cd ~/build/hypertable
  make test

HOW TO BUILD SOURCE CODE DOCUMENTATION TREE (Doxygen)

1. Install the following libraries:

2. 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
Comment by think...@gmail.com, May 5, 2008

I followed "How to build" and installed hypertable in my computer,but when I followed HOW TO RUN REGRESSION TESTS , the program failed at step 3(executed the script of "start-all-servers.sh local") error info:

start-range-server.sh: 108: /home/hy/work/hypertable/hypertable-0.9.0.4-alpha/bin/serverup: not found
[: 136: ==: unexpected operator [: 136: ==: unexpected operator [: 136: ==: unexpected operator

There is no file of serverup in the /hypertable/bin,

ls ./bin :
start-master.sh
start-all-servers.sh jrun
sum_lines.sh start-range-server.sh kill-servers.sh slaves.sh

Where is serverup?

Comment by project member vic...@gmail.com, May 5, 2008

Looks like you didn't run it in the install directory after make install.

Comment by think...@gmail.com, May 8, 2008

Make Hypertable was not a easy thing for me : )

My OS is Ubuntu 7.10(GNU/Linux 2.6.22-14-generic).

Make Process solution <10% --> compile boost(source dowloaded from www.boost.org) 57% --> Installed Boost related Package with Synaptic Package Manager

boost-build
libboost-date-time1.34.1
libboost-date-time-dev
libboost-dbg libboost-dev libboost-filesystem1.34.1 libboost-filesystem-dev libboost-graph1.34.1 libboost-graph-dev libboost-regex1.34.1 libboost-regex-dev libboost-serialization1.34 libboost-serialization-dev
libboost-signals1.34.1
libboost-signals-dev
libboost-test1.34.1
libboost-test-dev libboost-thread1.34.1 libboost-thread-dev libboost-wave1.34.1 libboost-wave-dev
72% --> Installed zlib Package with Synaptic Package Manager
zlib1g
zlib1g-dbg
zlib1g-dev zlibc
82% --> Installed readline Package with Synaptic Package Manager
libreadline5
libreadline5-dev libreadline-common
100% --> My panic was released!

Comment by project member vic...@gmail.com, May 8, 2008

Thanks for the note! Ubuntu 7.10 is actually one of the easy one :) You just need to type one line: sudo apt-get install libboost-thread-dev libboost-iostreams-dev libboost-program-options-dev libreadline5-dev and it'll get all the dependencies it needs.

We intend to make rpm/deb etc files available when hypertable is in beta, so people can simply do sudo yum install hypertable or sudo apt-get install hypertable.

Contributions to packaging for specific platforms are always appreciated.

Comment by rashmi.m...@gmail.com, May 25, 2008

As I was following the instructions above to build hypertable I encountered the following problem

~/hypertable/build$ make 0% Building CXX object src/cc/Common/CMakeFiles/HyperCommon?.dir/code_search_and_replace.o In file included from /home/nmotgi/hypertable/src/hypertable/src/cc/Common/code_search_and_replace.cc:40: /home/nmotgi/hypertable/src/hypertable/src/cc/Common/FileUtils?.h:34:24: error: attr/xattr.h: No such file or directory make2?: [src/cc/Common/CMakeFiles/HyperCommon?.dir/code_search_and_replace.o] Error 1 make1?: [src/cc/Common/CMakeFiles/HyperCommon?.dir/all] Error 2 make: all? Error 2

Package libattr1-dev needs to be installed on Ubuntu (Gutsy)

Comment by kurogane...@gmail.com, Jul 23, 2008

Note about building log4cpp-1.0: I found that I had to add "#include <memory>" in src/BasicLayout?.cpp before I could build the source. Error before this is "BasicLayout?.cpp:41: error: expected constructor, destructor, or type conversion before '<' token"

(Environment was Fedora 9; glibc 2.8; GNU make 3.81; autoconf 2.6.1)

Comment by provoost...@gmail.com, Aug 2, 2008

If you do: bin/start-all-servers.sh local And get this: Successfully started DFSBroker (hadoop) Waiting for Hyperspace to come up ... Waiting for Hyperspace to come up ... Waiting for Hyperspace to come up ... ERROR: Hyperspace did not come up Error starting Hyperspace

Then you probably need to do something like this: echo '/opt/hypertable/0.9.0.7/lib' | sudo tee /etc/ld.so.conf.d/hypertable ldconfig

It is not mentioned on this page, but in the README they mention "shared library install", which if I understand it correctly is the case when you do everything the default way in e.g. Ubuntu.

Comment by joshua.c...@gmail.com, Aug 9, 2008

Zlib development installation (yum install zlib-devel) on Fedora 8 got past an error in cmake.

Comment by ivascucr...@gmail.com, Aug 10, 2008

On CentOS 5.1 yum does not install the ncurses dev libs by default. If you miss this step, make will throw errors complaining about readline dependencies.

Comment by hbjerr...@gmail.com, Nov 17, 2008

i make the project ,but when i run the "start-all-servers.sh" ,it shows that :Waiting for Hypertable.Master to come up ...?

but "ps -ef" have the process , then log saids "1226797562 INFO Hypertable.RangeServer? : (/root/hypertable/hypertable-0.9.0.12-alpha/src/cc/Hypertable/RangeServer?/ConnectionHandler?.cc:177) Event: type=DISCONNECT "COMM connect error" from=209.124.51.134:38050 "

how to fix it ?


Sign in to add a comment
Powered by Google Project Hosting