tJDBCOutput
Executes the action defined on the data contained in the table, based on the flow
incoming from the preceding component in the Job.
tJDBCOutput writes, updates, makes changes or suppresses
entries in any type of database connected to a JDBC API.
Depending on the Talend
product you are using, this component can be used in one, some or all of the following
Job frameworks:
-
Standard: see tJDBCOutput Standard properties.
The component in this framework is available in all Talend
products. -
MapReduce: see tJDBCOutput MapReduce properties (deprecated).
The component in this framework is available in all subscription-based Talend products with Big Data
and Talend Data Fabric. -
Spark Batch: see tJDBCOutput properties for Apache Spark Batch.
This component can be used to write data to a RDS MariaDB, a
RDS PostgreSQL or a RDS SQLServer database.The component in this framework is available in all subscription-based Talend products with Big Data
and Talend Data Fabric. -
Spark Streaming: see tJDBCOutput properties for Apache Spark Streaming.
This component can be used to write data to a RDS MariaDB, a
RDS PostgreSQL or a RDS SQLServer database.This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.
-
Storm: see tJDBCOutput Storm properties (deprecated)
This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.
tJDBCOutput Standard properties
These properties are used to configure tJDBCOutput running in the Standard Job framework.
The Standard
tJDBCOutput component belongs to the Databases family.
The component in this framework is available in all Talend
products.
connector. The properties related to database settings vary depending on your database
type selection. For more information about dynamic database connectors, see Dynamic database components.
Basic settings
| Database |
Select a type of database from the list and click |
|
Property Type |
Select the way the connection details
This property is not available when other connection component is selected |
|
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
|
Connection Component |
Select the component that opens the database connection to be reused by this |
|
JDBC URL |
The JDBC URL of the database to be used. For |
|
Drivers |
Complete this table to load the driver JARs needed. To do For more information, see Importing a database driver. |
|
Driver Class |
Enter the class name for the specified driver between double |
|
Use Id and Password |
The database user authentication data. To enter the password, click the […] button next to the |
|
Table Name |
The name of the table into |
|
Data Action |
Select an action to be performed on data of the table defined.
Warning:
It is necessary to specify at least one column as a |
|
Clear data in table |
Select this check box to clear data in the table before performing the |
|
Schema and Edit schema |
A schema is a row description. It defines the number of fields
When the schema to be reused has default values that are You can find more details about how to Click Edit
schema to make changes to the schema. Note: If you
make changes, the schema automatically becomes built-in.
|
|
Guess Schema |
Click this button to generate schema columns based on the settings of database table |
|
Die on error |
Select the check box to stop the execution of the Job when an error Clear the check box to skip any rows on error and complete the When errors are skipped, you can collect the rows on error |
|
Specify a data source alias |
Select this check box and in the If you use the component’s own DB configuration, your data source This property is not available when other connection component is selected from |
Advanced settings
|
Commit every |
Specify the number of rows to be processed before committing This option ensures transaction quality (but not rollback) and, above all, better |
|
Additional Columns |
This option allows you to call SQL functions to perform actions on columns, which are
|
|
Use field options |
Select this check box and in the Fields options table
|
|
Debug query mode |
Select this check box to display each step during processing entries |
|
Use Batch |
Select this check box to activate the batch mode for data |
|
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at the Job level |
|
Enable parallel execution |
Select this check box to perform high-speed data processing by treating Note: When parallel execution is enabled, it is not possible to use global
variables to retrieve return values. |
Global Variables
|
ERROR_MESSAGE |
The error message generated by the component when an error occurs. This is an After |
|
NB_LINE |
The number of rows processed. This is an After variable and it returns an integer. |
|
NB_LINE_INSERTED |
The number of rows inserted. This is an After variable and it returns an integer. |
|
NB_LINE_UPDATED |
The number of rows updated. This is an After variable and it returns an integer. |
|
NB_LINE_DELETED |
The number of rows deleted. This is an After variable and it returns an integer. |
|
NB_LINE_REJECTED |
The number of rows rejected. This is an After variable and it returns an integer. |
|
QUERY |
The query statement being processed. This is a Flow variable and it returns a |
Usage
|
Usage rule |
This component offers the flexibility benefit of the This component must be used as an output component. It |
|
Dynamic settings |
Click the [+] button to add a row in the table For examples on using dynamic parameters, see Reading data from databases through context-based dynamic connections and Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic |
Related scenarios
For tJDBCOutput related topics, see:
tJDBCOutput MapReduce properties (deprecated)
These properties are used to configure tJDBCOutput running in the MapReduce Job
framework.
The MapReduce
tJDBCOutput component belongs to the MapReduce and the Databases families.
The component in this framework is available in all subscription-based Talend products with Big Data
and Talend Data Fabric.
The MapReduce framework is deprecated from Talend 7.3 onwards. Use Talend Jobs for Apache Spark to accomplish your integration tasks.
Basic settings
|
Property type |
Either Built-In or Repository. |
|
|
Built-In: No property data stored centrally. |
|
|
Repository: Select the repository file where the |
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
|
JDBC URL |
The JDBC URL of the database to be used. For |
|
Driver JAR |
Complete this table to load the driver JARs needed. To do For more information, see Importing a database driver. |
|
Class Name |
Enter the class name for the specified driver between double |
|
Username and Password |
Enter the authentication information to the database you need To enter the password, click the […] button next to the |
|
Table name |
Name of the table to be written. Note that only one table can |
|
Schema and Edit schema |
A schema is a row description. It defines the number of fields |
|
Built-In: You create and store the schema locally for this component |
|
|
|
Repository: You have already created the schema and stored it in the |
Advanced settings
|
Use Batch Size |
When selected, enables you to define the number |
Usage
|
Usage rule |
In a This component, along with the MapReduce family it belongs to, appears only when you are Note that in this documentation, unless otherwise |
|
Hadoop Connection |
You need to use the Hadoop Configuration tab in the This connection is effective on a per-Job basis. |
|
Limitation |
We recommend using the following databases with It may work with other databases as well, but |
Related scenarios
If you are a subscription-based Big Data user, you can consult a
Talend
Map/Reduce Job using the Map/Reduce version of tJDBCOutput:
tJDBCOutput properties for Apache Spark Batch
These properties are used to configure tJDBCOutput running in the Spark Batch
Job framework.
The Spark Batch
tJDBCOutput component belongs to the Databases family.
This component can be used to write data to a RDS MariaDB, a
RDS PostgreSQL or a RDS SQLServer database.
The component in this framework is available in all subscription-based Talend products with Big Data
and Talend Data Fabric.
Basic settings
|
Property type |
Either Built-In or Repository. |
||
|
|
Built-In: No property data stored centrally. |
||
|
|
Repository: Select the repository file where the |
||
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
||
|
Use an existing |
Select this check box and in the Component List click the relevant connection component to |
||
|
JDBC URL |
The JDBC URL of the database to be used. For If you are using Spark V1.3, this URL should contain the
authentication information, such as:
|
||
|
Driver JAR |
Complete this table to load the driver JARs needed. To do For more information, see Importing a database driver. |
||
|
Class Name |
Enter the class name for the specified driver between double |
||
|
Username and |
Enter the authentication information to the database you need To enter the password, click the […] button next to the Available only for Spark V1.4. and onwards. |
||
|
Table name |
Name of the table to be written. Note that only one table can |
||
|
Schema and |
A schema is a row description. It defines the number of fields |
||
|
Built-In: You create and store the schema locally for this component |
|||
|
|
Repository: You have already created the schema and stored it in the |
||
|
Action on data |
Select an action to be performed on data of the table defined.
|
||
|
Die on error |
Select the check box to stop the execution of the Job when an error |
Advanced settings
|
Additional JDBC |
Specify additional connection properties for the database connection you are This field is not available if the Use an existing |
|
Left protected |
Enter the symbol reserved by the database you are using, the left part in Left protected char and the right part in Right For example, if you are using Oracle, double quotation marks (“) are reserved for object |
|
Additional |
This option allows you to call SQL functions to perform actions on columns, |
|
|
Name: Type in the name of the schema column to be altered |
|
|
SQL expression: Type in the SQL statement to be executed in |
|
|
Position: Select Before, |
|
|
Reference column: Type in a reference column that the |
|
Use field |
Select the check box for the corresponding column to customize a request,
|
|
Use Batch |
Select this check box to activate the batch mode for data processing. This check box is available only when |
|
Batch Size |
Specify the number of records to be processed in each batch. This field appears only when the Use batch mode |
|
Connection pool |
In this area, you configure, for each Spark executor, the connection pool used to control
|
|
Evict |
Select this check box to define criteria to destroy connections in the connection pool. The
|
Usage
|
Usage rule |
This component is used as an end component and requires an input link. This component should use a tJDBCConfiguration component present in the same Job to This component, along with the Spark Batch component Palette it belongs to, Note that in this documentation, unless otherwise explicitly stated, a |
|
Spark Connection |
In the Spark
Configuration tab in the Run view, define the connection to a given Spark cluster for the whole Job. In addition, since the Job expects its dependent jar files for execution, you must specify the directory in the file system to which these jar files are transferred so that Spark can access these files:
This connection is effective on a per-Job basis. |
Related scenarios
For a scenario about how to use the same type of component in a Spark Batch Job, see Writing and reading data from MongoDB using a Spark Batch Job.
tJDBCOutput properties for Apache Spark Streaming
These properties are used to configure tJDBCOutput running in the Spark Streaming
Job framework.
The Spark Streaming
tJDBCOutput component belongs to the Databases family.
This component can be used to write data to a RDS MariaDB, a
RDS PostgreSQL or a RDS SQLServer database.
This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.
Basic settings
|
Property type |
Either Built-In or Repository. |
||
|
|
Built-In: No property data stored centrally. |
||
|
|
Repository: Select the repository file where the |
||
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
||
|
Use an existing |
Select this check box and in the Component List click the relevant connection component to |
||
|
JDBC URL |
The JDBC URL of the database to be used. For If you are using Spark V1.3, this URL should contain the
authentication information, such as:
|
||
|
Driver JAR |
Complete this table to load the driver JARs needed. To do For more information, see Importing a database driver. |
||
|
Class Name |
Enter the class name for the specified driver between double |
||
|
Username and Password |
Enter the authentication information to the database you need To enter the password, click the […] button next to the Available only for Spark V1.4. and onwards. |
||
|
Table |
Name of the table to be written. Note that only one table can |
||
|
Schema and Edit schema |
A schema is a row description. It defines the number of fields |
||
|
Built-In: You create and store the schema locally for this component |
|||
|
|
Repository: You have already created the schema and stored it in the |
||
|
Action on data |
Select an action to be performed on data of the table defined.
|
||
|
Die on error |
Select the check box to stop the execution of the Job when an error |
Advanced settings
|
Additional JDBC |
Specify additional connection properties for the database connection you are This field is not available if the Use an existing |
|
Left protected char and |
Enter the symbol reserved by the database you are using, the left part in Left protected char and the right part in Right For example, if you are using Oracle, double quotation marks (“) are reserved for object |
|
Additional Columns |
This option allows you to call SQL functions to perform actions on columns, |
|
|
Name: Type in the name of the schema column to be altered |
|
|
SQL expression: Type in the SQL statement to be executed in |
|
|
Position: Select Before, |
|
|
Reference column: Type in a reference column that the |
|
Use field options |
Select the check box for the corresponding column to customize a request,
|
|
Use Batch |
Select this check box to activate the batch mode for data processing. This check box is available only when the |
|
Batch Size |
Specify the number of records to be processed in each batch. This field appears only when the Use batch mode |
|
Connection pool |
In this area, you configure, for each Spark executor, the connection pool used to control
|
|
Evict connections |
Select this check box to define criteria to destroy connections in the connection pool. The
|
Usage
|
Usage rule |
This component is used as an end component and requires an input link. This component should use a tJDBCConfiguration component present in the same Job to Although tJDBCOutput is |
|
Spark Connection |
In the Spark
Configuration tab in the Run view, define the connection to a given Spark cluster for the whole Job. In addition, since the Job expects its dependent jar files for execution, you must specify the directory in the file system to which these jar files are transferred so that Spark can access these files:
This connection is effective on a per-Job basis. |
Related scenarios
For a scenario about how to use the same type of component in a Spark Streaming Job, see
Reading and writing data in MongoDB using a Spark Streaming Job.
tJDBCOutput Storm properties (deprecated)
These properties are used to configure tJDBCOutput running in the Storm Job
framework.
The Storm
tJDBCOutput component belongs to the Storm and the Databases families.
This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.
The Storm framework is deprecated from Talend 7.1 onwards. Use Talend Jobs for Apache Spark Streaming to accomplish your Streaming related tasks.
Basic settings
|
Property type |
Either Built-In or Repository. |
|
|
Built-In: No property data stored centrally. |
|
|
Repository: Select the repository file where the |
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
|
JDBC URL |
The JDBC URL of the database to be used. For |
|
Driver JAR |
Complete this table to load the driver JARs needed. To do For more information, see Importing a database driver. |
|
Class Name |
Enter the class name for the specified driver between double |
|
Username and |
The JDBC URL of the database to be used. For To enter the password, click the […] button next to the |
|
Table name |
Name of the table to be written. Note that only one table can |
|
Schema and |
A schema is a row description. It defines the number of fields |
|
Built-In: You create and store the schema locally for this component |
|
|
|
Repository: You have already created the schema and stored it in the |
Usage
|
Usage rule |
In a This component, along with the Storm family it belongs to, appears only when you are Note that in this documentation, unless otherwise explicitly stated, a scenario presents |
|
Storm Connection |
You need to use the Storm Configuration tab in the This connection is effective on a per-Job basis. |
Related scenarios
No scenario is available for the Storm version of this component
yet.
