Pivotal Knowledge Base

Follow

How to do an Unattended Install of Greenplum Components on Linux

Environment

  • Pivotal Greenplum 4.x and 5.x
  • Linux

Purpose

The purpose of this article to describe methods to install Greenplum components unattended on Linux. 

Procedure

This example uses Greenplum Database but the same will apply to all of the installers including Greenplum Loaders.

Using Greenplum binary installer version 5.5.0 as an example, you can run the installer to see that it has several prompts that need to be answered:

  • Do you accept the Pivotal Database license agreement? [yes|no]
    • Answer - yes
  • Provide the installation path for Greenplum Database or press ENTER to
    accept the default installation path: /usr/local/greenplum-db-5.5.0
    • Answer - enter
  • Install Greenplum Database into /usr/local/greenplum-db-5.5.0? [yes|no]
    • Answer - yes
  • /usr/local/greenplum-db-5.5.0 does not exist.
    Create /usr/local/greenplum-db-5.5.0 ? [yes|no]
    (Selecting no will exit the installer)
    • Answer - yes

Using printf, you can now pipe the answers to these questions into the binary installer: 

[root@gpdb-sandbox ~]# printf 'yes\n\nyes\nyes\n' | /bin/bash /home/gpadmin/greenplum-loaders-5.4.1-rhel6-x86_64.bin 2>&1 > installer.log

  • Use \n to simulate the enter key.
  • Also, everything should be logged into an installer.log file as it will help if something goes wrong.
 

Comments

Powered by Zendesk