GithubHelp home page GithubHelp logo

isabella232 / layer-binary-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juju-solutions/layer-binary-builder

0.0 0.0 0.0 88 KB

Building the Gobblin binary

License: Other

Python 100.00%

layer-binary-builder's Introduction

Overview

This charm is used to build the binaries of Gobblin and upload them to S3. Goblin is a universal data ingestion framework. Gobblin wiki

Usage

Upon deployment the charm installs the dependencies needed to build and upload the Gobblin binaries:

juju deploy gobblin-binary-builder gbuilder

Testing the deployment

Two actions are available, one for building the binary and one for uploading to S3.

Building Action

Trigger the build action like this:

juju action do gbuilder/0 build

The action options available are:

release: The release version. This string is part of the Gobblin source release tag
hadoop-version: The Hadoop version we should build Gobblin against

During build, the status message of the charm should change from 'Ready' to 'Checking out source', 'Building binary', 'Finishing packaging' and become 'Ready' again.

Fetching the result of the action yields the produced binary and the sha256 digest, eg.

juju action fetch 9889f266-6634-4e78-85e0-e6f8c3e47522

Returns:

results:
  binary: /tmp/workspace/gobblin-dist-0.6.0_hadoop-2.7.1-9401863.tar.gz
  sha256sum: 94018632b4b6e5eb9cfeea85b76f0a38d96fbf0ded0748b824a5bb05f21da57e
status: completed

At this point you can fetch the binary using juju scp facilities:

juju scp gbuilder/0:/tmp/workspace/gobblin-dist-0.6.0_hadoop-2.7.1-9401863.tar.gz .

Uploading a binary

Triggering the uploading action is done like this:

juju action do gbuilder/0 awsupload s3-access-key=<your_key> s3-secret-key=<your_secret_key> bucket=<bucket_name>

In addition to the above three parameters (s3-access-key, s3-secret-key and bucket) the user has also the option of specifying the region/AWS endpoint via the optional 'aws-endpoint' parameter.

As soon as the uploading action is triggered, the status message of the charm should change to 'Uploading binary' and will become 'Ready' when the uploading finishes.

Contact Information

Help

layer-binary-builder's People

Contributors

ktsakalozos avatar andrewdmcleod 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.