marcelned / Bodo-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bodo Examples

Welcome to Bodo examples!

Install required packages

First make sure you have Bodo installed.

Other packages that are required to run the data generation scripts, pandas_datareader and scikit-learn:

conda install -c conda-forge pandas-datareader
conda install -c conda-forge scikit-learn

Examples and corresponding data generation

Many of the data generation scripts and example scripts can take in optional arguments. python path/script.py --help shows the usage.

By default all examples and data generation scripts can be run from home directory (Bodo-examples) without any changes. Otherwise, make sure to change path of data files.

For more information on data generation and examples, please see the docstring at the top of each python script.

Try the examples

An example performing TPCH query #1:

# generate data
data/tpch-datagen/generateData.sh 1
# run example on 4 cores
mpiexec -n 4 python examples/tpch/q01.py

An example performing beer reviews example:

# run example on 4 cores
mpiexec -n 4 python examples/beer-reviews/beer-reviews.py

An example performing Monte Carlo Pi Calculation:

# run the example on a single core
python examples/pi.py
# run the example on 4 cores
mpiexec -n 4 python examples/pi.py

An example performing linear regression:

# generate data
python data/linear_regression_datagen.py
# run example on 4 cores
mpiexec -n 4 python examples/linear_regression.py

More documentation can be found at http://docs.bodo.ai.

Bodo tutorial can be found here.

Launch using Binder

Binder

About

License:Apache License 2.0


Languages

Language:Jupyter Notebook 94.7%Language:Python 2.7%Language:HCL 2.0%Language:Shell 0.5%Language:Dockerfile 0.1%