tSqoopExport
Defines the arguments required by Sqoop for transferring data to a
RDBMS.
tSqoopExport calls sqoop to transfer
data from the Hadoop Distributed File System (HDFS) to a relational database management
system (RDBMS).
Please be aware that some features provided by this component are
only supported by the latest Sqoop version. For further information
about the availability of each feature, see Apache’s documentation
about Sqoop.
Sqoop is typically installed in every Hadoop distribution. But if the Hadoop
distribution you need to use have no Sqoop installed, you have to install one on your
own and ensure to add the Sqoop command line to the PATH variable of that distribution.
For further information about how to install Sqoop, see the documentation of
Sqoop.
Additional arguments
|
Commandline mode |
Java API mode |
|---|---|
|
–driver |
jdbc.driver.class |
|
–direct-split-size |
import.direct.split.size |
|
–inline-lob-limit |
import.max.inline.lob.size |
|
–split-by |
db.split.column |
|
–warehouse-dir |
hdfs.warehouse.dir |
|
–enclosed-by |
codegen.output.delimiters.enclose |
|
–escaped-by |
codegen.output.delimiters.escape |
|
–fields-terminated-by |
codegen.output.delimiters.field |
|
–lines-terminated-by |
codegen.output.delimiters.record |
|
–optionally-enclosed-by |
codegen.output.delimiters.required |
|
–input-enclosed-by |
codegen.input.delimiters.enclose |
|
–input-escaped-by |
codegen.input.delimiters.escape |
|
–input-fields-terminated-by |
codegen.input.delimiters.field |
|
–input-lines-terminated-by |
codegen.input.delimiters.record |
|
–input-optionally-enclosed-by |
codegen.input.delimiters.required |
|
–hive-home |
hive.home |
|
–hive-import |
hive.import |
|
–hive-overwrite |
hive.overwrite.table |
|
–hive-table |
hive.table.name |
|
–class-name |
codegen.java.classname |
|
–jar-file |
codegen.jar.file |
|
–outdir |
codegen.output.dir |
|
–package-name |
codegen.java.packagename |
For further information about the arguments available in the Sqoop commandline mode,
see the documentation of Sqoop.
The arguments listed earlier for the Java API mode are subject to updates and changes
by Java. For further information about these arguments, see http://svn.apache.org/repos/asf/sqoop/trunk/src/java/org/apache/sqoop/SqoopOptions.java
tSqoopExport Standard properties
These properties are used to configure tSqoopExport running in the Standard Job framework.
The Standard
tSqoopExport component belongs to the Big Data and the File families.
The component in this framework is available when you are using one of the Talend solutions with Big Data.
Basic settings
|
Mode |
Select the mode in which Sqoop is called in a Job execution.
Use Commandline: the Sqoop shell is used to call Sqoop. In
Use Java API: the Java API is used to call Sqoop. In this |
||
|
Hadoop properties |
Either Built-in or Repository:
|
||
|
Distribution |
Select the cluster you are using from the drop-down list. The options in the
list vary depending on the component you are using. Among these options, the following ones requires specific configuration:
|
||
|
Hadoop Version |
Select the version of the Hadoop distribution you are using. The available
options vary depending on the component you are using. Along with the evolution of Hadoop, please note the following changes:
|
||
|
NameNode URI |
Type in the URI of the Hadoop NameNode, the master node of a Hadoop system. For |
||
|
JobTracker Host |
Select this check box and in the displayed field, enter the location of the This property is required when the query you want to use is executed in Windows Then you can continue to set the following parameters depending on the
configuration of the Hadoop cluster to be used (if you leave the check box of a parameter clear, then at runtime, the configuration about this parameter in the Hadoop cluster to be used will be ignored ):
For further information about these parameters, see the documentation or For further information about the Hadoop Map/Reduce framework, see the |
||
|
Use kerberos authentication |
If you are accessing the Hadoop cluster running
with Kerberos security, select this check box, then, enter the Kerberos principal name for the NameNode in the field displayed. This enables you to use your user name to authenticate against the credentials stored in Kerberos.
In addition, since this component performs Map/Reduce computations, you This check box is available depending on the Hadoop distribution you are |
||
| Use a keytab to authenticate |
Select the Use a keytab to authenticate Note that the user that executes a keytab-enabled Job is not necessarily |
||
|
Hadoop user name |
Enter the user name under which you want to execute the Job. Since a file or a directory in |
||
|
JDBC property |
Either Built-in or Repository:
|
||
|
Connection |
Type in the JDBC URL used to connect to the target |
||
|
User name and |
Type in the authentication information to the target To enter the password, click the […] button next to the If your password is stored in a file, select the The password is stored
in a file check box and enter the path to that file in the File path field that is displayed.
Note that this feature is available depending on the Sqoop version you are |
||
|
Driver JAR |
In either the Use Commandline mode or the Java API mode, you must add the driver file of the database to be |
||
|
Table Name |
Type in the name of the target table to which data is transferred |
||
|
Export Dir |
Enter the path to the source data to be transferred in |
||
|
Direct |
Select this check box to use the export fast path. |
||
|
Specify Number of Mappers |
Select this check box to indicate the number of map tasks (parallel processes) used to If you do not want Sqoop to work in parallel, enter 1 |
||
|
Call a stored procedure |
Select this check box to enable the component to call a specific You need to enter the name of the stored procedure to be used in Syntax and capabilities of stored procedures vary among different |
||
|
Use batch mode |
Select this check box to execute the statements in batch mode |
||
|
Clear staging table |
If you are using a specific staging table for the desired data |
||
|
Define a staging table |
Select this check box to create a staging table for the data to be For further information about whether a staging table is supported |
||
|
Specify how updates are performed when new |
Select this check box to determine the action to be taken when a
given update key does not have any matching records in the target table. You can then select either of the following options:
|
||
|
Use column for update |
Select this check box and in the table that is displayed, add the |
||
|
Print Log |
Select this check box to activate the Verbose check |
||
|
Verbose |
Select this check box to print more information while working, for example, the debugging |
Advanced settings
|
Use MySQL default delimiters |
Select this check box to use MySQL’s default delimiter set. This check box is available |
|
Define Java mapping |
Sqoop provides default configuration that maps most SQL types to appropriate Java types. |
|
Additional arguments |
Complete this table to use additional arguments if needs be. By adding additional arguments, you are able to perform multiple operations in one single |
|
Use speed parallel data transfers |
Select this check box to enable quick parallel data transfers between the Teradata
database and the Hortonworks Hadoop distribution. Then the Specific params table and the Use additional params check box appear to allow you to specify the Teradata parameters required by parallel transfers.
You must ensure that the Hortonworks Connector for Teradata has been Available in the Use Commandline |
|
Hadoop properties |
Talend Studio uses a default configuration for its engine to perform operations in a Hadoop distribution. If you need to use a custom configuration in a specific situation, complete this table with the property or properties to be customized. Then at runtime, the customized property or properties will override those default ones.
For further information about the properties required by Hadoop and its related systems such
as HDFS and Hive, see the documentation of the Hadoop distribution you are using or see Apache’s Hadoop documentation on http://hadoop.apache.org/docs and then select the version of the documentation you want. For demonstration purposes, the links to some properties are listed below:
|
|
Mapred job map memory mb and |
If the Hadoop distribution to be used is Hortonworks Data Platform V1.2 or Hortonworks In that situation, you need to enter the values you need in the Mapred If the distribution is YARN, then the memory parameters to be set become Map (in Mb), Reduce (in Mb) and |
|
Path separator in server |
Leave the default value of the Path separator in |
|
tStatCatcher Statistics |
Select this check box to collect log data at the component |
Global Variables
|
Global Variables |
ERROR_MESSAGE: the error message generated by the
EXIT_CODE: the exit code of the remote command. This is 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 |
Usage
|
Usage rule |
This component is used standalone. It respects the Sqoop prerequisites. You need necessary We recommend using the Sqoop of version 1.4+ in order to benefit the full functions of For further information about Sqoop, see the Sqoop manual on: http://sqoop.apache.org/docs/ |
|
Prerequisites |
The Hadoop distribution must be properly installed, so as to guarantee the interaction
For further information about how to install a Hadoop distribution, see the manuals |
|
Limitation |
If you have selected the Use Commandline mode, you need |
|
Connections |
Outgoing links (from this component to another):
Trigger: Run if; On Subjob Ok; On Incoming links (from one component to this one): Row: Iterate;
Trigger: Run if; On Subjob Ok; On For further information regarding connections, see |
Related scenarios
No scenario is available for the Standard version of this component yet.