GithubHelp home page GithubHelp logo

naototty / airflow-rpm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hurdad/airflow-rpm

0.0 2.0 0.0 20 KB

hurdad/airflow-rpm forked based on epel-7 python36 packages build and apache airflow suppted version

License: Apache License 2.0

Makefile 49.88% Python 38.87% Shell 11.25%

airflow-rpm's Introduction

airflow-rpm

Build scripts for generating Apache Airflow RPM files. Tested on CentOS 7

Install Build Requirements

$> sudo yum install epel-release
$> sudo yum update
$> sudo yum install rpm-build mariadb-devel libffi-devel cyrus-sasl-devel gcc-c++
$> sudo yum install python36 python36-devel python36-libs python36-numpy python36-pbr python36-setuptools python36-pip
$> sudo yum install python36-pysocks python36-root python36-six python36-test python36-urllib3

not need $> sudo pip install setuptools --upgrade

not need $> sudo pip install pip --upgrade

Clone

$> git clone https://github.com/naototty/airflow-rpm.git
$> cd airflow-rpm

Configure Version + Packages

Configure Apache Airflow version on pip (Apache Airflow on https://pypi.org/project/apache-airflow/; start version >= 1.8.1)

$> cat Makefile
...
version = 1.8.1

Configure Airflow Packages as needed

$> cat Makefile
...
## packages = devel,devel_hadoop,celery,crypto,jdbc,hdfs,kerberos,ldap,mysql,password,postgres,rabbitmq
packages = devel,celery,crypto,password,postgres,s3

Build RPM

$> make

Install RPM

$> sudo yum install rpmbuild/RPMS/x86_64/airflow-1.7.1.3-1.el7.centos.x86_64.rpm

Airflow Init Server Configuration

$> sudo su airflow
$> AIRFLOW_HOME=/usr/share/airflow \
AIRFLOW_CONFIG=${AIRFLOW_HOME}/airflow.cfg \
airflow version
$> cat /usr/share/airflow/airflow.cfg

Airflow InitDB

$> AIRFLOW_HOME=/usr/share/airflow \
AIRFLOW_CONFIG=${AIRFLOW_HOME}/airflow.cfg \
airflow initdb
$> exit

Airflow Services Start (as needed)

$> sudo systemctl start airflow-flower
$> sudo systemctl start airflow-kerberos
$> sudo systemctl start airflow-scheduler
$> sudo systemctl start airflow-webserver
$> sudo systemctl start airflow-worker

Airflow Service Status

$> sudo systemctl status airflow-flower
$> sudo systemctl status airflow-kerberos
$> sudo systemctl status airflow-scheduler
$> sudo systemctl status airflow-webserver
$> sudo systemctl status airflow-worker

Airflow Services Start On Boot (as needed)

$> sudo systemctl enable airflow-flower
$> sudo systemctl enable airflow-kerberos
$> sudo systemctl enable airflow-scheduler
$> sudo systemctl enable airflow-webserver
$> sudo systemctl enable airflow-worker

airflow-rpm's People

Contributors

hurdad avatar marcindulak avatar naototty 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.