Home

Awesome

Apache Bigtop Docker Environment

Ready to use Docker environment for Apache Bigtop. Based on CentOS and equipped with all necessary tools and libraries. To use the image follow the instructions bellow or read the How-To Guide.

1. Installation

2. How to Build Bigtop RPMs

Created RPMs are stored into /home/bigtop/bigtop/build/**/rpm/RPMS/**/*.rpm folder.

To build an RPM for a single project use ./gradlew <project name>-rpm. For example to build Spark RPM do:

# Build Spark RPM
cd ~/bigtop
./gradlew spark-rpm

To build all Bigtop RPMS use ./gradlew rpm:

# Build all RPMs
cd ~/bigtop
./gradlew rpm

To list all gradle tasks run cd ~/bigtop && ./gradlew tasks.

To change the version of the target Hadoop project editing the bigtop.mk (up to Bigtop 1.0.0) or the bigtop.bom for newer (eg. > 1.0.0) versions. For example to change the Spark version from to the latest 1.6.0:

    SPARK_BASE_VERSION=1.6.0
    SPARK_PKG_VERSION=1.6.0
    'spark' {
        name    = 'spark'
        pkg     = 'spark-core'
        relNotes = 'Apache Spark'
        version { base = '1.6.0'; pkg = base; release = 1 }
        .....
    }

3. Download built RPMs

Copy the RPMs from the local folder /home/bigtop/bigtop/build/**/rpm/RPMS/**/*.rpm into the shared with the host folder /rpm

sudo cp /home/bigtop/bigtop/build/**/rpm/RPMS/**/*.rpm /rmp

In turn you can copy from the Docker Host into local folder:

scp -rp docker@<Docker Host IP>:/rpm/*.rpm <your local folder>

(default docer password: tcuser)