tSqlRow
Performs SQL queries over input datasets.
tSqlRow registers
input RDDs (Resilient Distributed Datasets) as tables and applies queries on these
tables.
Depending on the Talend solution you
are using, this component can be used in one, some or all of the following Job
frameworks:
-
Spark Batch: see tSqlRow properties for Apache Spark Batch.
The component in this framework is available only if you have subscribed to one
of the
Talend
solutions with Big Data. -
Spark Streaming: see tSqlRow properties for Apache Spark Streaming.
The component in this framework is available only if you have subscribed to Talend Real-time Big Data Platform or Talend Data
Fabric.
tSqlRow properties for Apache Spark Batch
These properties are used to configure tSqlRow running in the Spark Batch Job framework.
The Spark Batch
tSqlRow component belongs to the Processing family.
The component in this framework is available only if you have subscribed to one
of the
Talend
solutions with Big Data.
Basic settings
|
Schema and Edit schema |
A schema is a row description. It defines the number of fields (columns) to
Click Edit schema to make changes to the
|
|
SQL context |
Select the query languages you want tSqlRow to use.
|
|
Query |
Enter your query paying particularly attention to properly sequence The tSqlRow |
Advanced settings
|
Register UDF jars |
Add the Spark SQL or Hive SQL UDF (user-defined function) jars you want tSqlRow to use. If you do not want to call your UDF using its Once you add one row to this table, click it to display the […] button and then click this |
|
Temporary UDF functions |
Complete this table to give each imported UDF class a temporary function name to be used If you have selected SQL Spark Context from the SQL context list, the UDF output |
Usage
|
Usage rule |
This component is used as an intermediate step. This component, along with the Spark Batch component Palette it belongs to, appears only Note that in this documentation, unless otherwise |
|
Spark Connection |
You need to use the Spark Configuration tab in
the Run view to 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 related scenario, see Performing download analysis using a Spark Batch Job.
tSqlRow properties for Apache Spark Streaming
These properties are used to configure tSqlRow running in the Spark Streaming Job framework.
The Spark Streaming
tSqlRow component belongs to the Processing family.
The component in this framework is available only if you have subscribed to Talend Real-time Big Data Platform or Talend Data
Fabric.
Basic settings
|
Schema and Edit schema |
A schema is a row description. It defines the number of fields (columns) to
Click Edit schema to make changes to the
|
|
SQL context |
Select the query languages you want tSqlRow to use.
|
|
Query |
Enter your query paying particularly attention to properly sequence The tSqlRow |
Advanced settings
|
Register UDF jars |
Add the Spark SQL or Hive SQL UDF (user-defined function) jars you want tSqlRow to use. If you do not want to call your UDF using its Once you add one row to this table, click it to display the […] button and then click this |
|
Temporary UDF functions |
Complete this table to give each imported UDF class a temporary function name to be used If you have selected SQL Spark Context from the SQL context list, the UDF output |
Usage
|
Usage rule |
This component is used as an intermediate step. This component, along with the Spark Streaming component Palette it belongs to, appears Note that in this documentation, unless otherwise explicitly stated, a scenario presents |
|
Spark Connection |
You need to use the Spark Configuration tab in
the Run view to 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
No scenario is available for the Spark Streaming version of this component
yet.