GithubHelp home page GithubHelp logo

shirdrn / azk-client Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 19 KB

Azkaban client, written in Java, based on Azkaban REST APIs, for managing workflows easily.

License: Apache License 2.0

Java 100.00%

azk-client's Introduction

azk-client

Azkaban client, written in Java, based on Azkaban REST APIs, for managing workflows easily.

Features

Currently, it supports 3 AzkCmds to manage prepared Azkaban workflows. We have described as in the following list:

  • publish - Publish our azkaban workflows to the remote Azkaban Web Server.
  • exec - Execute a published flow manually.
  • delete - Delete a Azkaban workflow.

How To

Build

We manage this project by using Maven, you can build it by executing below command lines:

git clone https://github.com/shirdrn/azk-client.git
cd azk-client
mvn package

You should get packaged file azk-client-0.0.1-SNAPSHOT-jar-with-dependencies.jar in the target directory. And then, you can execute the executable file for more information:

java -jar target/azk-client-0.0.1-SNAPSHOT-jar-with-dependencies.jar

The output looks like:

2017-10-12 15:24:26 INFO  AzkClient:45 - Input args: []
usage: deployer
 -c,--config <arg>   Specify required configuration file path.
 -h,--help           Print help detail information.
 -o,--overwrite      Specify whether overwrite published job.
 -t,--type <arg>     Specify operation type: publish|exec|delete

Preparation works

Before using this tool, you should create a properties file, which includes required information about Azkaban server and our workflow. For example, we prepare a configuration file config.properties:

azkaban.server.url = http://172.16.117.62:8099
azkaban.user = azkaban
azkaban.password = azkaban
project.name = test-demo-hourly
project.description = test-demo-hourly
job.zip.file = /Users/yanjun/Azkaban/demo/demo-syj.zip
cron.expr = 0 45 * * * ?

You can find above file in main/resources.

Publish an Azkaban workflow

Preparing and packaging an Azkaban .zip file is required, such as /Users/yanjun/Azkaban/demo/demo-syj.zip. Then we can publish the workflow to the Azkaban server, issue the following command:

java -jar target/azkaban-app-deployer-0.0.1-SNAPSHOT-jar-with-dependencies.jar -t publish -c /Users/yanjun/Workspaces/github/azk-client/src/main/resources/config.properties

Execute an Azkaban workflow manually

java -jar target/azkaban-app-deployer-0.0.1-SNAPSHOT-jar-with-dependencies.jar -t exec -c /Users/yanjun/Workspaces/github/azk-client/src/main/resources/config.properties

Delete an Azkaban workflow

java -jar target/azkaban-app-deployer-0.0.1-SNAPSHOT-jar-with-dependencies.jar -t delete -c /Users/yanjun/Workspaces/github/azk-client/src/main/resources/config.properties

References

azk-client's People

Contributors

shirdrn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.