Log in to the system as the Postgres administrator (for example,
postgres) on the Postgres master host.
# su - postgres
Set the search path to include the public schema.
Navigate to the
database_setup/Postgres directory.
$ cd /home/postgres/database_setup/Postgres
Run the
Team Studio installer (the
.bin file).
$ sh alpine_miner_installer_Postgres.bin
Read and accept the license agreement.
Specify the Postgres installation path. The setup places the required shared library in the directory
$PGHOME/lib/postgres/.
Specify if the installer should copy the shared library to the segment hosts. Enter
y for multi-node clusters.
If you entered
y, then enter the full path to the file containing the segment host names.
You can create your own host file. For example, create a file
/tmp/hostfile and add all the segment host names or IP addresses one after the other in the file, similar to the following.
Specify the default database to install the
Team Studio functions.
Specify the port on which the Postgres database is running.
Specify if you would like to create the
Team Studio demo database.
Verify the shared library exists on each segment node.
The installer can fail with the following error.
......
./install.sh: line 162: lsb_release: command not found
*****************************************************************
Path /usr/pgsql-9.3/lib is the Postgres lib path to copy alpine_miner.so to? (y/n)
Provide the path of Postgres lib to copy alpine_miner.so to
or press ENTER to accept the default
*****************************************************************
Postgres lib path:
Copying sharedLib/9.3/alpine_miner..so to /usr/pgsql-9.3/lib/alpine_miner.so
Shared library file sharedLib/9.3/alpine_miner..so does not exist.
If you see this error, then you must install the following packages and rerun the installer.
yum install redhat-lsb redhat-lsb-core
Locate and open for editing the file
/var/lib/pgsql/data/pg_hba.conf.
Modify the file to allow users access to the appropriate databases.
For example, using the miner_demo database, add the following lines to the end of
pg_hba.conf.
local miner_demo miner_demo trust
host miner_demo miner_demo 192.168.1.0/24 password
Reload the Postgres database to activate the changes made in the configuration file.