Skip to content

Commit

Permalink
*: Update installation.md & add an exit code in start_zk (#324)
Browse files Browse the repository at this point in the history
* dependencies fix

* exit 1 if start_zk failed
  • Loading branch information
HuangWei authored and neverchanje committed Jun 14, 2019
1 parent 6dd5bee commit 0a7298b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
26 changes: 22 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Pegasus can be deployed in standalone mode which runs all the pegasus jobs as di

Please notice that Pegasus can not be built until the following packages meet the version requirements:

* Compiler: the gcc version must >= 4.8. If you use other compilers, please make sure that C++14 is supported.
* Compiler: the gcc version must >= 4.8 && < 8. If you use other compilers, please make sure that C++14 is supported.
* CMake: must >= 2.8.12
* boost: must >= 1.58

Expand All @@ -32,12 +32,23 @@ Please notice that Pegasus can not be built until the following packages meet th
For Ubuntu:

```
sudo apt-get install build-essential cmake libboost-all-dev libaio-dev libsnappy-dev libbz2-dev libgflags-dev patch
sudo apt-get install build-essential cmake libboost-all-dev libaio-dev libsnappy-dev libbz2-dev libtool libgflags-dev zlib1g zlib1g.dev patch unzip automake libssl-dev liblz4-dev libzstd-dev
```
To start onebox:
```
sudo apt-get install default-jre netcat
```

For CentOS:
```
yum -y install cmake boost-devel libaio-devel snappy-devel bzip2-devel patch
yum -y install cmake boost-devel libaio-devel snappy-devel bzip2-devel lz4-devel automake libtool patch unzip openssl-devel python-devel libzstd-devel
```
Zstd may not available in the default EPEL. To install the EPEL repository on CentOS-7/6, simply type:
```
yum install epel-release
```
To start onebox:
```
yum install java-1.8.0-openjdk nmap-ncat.x86_64
```

Please make sure you install the proper version of GCC, CMake and Boost.
Expand Down Expand Up @@ -69,6 +80,13 @@ Generally, the build process of Pegasus consists of 4 parts:

**Please make sure the thirdparty are successfully downloaded and built before subsequent parts**.

#### Common Build Problems
* fatal error: <some_thirdparty_header_files>.h: No such file or directory

This means that Third Party Building did not complete correctly and did not generate the header files.

Rerun `./run.sh build` with `--clear_thirdparty`.

## Run in standalone mode

You can play with pegasus with a **onebox** cluster:
Expand Down
5 changes: 5 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,11 @@ function run_start_zk()
esac
shift
done

INSTALL_DIR="$INSTALL_DIR" PORT="$PORT" ./scripts/start_zk.sh
if [ $? -ne 0 ]; then
exit 1
fi
}

#####################
Expand Down Expand Up @@ -580,6 +584,7 @@ function run_start_onebox()
exit 1
fi
ln -s -f ${SERVER_PATH}/pegasus_server

run_start_zk

if [ $USE_PRODUCT_CONFIG == "true" ]; then
Expand Down

0 comments on commit 0a7298b

Please sign in to comment.