Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Before going to build stage, target OS/arch combination docker images, bigtop/puppet and  and bigtop/slaves should  should be created.

Build

Brief

Bigtop uses gradle to build and package components.

Build script for each components can be found at <BIGTOP_SRC_TOP>/bigtop-packages/src/common/<package>/do-component-build.

Debian packaging configurations and scripts are located at <BIGTOPat <BIGTOP_SRC_TOP>/bigtop-packages/src/deb/<component>.

RPM packaging configurations and scripts are located at <BIGTOPat <BIGTOP_SRC_TOP>/bigtop-packages/src/rpm/<component>.

There are several operations taks for a certain component: clean, pkg, deb, rpm.

  • clean: clean up build 
  • pkg: create tarball package
  • deb: create deb package
  • rpm: create rpm package

Here is example:

Code Block
languagebash
./gradlew hadoop-clean                # clean existing hadoop build outputs
./gradlew hadoop-pkg                  # build and create hadoop release tarball
./gradlew hadoop-deb                  # build and create hadoop release deb package. Note: pkg will also be created
./gradlew hadoop-rpm                  # build and create hadoop release rpm package. Note: pkg will also be created

Following cmd can be used to get detail gradle tasks info:

Code Block
languagebash
./gradlew tasks