Giter Site home page Giter Site logo

apache / dolphinscheduler-operator Goto Github PK

View Code? Open in Web Editor NEW
26.0 21.0 17.0 275 KB

Apache DolphinScheduler Kubernetes Operator.

Home Page: https://dolphinscheduler.apache.org/

License: Apache License 2.0

Dockerfile 1.23% Makefile 5.69% Go 93.08%
airflow azkaban cronjob-schedule data-schedule distributed-schedule-system etl-dependency job-schedule job-scheduler oozie schedule

dolphinscheduler-operator's Introduction

dolphinscheduler-operator

Features

  • Deploy and manage the master, worker, alert, api components.
  • Scale the Pod numbers with one commond.
  • Update the component's version (not include the database schema).

Project Status

Project status: alpha1

Current API version: v1alpha1

Get Started

  • Create a namespace ds
kubectl create namespace ds
  • Install PostgreSQL database (Optional)

If you don't have a running database, you can run

kubectl apply -f config/ds/postgreSQL

to create a demo database, note that this is only for demonstration, DO NOT use it in production environment. You need to replace the hostPath.path in postgres-pv.yaml if you don't have a directory /var/lib/data.

Connect to PostgreSQL and initialize the database schema by executing dolphinscheduler/dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql.

  • Install zookeeper (Optional)

If you don't have a running zookeeper, the demo doployment file is in config/ds/zookeeper,

kubectl apply -f config/ds/zookeeper
  • Create pv and pvc (Optional)

If you have pv and pvc, you can config it in config/sameples.

Or you can create it with config/ds/ds-pv.yaml and config/ds/ds-pvc.yaml. Notice to replace the hostPath.path in ds-pv.yaml.

And you can mount the lib in dolphinscheduler /opt/soft in config/samples/ds_v1alpha1_dsworker.yaml with paramter named lib_pvc_name

Mount the logs in /opt/dolphinscheduler/logs with the pvcname named log_pvc_name.

query the status of worker

kubectl get dsworkers.ds.apache.dolphinscheduler.dev -n ds

api explain

kubectl explain dsmaster

how to test

how to deploy

export IMG=ghcr.io/apache/dolphinscheduler-operator:latest
make build && make manifests && make install && make deploy
  • Deploy the sample
cd config/samples
kubectl apply -f ds_v1alpha1_dsalert.yaml
kubectl apply -f ds_v1alpha1_dsapi.yaml -f ds_v1alpha1_dsmaster.yaml -f ds_v1alpha1_dsworker.yaml

dolphinscheduler-operator's People

Contributors

caishunfeng avatar ericgao888 avatar kezhenxu94 avatar nobolity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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