- 
        Couldn't load subscription status. 
- Fork 56
Building Cruise Control
Note: This package uses Log4j. Please see details here, for the updates on security vulnerabilities.
The instructions provided below specify the steps to build Cruise Control 2.5.89 on Linux on IBM Z for following distributions:
- RHEL (7.8, 7.9, 8.2, 8.4, 8.5)
- SLES (12 SP5, 15 SP3)
- Ubuntu (18.04, 20.04, 21.10)
General Notes:
- 
When following the steps below please use a standard permission user unless otherwise specified. 
- 
A directory /<source_root>/will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.
If you want to build Cruise Control using manual steps, go to STEP 2.
Use the following commands to build Cruise Control using the build script. Please make sure you have wget installed.
wget -q https://raw.githubusercontent.com/linux-on-ibm-z/scripts/master/CruiseControl/2.5.89/build_cruise_control.sh
# Build Cruise Control
bash build_cruise_control.sh [Provide -j (Temurin11|Semeru11|OpenJDK11) option for building with specific java ]If the build completes successfully, go to STEP 6 for test execution. In case of error, check logs for more details or go to STEP 2 to follow manual build steps.
export SOURCE_ROOT=/<source_root>/- 
RHEL (7.8, 7.9, 8.2, 8.4, 8.5) sudo yum install -y wget tar git curl gzip procps-ng 
- 
SLES (12 SP5, 15 SP3) sudo zypper install -y wget tar git curl gzip gawk 
- 
Ubuntu (18.04, 20.04, 21.10) sudo apt-get update sudo apt-get install -y wget tar git curl gzip 
Note: If you are building Apache Kafka from source, it is recommended to choose the same JDK variant for building Cruise Control.
- 
With IBM Semeru Runtime (previously known as AdoptOpenJDK openj9). - Download and install IBM Semeru Runtime (Java 11) from here.
 
- 
With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot) - Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
 
- 
With OpenJDK 11 - RHEL (7.8, 7.9, 8.2, 8.4, 8.5)
sudo yum install -y java-11-openjdk java-11-openjdk-devel 
- SLES (12 SP5, 15 SP3)
sudo zypper install -y java-11-openjdk java-11-openjdk-devel 
- Ubuntu (18.04, 20.04, 21.10)
sudo apt-get install -y openjdk-11-jdk 
 
- RHEL (7.8, 7.9, 8.2, 8.4, 8.5)
Note: At the time of creation of these build instructions, Cruise Control was verified with Semeru and Temurin runtime version 11.0.14.1 (build 11.0.14.1+1). If you are building Apache Kafka from source, it is recommended to choose the same JDK variant for building Cruise Control.
export JAVA_HOME=<path to java>
export PATH=$JAVA_HOME/bin:$PATHcd $SOURCE_ROOT
git clone https://github.com/linkedin/cruise-control.git
cd cruise-control
git checkout 2.5.89
./gradlew jarcd $SOURCE_ROOT/cruise-control
./gradlew testFollow official quickstart guide given here to verify the installation. The Cruise Control server requires connection to one or more Apache Kafka servers, instructions for building Apache Kafka 3.1.0 can be found here
Notes:
- The default capacity configuration file (config/capacityJBOD.json) assumes that at least two Kafka brokers should be present, so you might need to modify the Kafka server configuration accordingly. Please check the wiki page for more configuration options.
The information provided in this article is accurate at the time of writing, but on-going development in the open-source projects involved may make the information incorrect or obsolete. Please open issue or contact us on IBM Z Community if you have any questions or feedback.