A quick start guide for installing from binaries or compiling from source for MADlib®.
Anchor | ||||
---|---|---|---|---|
|
Prerequisites
Install and configure your database of choice. MADlib currently supports the following platforms:
...
- Ensure that you install Postgres with the Python extension specified.
- If environment variables are defined, this can save you some typing.
...
- Download the MADlib binary
- Postgres: Get either the OSX or Redhat/CentOS binary from the MADlib download page
- Pivotal Greenplum Database: Download the .gppkg binary from Pivotal Network
- Install the package at the OS level.
- Postgres:
- on OSX double click the installer package
on Redhat / CentOS run the following as root
Code Block yum install <madlib_package> --nogpgcheck
- Pivotal Greenplum Database:
on Redhat / CentOS run the following as gpadmin
Code Block language bash gppkg install <madlib_package>
- Postgres:
Ensure that the environment is setup for your database deployment and that the database is up and running.
Ensure that psql, postgres, and pg_config are in your path
Code Block language bash which psql which postgres which pgconfig
Ensure that the database is started and running
Code Block language bash psql -c 'select version()'
The above may need user/port/password setting depending on how the database has been configured.
Run the MADlib deployment utility to install MADlib into each database that you want to use it in:
Postgres:
Code Block language bash /usr/local/madlib/bin/madpack -s madlib –p postgres install
if environment variables are defined. Otherwise use a fully defined connection string:
Code Block language bash /usr/local/madlib/bin/madpack -s madlib -p postgres -c [user[/password]@][host][:port][/database] install
Pivotal Greenplum Database:
Code Block language bash /usr/local/madlib/bin/madpack –p greenplum install
The above may need user/port/password setting depending on how the database has been configured.
For more information on madpack:
Code Block language bash /usr/local/madlib/bin/madpack --help
Test your installation
Postgres:
Code Block language bash /usr/local/madlib/bin/madpack -s madlib –p postgres install-check
Pivotal Greenplum Database:
Code Block language bash /usr/local/madlib/bin/madpack –p greenplum install-check
The above may need user/port/password setting depending on how the database has been configured.
Anchor | ||||
---|---|---|---|---|
|
Prerequisites
Requirements for installing MADlib:
...
To install
Code Block language bash $BUILD_ROOT/src/bin/madpack -p postgres -c [user[/password]@][host][:port][/database] install
To To make sure that the installation is successful
Code Block language bash $BUILD_ROOT/src/bin/madpack -p postgres -c [user[/password]@][host][:port][/database] install-check
For more information on the usage of madpack
Code Block language bash $BUILD_ROOT/src/bin/madpack --help
Anchor | ||||
---|---|---|---|---|
|
The below variables will be automatically used by the madpack
installer if no connection string is provided.
...