1 / 7

ZHT Hands-on tutorial

ZHT Hands-on tutorial. How to install, configure and run ZHT on a multi-nodes cluster. Linux: kernel version 2.6.0 or later How to check: uname –a GCC Version 4.5.0 or later Google Protocol Buffers: Version 2.4.1 https:// protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz

taylor
Download Presentation

ZHT Hands-on tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ZHT Hands-on tutorial How to install, configure and run ZHT on a multi-nodes cluster

  2. Linux: • kernel version 2.6.0 or later • How to check: uname –a • GCC • Version 4.5.0 or later • Google Protocol Buffers: • Version 2.4.1 https://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz • Latest version not work! • Google Protocol Buffers C-binding 0.15 or later • Git Requirements and Dependencies

  3. tar -zxvf protobuf-2.4.1.tar.gz • cd protobuf-2.4.1 • ./configure --prefix=/to_where_to_install • make • make install Install Google Protocol Buffers

  4. wgethttps://protobuf-c.googlecode.com/files/protobuf-c-0.15.tar.gzwgethttps://protobuf-c.googlecode.com/files/protobuf-c-0.15.tar.gz • tar -zxvfprotobuf-c-0.15.tar.gz • Add environment variables to your .bashrc file: • export PATH= $PATH:/to_where_to_install/bin • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :/to_where_to_install/lib • source ~/.bashrc • ./configure --prefix=/home/tony/Installed/built CXXFLAGS=-I/to_where_to_install/include LDFLAGS=-L/to_where_to_install/lib • make • make install Install Google Protocol Buffers C-binding

  5. https://bitbucket.org/xiaobingo/iit.datasys.zht-mpi.git • In src/ directory: • make Download and Install ZHT

  6. https://bitbucket.org/xiaobingo/iit.datasys.zht-mpi • See details in the README • Server side: • ./zhtserver -z zht.conf -n neighbor.conf • Client side: • ./zht_ben -z zht.conf -n neighbor.conf -o 1000 Run a simple benchmark

  7. ZHTClient(const string &zhtConf, const string &neighborConf); • intinit(const string &zhtConf, const string &neighborConf); • intlookup(const string &key, string &result); • intremove(const string &key); • intinsert(const string &key, const string &val); • intappend(const string &key, const string &val); • intcompare_swap(const string &key, const string &seen_val, conststring &new_val, string &result); • intteardown(); • See cpp_zhtclient_test.cpp for an example of using ZHT client. ZHT client API

More Related