2.Install on Linux/macOS

2.2.1 Overview

This page explains how to install EFAK dependencies, download and install EFAK, get the service up and running on your Linux or macOS system, and the installation package details.

2.2.2 Download and install

You can download the EFAK source code on GitHub to compile and install by yourself, or by downloading a binary .tar.gz file.

We recommend using the official compiled binary installation package.

2.2.3 Install JDK

If there is a JDK environment on the Linux server, this step can be ignored, and the installation of the next steps. If there is no JDK, first to the Oracle official website to download JDK.

Extract the binary installation package to the specified directory:

cd /usr/java
tar -zxvf jdk-xxxx.tar.gz
mv jdk-xxxx jdk1.8
vi /etc/profile
export JAVA_HOME=/usr/java/jdk1.8
export PATH=$PATH:$JAVA_HOME/bin

Then, we use the source /etc/profile to enable the configuration to take effect immediately.

If the authority is insufficient, please use the sudo command.

Finally, we input java -version, according to the following information:

2.2.4 Extract EFAK

Here we extract to /data/soft/new directory and extract:

If you have installed the version before, delete the modified version, and rename the current version, as shown below:

Then, configure EFAK profile

Finally, we use the source /etc/profile to enable the configuration to take effect immediately.

2.2.5 Configure EFAK system file

Configure EFAK according to the actual situation of its own Kafka cluster, For example, zookeeper address, version type of Kafka cluster (zk for low version, kafka for high version), Kafka cluster with security authentication enabled etc.

2.2.6 Start the EFAK server (Standalone)

In the $KE_HOME/bin directory, there is a ke.sh script file. Execute the start command as follows:

After that, when the EFAK server is restarted or stopped, execute the following command:

As shown in the following figure:

efak startup standalone img

2.2.7 Start the EFAK server (Distributed)

In the $KE_HOME/bin directory, there is a ke.sh script file. Execute the start command as follows:

After that, when the EFAK server is restarted or stopped, execute the following command:

As shown in the following figure:

efak startup distributed img

Last updated