Component family |
Databases/JDBC |
|
Function |
tJDBCOutput writes, updates, If you have subscribed to one of the Talend solutions with Big Data, you are
|
|
Purpose |
tJDBCOutput executes the action |
|
Basic settings |
Property type |
Either Built-in or |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository |
|
Use an existing connection |
Select this check box and in the Component List click the NoteWhen a Job contains the parent Job and the child Job, if you need to share an existing
For an example about how to share a database connection across Job levels, see |
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
|
|
JDBC URL |
Type in the database location path |
|
Driver JAR |
Click the plus button under the table to add lines of the count of |
|
Class Name |
Type in the Class name to be pointed to in the driver. |
|
Username and |
Database user authentication data. To enter the password, click the […] button next to the |
|
Table |
Name of the table to be written. Note that only one table can be |
|
Action on data |
On the data of the table defined, you can perform:
Insert: Add new entries to the
Update: Make changes to existing Insert or update: Insert a new record. If the record with Update or insert: Update the record with the given
Delete: Remove entries Warning
It is necessary to specify at least one column as a |
|
Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on |
|
|
Built-In: You create and store the schema locally for this |
|
|
Repository: You have already created the schema and When the schema to be reused has default values that are integers or functions, ensure that For more details, see https://help.talend.com/display/KB/Verifying+default+values+in+a+retrieved+schema. |
Click Edit schema to make changes to the schema. If the
|
||
|
Die on error |
This check box is selected by default. Clear the check box to skip |
Specify a data source alias |
Select this check box and specify the alias of a data source created on the Talend Runtime side to use the shared connection pool defined in the data source configuration. WarningIf you use the component’s own DB configuration, your data source connection will be This check box is not available when the Use an existing |
|
Commit every |
Enter the number of rows to be completed before committing batches |
|
|
Additional Columns |
This option is not offered if you create (with or without drop) |
|
|
Name: Type in the name of the |
|
|
SQL expression: Type in the SQL |
|
|
Position: Select Before, Replace or After |
|
|
Reference column: Type in a |
|
Use field options |
Select this check box to customize a request, especially when |
|
Enable debug mode |
Select this check box to display each step during processing |
|
Use Batch |
Select this check box to activate the batch |
|
Batch Size |
Specify the number of records to be processed This field appears only when the Use Batch check box is selected. |
|
tStat |
Select this check box to collect log data at the component |
|
Enable parallel execution |
Select this check box to perform high-speed data processing, by treating multiple data flows
Note that when parallel execution is enabled, it is not possible to use global variables to Warning
|
Dynamic settings |
Click the [+] button to add a row in the table and fill The Dynamic settings table is available only when the For more information on Dynamic settings and context |
|
Global Variables |
NB_LINE: the number of rows processed. This is an After
NB_LINE_UPDATED: the number of rows updated. This is an
NB_LINE_INSERTED: the number of rows inserted. This is an
NB_LINE_DELETED: the number of rows deleted. This is an
NB_LINE_REJECTED: the number of rows rejected. This is an ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component offers the flexibility benefit of the database This component must be used as an output component. It allows you |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
Warning
The information in this section is only for users that have subscribed to one of
the Talend solutions with Big Data and is not applicable to
Talend Open Studio for Big Data users.
In a Talend Map/Reduce Job, tJDBCOutput, as well as the other Map/Reduce components preceding it,
generates native Map/Reduce code. This section presents the specific properties of
tJDBCOutput when it is used in that situation. For
further information about a Talend Map/Reduce Job, see Talend Big Data Getting Started Guide.
Component family |
MapReduce/Output |
|
Function |
tJDBCOutput writes entries in any |
|
Basic settings |
Property type |
Either Built-in or |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository |
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
|
|
JDBC URL |
Type in the database location path. For example, if a MySQL |
|
Driver JAR |
Click the [+] button under the |
|
Class Name |
Type in the Class name to be pointed to in the driver. For |
|
Username and |
Database user authentication data. To enter the password, click the […] button next to the |
|
Table name |
Name of the table to be written. Note that this must exist and |
|
Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on |
Built-In: You create and store the schema locally for this |
||
|
|
Repository: You have already created the schema and |
Advanced settings |
Use Batch Size |
When selected, enables you to define the number of lines in each |
Usage |
In a Talend Map/Reduce Job, it is used as an end component and requires This component, along with the MapReduce family it belongs to, appears only when you are Note that in this documentation, unless otherwise explicitly stated, a scenario presents |
|
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 the Map/Reduce It may work with other databases as well, but these may not |
Warning
The information in this section is only for users that have subscribed to one of
the Talend solutions with Big Data and is not applicable to
Talend Open Studio for Big Data users.
In a Talend Storm Job, tJDBCOutput,
as well as the other Storm components preceding it, generates native Storm code to build
the Storm topology to be seamlessly used in your Storm ecosystem. This section presents
the specific properties of tJDBCOutput when it is used
in that situation. For further information about a Talend Storm Job, see
Talend Big Data Getting Started Guide.
Component family |
Storm/Output |
|
Function |
tJDBCOutput writes entries in any |
|
Basic settings |
Property type |
Either Built-in or |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository |
|
Click this icon to open a database connection wizard and store the For more information about setting up and storing database |
|
|
JDBC URL |
Type in the database location path. For example, if a MySQL |
|
Driver JAR |
Click the [+] button under the |
|
Class Name |
Type in the Class name to be pointed to in the driver. For |
|
Username and |
Database user authentication data. To enter the password, click the […] button next to the |
|
Table name |
Name of the table to be written. Note that this must exist and |
|
Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on |
Built-In: You create and store the schema locally for this |
||
|
|
Repository: You have already created the schema and |
Usage |
In a Talend Storm Job, it is used as an end component. The other 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. |
|
Limitation |
n/a |
For tJDBCOutput related topics, see:
If you are a subscription-based Big Data user, you can as well
consult a Talend Map/Reduce Job using the Map/Reduce version of
tJDBCOutput: