Skip to content

Installation

Siran Yang edited this page Jun 4, 2019 · 1 revision

Installation

Euler is tested in Ubuntu 14.04 and CentOS 7. As an example, we guide users to install Euler system in Ubuntu.

System Requirements

The compile and run require libhdfs.so and libjvm.so in $LD_LIBRARY_PATH.

  • Update software source cache
apt-get update
  • Install JAVA and HDFS client environment
apt-get install -y curl default-jre-headless

curl -O https://mirrors.aliyun.com/apache/hadoop/common/hadoop-2.9.2/hadoop-2.9.2.tar.gz
tar xf hadoop-2.9.2.tar.gz -C /usr/local

export JAVA_HOME=/usr/lib/jvm/default-java
export LD_LIBRARY_PATH=$JAVA_HOME/lib/server:$LD_LIBRARY_PATH
export HADOOP_HOME=/usr/local/hadoop-2.9.2
export LIBRARY_PATH=$HADOOP_HOME/lib/native:$LIBRARY_PATH
export LD_LIBRARY_PATH=$HADOOP_HOME/lib/native:$LD_LIBRARY_PATH
export CLASSPATH=$($HADOOP_HOME/bin/hadoop classpath --glob):$CLASSPATH

Install Euler

Euler currently only supports Python 2. Users can choose to install Euler from PyPI or source code:

Using pip

  • install Euler
apt-get install -y python python-pip
pip install euler-gl

The current wheel on PyPI is based on TensorFlow 1.12 and is only binary-compatible with TensorFlow 1.12. Recompiling is required if using other versions of TensorFlow.

From source

  • Get the source code
apt-get install -y git
git clone --recursive https://github.com/alibaba/euler.git
  • Install the TensorFlow environment
apt-get install -y python python-pip
pip install tensorflow
  • Install dependency packges
apt-get install -y ant autoconf build-essential cmake golang-go python-setuptools
  • Modify compilation options (optional)

If you need to support hdfs data loading, you need to modify the CMakeLists.txt in the project root directory. Modify option(USE_HDFS "Option for using hdfs" OFF) as option(USE_HDFS "Option for using hdfs" ON)

  • Compile Euler
cd euler # Euler root directory

(cd third_party/zookeeper; ant compile_jute)
mkdir -p build && cd build
cmake ..
make -j 32
cd ..
  • Install Euler to the global directory or add the compiled Euler project to the environment variable.
python tools/pip/setup.py install

or

export PYTHONPATH="$PYTHONPATH:/path/to/euler" # Euler root directory

Build Docker Mirror

Euler provides a standard mirror packaging process based on Ubuntu 18.04.

git clone --recursive https://github.com/alibaba/euler.git
cd euler
docker build --net=host -f tools/docker/Dockerfile .
Clone this wiki locally