forked from Asana/incubator-airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forgot to git add in previous commit
- Loading branch information
1 parent
c24ce82
commit ce58b42
Showing
7 changed files
with
493 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Code / API | ||
========== | ||
|
||
Models | ||
------ | ||
Models are built on top of th SQLAlchemy ORM Base class, instance are | ||
persisted in the database. | ||
|
||
.. automodule:: models | ||
:members: DAG, BaseOperator, TaskInstance, DagBag, DatabaseConnection | ||
|
||
Operators | ||
--------- | ||
Operators allows to generate a certain type of task on the graph. | ||
|
||
.. automodule:: operators | ||
:members: MySqlOperator, BashOperator, MySqlSensorOperator, ExternalTaskSensor | ||
|
||
Hooks | ||
----- | ||
.. automodule:: hooks | ||
:members: MySqlHook | ||
|
||
Executors | ||
--------- | ||
.. automodule:: executors | ||
:members: LocalExecutor, SequentialExecutor |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
Installation | ||
------------ | ||
Installation should be quick and straightforwad. | ||
|
||
Debian packages | ||
''''''''''''''' | ||
|
||
:: | ||
|
||
sudo apt-get install virtualenv python-dev | ||
sudo apt-get install libmysqlclient-dev mysql-server | ||
sudo apt-get g++ | ||
|
||
Required environment variable, add this to your .bashrc | ||
''''''''''''''''''''''''''''''''''''''''''''''''''''''' | ||
|
||
:: | ||
|
||
export FLUX_HOME=~/Flux | ||
export PATH=$PATH:$FLUX_HOME/flux/bin | ||
|
||
Create a python virtualenv | ||
'''''''''''''''''''''''''' | ||
|
||
:: | ||
|
||
virtualenv env # creates the environment | ||
source init.sh # activates the environment | ||
|
||
Use pip to install the python packages required by Flux | ||
''''''''''''''''''''''''''''''''''''''''''''''''''''''' | ||
|
||
:: | ||
|
||
pip install -r requirements.txt | ||
|
||
Setup the metdata database | ||
'''''''''''''''''''''''''' | ||
|
||
Here are steps to get started using MySQL as a backend for the metadata | ||
database, though any backend supported by SqlAlquemy should work just | ||
fine. | ||
|
||
:: | ||
|
||
$ mysql -u root -p | ||
mysql> CREATE DATABASE flux; | ||
CREATE USER 'flux'@'localhost' IDENTIFIED BY 'flux'; | ||
GRANT ALL PRIVILEGES ON flux.* TO 'flux'@'localhost'; | ||
|
||
Start the web server | ||
'''''''''''''''''''' | ||
|
||
:: | ||
|
||
flux webserver --port 8080 |
Oops, something went wrong.