1. Install the dependency code:
1. berkeleydb 4.6 +: libdb4.6 ++-Dev
2. Boost version 1.34.1 +,
And libboost-filesystem-Dev, libboost-iostreams-Dev, libboost-Program-options-Dev,
Libboost-Python-Dev, libboost-serialization-Dev
3, expat Dev Lib, that is: libexpat1-dev
4, Readline Dev Lib, that is: libreadline5-dev
5, ncurses Dev Lib, that is: libncurses5-dev
Optional: tcmalloc (http://code.google.com/p/google-perftools)
The above only lists the code that is required after KFS is installed. For more information, see readme in hypertable.
2. Install hypertable (KFS-based installation ):
1. metaserver and chunkserver running KFS.
2. decompress the hypertable code. If the decompressed file is ~ /Hpertable-version /.
Change ~ /Hpertable-version/cmakelists.txt,
Change find_package (KFS) to find_package (KFS required ).
Change ~ /Hpertable-version/cmake/findkfs. cmake,
Find_path (kfs_include_dir KFS/kfsclient. H,
Set (kfs_names kfsclient) in paths,
Set (kfs_names kfsio) in paths
Paths in SET (kfs_names kfscommon,
Add the corresponding KFS path (both in ~ /KFS-version/build ).
Hadoop is installed in hpertable by default. In this way, the executable file kosmosbroker can be compiled.
3. Configuration ~ Hypertable. cfg in/hpertable-version/CONF.
4 ~ Create the directory build/hypertable under/hpertable-version.
Cd ~ /Hpertable-version/build/hypertable
Cmake ~ /Hpertable-version
Make
Sudo make install
Hypertable is installed under/opt/hpertable by default.
Cmake-dcmake_install_prefix = <dir>-dcmake_build_type = release ~ /Hpertable-version
5. generate an API document (optional ). To generate a file, install doxygen and graphviz.
Cd ~ /Hpertable-version/build/hypertable
Make Doc
The document starts from :~ /Hpertable-version/build/hypertable/doc/html/index.html
3. Start hypertable
Run start-all-servers.sh under/opt/hypertable/version/bin.
Start four parts: dfsbroker, hyperspace, master, and rangeserver.
Start client: Run hypertable
Shut down server: Run stop-servers.sh
4. Test hypertable
After all services are started, decompress words.gz in the source code testand put the obtained words under/usr/share/dict,
Then:
Cd ~ /Hpertable-version/build/hypertable
Make Test
There are 27 items in total ~ /Hpertable-version/build/hypertable/testing/Temporary
Logs.