incubator-airflow/docs/installation.rst

80 строки
1.6 KiB
ReStructuredText
Исходник Обычный вид История

2014-10-13 09:05:34 +04:00
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++
2014-10-15 01:55:41 +04:00
Mac setup
'''''''''''''''
::
# Install mysql
brew install mysql
# Start mysql
mysql.server start
# Install python package managers
sudo easy_install pip
sudo pip install virtualenv
Required environment variable, add this to your .bashrc or .bash_profile
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
2014-10-13 09:05:34 +04:00
::
export FLUX_HOME=~/Flux
export PATH=$PATH:$FLUX_HOME/flux/bin
2014-10-15 01:55:41 +04:00
# also run it, or source it, or start a new shell
source ~/.bashrc
2014-10-13 09:05:34 +04:00
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.
::
2014-10-15 01:55:41 +04:00
# If :
2014-10-13 09:05:34 +04:00
$ mysql -u root -p
2014-10-15 01:55:41 +04:00
mysql>
CREATE DATABASE flux;
2014-10-13 09:05:34 +04:00
CREATE USER 'flux'@'localhost' IDENTIFIED BY 'flux';
GRANT ALL PRIVILEGES ON flux.* TO 'flux'@'localhost';
Get things started
2014-10-13 09:05:34 +04:00
''''''''''''''''''''
::
# Creating the necessary tables in the database
flux initdb
2014-10-13 09:05:34 +04:00
# Start the web server!
2014-10-13 09:05:34 +04:00
flux webserver --port 8080