-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Guide
Greenplum:
These instructions assume you have Greenplum database in $GPHOME, and a gpadmin user account with sudo privileges.
- First make sure you have Python
setuptoolsinstalled. To install it log into your gpadmin account, sourcegreenplum_path.sh, and do the following:
$ cd /tmp
$ wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086
$ sh setuptools-0.6c11-py2.6.eggNote! : If you are on a Mac you are probably missing WGET. In that case just copy the above link to your browser and download setuptools egg file. Then CD to the download directory and repeat sh setuptools-0.6c11-py2.6.egg.
- Install python libraries used by the madlib installer.
$ export CFLAGS="-L$GPHOME/ext/python/lib/ -L$GPHOME/lib/"
$ GPHOME/ext/python/bin/easy_install argparse hashlib pyyaml sqlparse -
Download and uncompress madlib-contrib repository from
https://github.com/madlib/madlib-contrib/archives/masteror use git to clone it fromgit@github.com:madlib/madlib-contrib.git. -
Change directory to the
madlib-contribroot and edit themadpy/Config.ymlfile to reflect your installation. Review all parameters:
$ vi madpy/Config.yml- From the
madlib-contribdirectory run the Python install command:
$ python setup.py install-
Make sure your database and schema (target_schema) designated for Config.yml are MADlib ready:
a) If the database does not exist, create it:
$ createdb <database_name>b) Create target_schema:
psql> CREATE SCHEMA <your_madlib_schema>; c) Create target_schema:
psql> CREATE LANGUAGE plpgsql;
psql> CREATE LANGUAGE plpythonu;