tGreenplumGPLoad Standard properties
These properties are used to configure tGreenplumGPLoad running in the Standard Job framework.
The Standard tGreenplumGPLoad component belongs to the Databases family.
The component in this framework is available in all Talend products.
Basic settings
Property type |
Either Built-in or Repository .
|
Host |
Database server IP address. |
Port |
Listening port number of the DB server. |
Database |
Name of the Greenplum database. |
Schema |
Exact name of the schema. |
Username and Password |
DB user authentication data. To enter the password, click the [...] button next to the password field, and then in the pop-up dialog box enter the password between double quotes and click OK to save the settings. |
Table |
Name of the table into which the data is to be inserted. |
Action on table |
On the table defined, you can perform one of the following operations before loading the data: None: No operation is carried out. Clear table: The table content is deleted before the data is loaded. Create table: The table does not exist and gets created. Create table if not exists: The table is created if it does not exist. Drop and create table: The table is removed and created again. Drop table if exists and create: The table is removed if it already exists and created again. Truncate table: The table content is deleted. You do not have the possibility to rollback the operation. |
Action on data |
On the data of the table defined, you can perform: Insert: Add new entries to the table. If duplicates are found, Job stops. Update: Make changes to existing entries. Merge: Updates or adds data to the table. Information noteWarning:
It is necessary to specify at least one column as a primary key on which the Update and Merge operations are based. You can do that by clicking Edit Schema and selecting the check box(es) next to the column(s) you want to set as primary key(s). To define the Update/Merge options, select in the Match Column column the check boxes corresponding to the column names that you want to use as a base for the Update and Merge operations, and select in the Update Column column the check boxes corresponding to the column names that you want to update. To define the Update condition, type in the condition that will be used to update the data. |
Schema and Edit schema |
A schema is a row description. It defines the number of fields (columns) to be processed and passed on to the next component. When you create a Spark Job, avoid the reserved word line when naming the fields.
Click Edit schema to make changes to the schema. If the current schema is of the Repository type, three options are available:
|
Data file |
Full path to the data file to be used. If this component is used in standalone mode, this is the name of an existing data file to be loaded into the database. If this component is connected with an input flow, this is the name of the file to be generated and written with the incoming data to later be used with gpload to load into the database. This field is hidden when the Use named-pipe check box is selected. |
Populate column list based on the schema |
Select this option to add the columns defined in the schema to the YAML file. This is extremely useful if the target table has extra columns (for example, to load only the primary keys to a staging table.) Selecting this option generates the COLUMNS: section in the YAML file. Information noteNote: This option is available only when you have installed the R2021-01 Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.
|
Use named-pipe |
Select this check box to use a named-pipe. This option is only applicable when the component is connected with an input flow. When this check box is selected, no data file is generated and the data is transferred to gpload through a named-pipe. This option greatly improves performance in both Linux and Windows. Information noteNote:
This component on named-pipe mode uses a JNI interface to create and write to a named-pipe on any Windows platform. Therefore the path to the associated JNI DLL must be configured inside the java library path. The component comes with two DLLs for both 32 and 64 bit operating systems that are automatically provided in the Studio with the component. |
Named-pipe name |
Specify a name for the named-pipe to be used. Ensure that the name entered is valid. |
Die on error |
This check box is selected by default. Clear the check box to skip the row on error and complete the process for error-free rows. If needed, you can retrieve the rows on error via a Row>Rejects link. |
Advanced settings
DB driver |
Select the desired database driver from the drop-down list, which can be Greenplum and PostgreSQL and defaults to Greenplum. Note that the database driver for PostgreSQL is deprecated and will not be updated in R2021-01 Studio Monthly update and the coming releases. Information noteNote: This option defaults to Greenplum when you have
installed the R2021-01 Studio Monthly update or a later one delivered by
Talend. For more information, check with your administrator.
|
Additional Parameters |
Specify additional parameters for the database connection. |
Use existing control file (YAML formatted) |
Select this check box to provide a control file to be used with the gpload utility instead of specifying all the options explicitly in the component. When this check box is selected, Data file and the other gpload related options no longer apply. Refer to Greenplum's gpload manual for details on creating a control file. |
Control file |
Enter the path to the control file to be used, between double quotation marks, or click [...] and browse to the control file. This option is passed on to the gpload utility via the -f argument. |
CSV mode |
Select this check box to include CSV specific parameters such as Escape char and Text enclosure. |
Field separator |
Character, string, or regular expression used to separate fields. Information noteWarning:
This is gpload's delim argument. The default value is |. To improve performance, use the default value. |
Escape char |
Character of the row to be escaped. |
Text enclosure |
Character used to enclose text. |
Header (skips the first row of data file) |
Select this check box to skip the first row of the data file. |
Additional options |
Set the gpload arguments in the corresponding table. Click [+] as many times as required to add arguments to the table. Click the Parameter field and choose among the arguments from the list. Then click the corresponding Value field and enter a value between quotation marks.
Information noteNote: The following options are available only when you have installed the R2021-01 Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.
|
Log file |
Browse to or enter the access path to the log file in your directory. |
Encoding |
Define the encoding type manually in the field. |
Specify gpload path |
Select this check box to specify the full path to the gpload executable. You must check this option if the gpload path is not specified in the PATH environment variable. |
Full path to gpload executable |
Full path to the gpload executable on the machine in use. It is advisable to specify the gpload path in the PATH environment variable instead of selecting this option. |
Remove datafile on successful execution |
Select this option to remove the datafile generated if the operation completes successfuly. Information noteNote: This option is available only when you have installed the R2021-01 Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.
|
Gzip compress the datafile |
Select this option to compress the datafile using Gzip, which saves the disk space by up to 50-90% the original size. However, it increases CPU usage. Information noteNote: This option is available only when you have installed the R2021-01 Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.
|
tStatCatcher Statistics |
Select this check box to collect log data at the component level. |
Global Variables
Global Variables |
NB_LINE: the number of rows processed. This is an After variable and it returns an integer. GPLOAD_OUTPUT: the output information when the gpload utility is the executed. This is an After variable and it returns a string. ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box. NB_LINE_INSERTED: the number of rows successfully inserted. This is an After variable and it returns an integer. NB_LINE_UPDATED: the number of rows successfully updated. This is an After variable and it returns an integer. NB_DATA_ERRORS: the number of errors occurred. This is an After variable and it returns an integer. GPLOAD_STATUS: the status of the load operation. This is an After variable and it returns a string. GPLOAD_RUNTIME: the time (in ms) cost by the load operation. This is an After variable of type long. Information noteNote: The following variables are available only when you have installed the R2021-01 Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.
A Flow variable functions during the execution of a component while an After variable functions after the execution of the component. To fill up a field or expression with a variable, press Ctrl + Space to access the variable list and choose the variable to use from it. For further information about variables, see Talend Studio User Guide. |
Usage
Usage rule |
This component is mainly used when no particular transformation is required on the data to be loaded on to the database. This component can be used as a standalone or an output component. |
Limitation |
Due to license incompatibility, one or more JARs required to use this component are not provided. You can install the missing JARs for this particular component by clicking the Install button on the Component tab view. You can also find out and add all missing JARs easily on the Modules tab in the Integration perspective of your studio. For details, see Installing external modules. You can find more details about how to install external modules in Talend Help Center (https://help.talend.com). |