forked from madlib/archived_madlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Guide
agorajek edited this page Jan 16, 2011
·
20 revisions
Greenplum:
These instructions assume you have Greenplum database in $GPHOME, and a gpadmin user account with sudo privileges.
- Make sure you have Python
setuptoolsinstalled. 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 http... link to your browser and download setuptools. 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:
- If the database does not exist, create it:
$ createdb <database_name>- Create target_schema:
psql> CREATE SCHEMA <your_madlib_schema>; - Create target_schema:
psql> CREATE LANGUAGE plpgsql;
psql> CREATE LANGUAGE plpythonu;