tree: 36a6398675dd79ac956bb8d81c91d017aa023e88 [path history] [tgz]
  1. CMake/
  2. mock/
  3. sample/
  4. src/
  5. test/
  6. .gitignore
  7. bootstrap
  8. CMakeLists.txt
  9. Makefile

libyarn a c/c++ YARN client

1 Requirement

To build libyarn, the following libraries are needed.

cmake (2.8+)          
boost (tested on 1.53+)
google protobuf       

To run tests, the following library is needed.

gtest (tested on 1.7.0)         already integrated in the source code
gmock (tested on 1.7.0)         already integrated in the source code

To run code coverage test, the following tools are needed.

gcov (included in gcc distribution)
lcov (tested on 1.9)  

2 Configuration

Assume libyarn home directory is LIBYARN_HOME.

mkdir build
cd build

Environment variable CC and CXX can be used to setup the compiler. Script “bootstrap” is basically a wrapper of cmake command, user can use cmake directly to turn the configuration.

Run command “../bootstrap --help” for more configuration.

3 Build

Run command to build


To build concurrently, rum make with -j option.

make -j8

4 Test

To do unit test, run command

make unittest

To do function test, first start YARN, and create the function test configure file at LIBYARN_HOME/test/data/function-test.xml, an example can be found at LIBYARN_HOME/test/data/function-test.xml.example. And run command.

make functiontest

To show code coverage result, run command. Code coverage result can be found at BUILD_DIR/CodeCoverageReport/index.html

make ShowCoverage

5 Install

To install libyarn, run command

make install