This section provides the information required to set up your Greenplum Database client runtime environment and use the client and loader tools. Topics include:
Before using the client and loader tools, ensure that:
gpfdist
, gpload
, or gpss
utility programs, network connectivity must also exist between the client machine and all Greenplum Database segment hosts.Contact your Greenplum Database administrator if you do not meet the prerequisites mentioned above.
The client and loader tools package installs a file that you use to set up your Greenplum Database client and loader environment. This script or batch file, named greenplum_clients_path.<ext>
(where the file extension <ext>
is operating system- or shell-dependent) is located in the client tools root install directory.
greenplum_clients_path.<ext>
:
$GPHOME_CLIENTS
environment variable to point to the root directory of the client and loader tools installation.$PATH
to include $GPHOME_CLIENTS/bin
.You must source or run greenplum_clients_path.<ext>
before you invoke any of the client or loader programs. For example, run the following command on a RHEL or Ubuntu system to source the file:
user@clientsys$ . /usr/local/greenplum-db-clients/greenplum_clients_path.sh
NoteConsider adding the command to source or run
greenplum_clients_path.<ext>
to your shell or equivalent initialization file.
Clients always connect to Greenplum Database through the coordinator host. In order for the client or loader program to establish a connection to the coordinator host, you provide the following connection parameters to the program via options, a configuration file, or environment variables:
Connection Parameter | Description | Environment Variable Name |
---|---|---|
Database name | The name of the database to which you want to connect. | PGDATABASE |
Host name | The host name of the Greenplum Database coordinator. The default host is the local host. | PGHOST |
Port | The port number on which the Greenplum Database coordinator server instance is running. The default port is 5432. | PGPORT |
User name | The Greenplum Database user (role) name. This name may not necessarily be the same as your operating system user name. | PGUSER |
NoteRefer to the Client and Loader Utility Reference for the client or load command to determine tool support for specifying these connection parameters via options, configuration property names, and/or environment variables.
The following Greenplum Database documentation topics provide additional information about using selected client and loader tools:
gpfdist
- Using the Greenplum Parallel File Server (gpfdist)gpkafka
- VMware Greenplum Streaming Server Loading Kafka Data into Greenplum documentationgpload
- Loading Data with gploadgpss
, gpsscli
- VMware Greenplum Streaming Server documentationpsql
- Connecting with psqlKeep in mind these additional considerations when you use the Windows client and load programs:
gpload
control file are unblocked by any firewall running on the Windows client system.gpload.bat
attempts to create a directory named gpAdminLog
in the directory from which you execute the program, and writes its log files there. This operation will fail if you do not have write permission to the current working directory. Run gpload.bat
with the -l
option to direct the log output to a different location.