Skip to content

isobe-toshiyuki/dementor

 
 

Repository files navigation

Dementor

Overview

Dementor is the CLI tool of Azkaban.

  • Has Wrapper commands of official APIs
  • Supports a YAML recipe file for registering and scheduling projects/flows

Usage

Basic wrapper commands

Dementor has wrapper commands of official APIs such as Create a Project, Delete a Project... (Not all at the moment)

$ dementor --help
Usage: dementor [--version] [--help] <command> [<args>]

Available commands are:
    authenticate         Fetch a session id by username and password.
    createProject        Create a new project.
    deleteProject        Delete the project.
    fetchFlowsProject    Fetch flows of the project
    fetchJobsFlow        Fetch jobs of the flow.
    fetchSchedule        Fetch the schedule of the flow.
    kiss                 Process a recipe file
    scheduleFlow         Schedule the flow.
    unscheduleFlow       Unschedule the flow.
    uploadProjectZip     Upload the project zip file.

Kiss command (processing a recipe written in YAML)

Dementor has the kiss command which process a recipe written in YAML.

A recipe looks like below:

url: "http://localhost:8081/"
insecure: false
username: azkaban
password: azkaban
projects:
  - name: RecipeTest
    description: "This is a recipe test project."
    filepath: "./assets/test.zip"
    flows:
      - name: test
        cron: "0 23/30 5,7-10 ? * 6#3"

License

MIT

About

Dementor is the CLI tool for Azkaban

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.6%
  • Makefile 2.4%