Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: Update installation.md & add an exit code in start_zk #324

Merged
merged 4 commits into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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