In this example, all the command would operator via MacOS
OS.
- Python 3.6/3.7
- Virtualenv
- Homebrew
- Hadoop 2.8.x.
- JDK 8
$ brew install python3
Pip3 is installed with Python3
To install virtualenv via pip run:
$ pip3 install virtualenv
Creation of virtualenv:
$ virtualenv -p python3 airflow-example/venv
Activate the virtualenv:
$ source venv/bin/activate
Deactivate the virtualenv:
$ deactivate
- Downloading th hadoop 2.8.x and setting up configuration for connecting to the target hadoop cluster.
- Downloading and unzipping the JDK8.
- Editing the t2
bash_command
ofsrc/airflow/dag_from_file.py
to conform with your usage scenarios.
├── README.md ## Readme file
├── src ## DAG of Airflow(python source code)
│ └── airflow
└── venv ## Path of Virtualenv(pip3), and all the airflow library would be installed here.
├── bin
│ └── __pycache__
├── include
└── lib
└── python3.7