GithubHelp home page GithubHelp logo

skonto / spark-build Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mesosphere/spark-build

0.0 2.0 0.0 3.71 MB

Used to build the mesosphere/spark docker image and the DC/OS Spark package

Makefile 3.13% Shell 10.66% Python 55.94% HTML 2.99% R 0.74% Scala 10.36% Go 16.18%

spark-build's Introduction

Spark DC/OS Package

This repo lets you configure, build, and test a new Spark DC/OS package. It is the source for the Spark package in universe. If you wish to modify that package, you should do so here, and generate a new package as described below.

Configure

edit manifest.json.

Makefile Targets

Build environment

make docker-build

This will setup a docker image that can be used to build the spark distribution, the stub universe, and run the integration tests.

This image will not be invoked by any tests explicitly and is not required. Rather, it provides a consistent and portable environment for make to be run in.

Spark Distribution

A spark distribution is required to create a spark framework package. These distributions (packaged as tarballs) are bundled with a Docker image built in the docker-dist target below. There are three flavors of distribution that can be made:

make manifest-dist

This command will simply retrieve the spark dist URI set in the manifest. SPARK_DIST_URI can be overridden to pull an arbitrary URI

The following two methods builds from source. By default the mesosphere/spark repository will be used but one can use the SPARK_DIR override to use any arbitrary spark source directory. Additionally, HADOOP_VERSION may be provided as an override as only the default in the manifest is built.

make prod-dist

This will build Spark from source using the slow, but production-grade ./dev/make-distribution.sh script in the spark repo.

make dev-dist

This will build Spark from source using a fast sbt compile. This is the most common way to build a Spark package during development.

Package

The above distribution needs to be bundled into a Docker image and paried with a CLI in order to complete the package.

make cli

Triggers the build for the binary go CLI

make docker-login
make docker-dist

This command will build and push the Docker image that will be used by the package template. Use DOCKER_DIST_IMAGE override to set an alternative dockerhub repo. Addtionally, the tag for this container will be the git SHA unless overridden with GIT_COMMIT. Note: the login is a separate command to allow using the current Docker user session without providing parameters

make stub-universe-url

This will build a "stub" universe (i.e. singleton repo) containing a Spark package and upload it. The aforementioned build targets of docker-dist and cli are required by this step and will be built according to defaults if not explicitly built before this step is run.

Test

make cluster-url

This command will spin up a cluster unless CLUSTER_URL is set in the current environment. A cluster is required to satisfy the testing target. The URL of this cluster will be left in a file called cluster-url.

make test-env

This command will setup a virtual environment that will contain the CLI and other requirements for running the pytest integration suite

make test

This command will run a complete build and then run the integration test suite. This includes:

make manifest-dist
make docker-dist
make cli
make stub-universe-url
make test-env
make cluster_info.json
make test-cluster

Note: these steps can all be individually triggered to allow specifying parameters like dist type and Docker image repo

Note: the make docker-dist step will use Docker build and the current build image does not support docker-in-docker so if you are building from within the included docker-build image, then the make docker-dist step must be done outside the container

spark-build's People

Contributors

susanxhuynh avatar mgummelt avatar sttts avatar nickbp avatar skonto avatar tnachen avatar gabrielhartmann avatar triclambert avatar keithchambers avatar joel-hamill avatar mrbrowning avatar s-urbaniak avatar ssk2 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.