Hypertable configuration and installation

Source: Internet
Author: User
Tags hypertable

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.