
Warning
This component will be available in the Palette of the studio on the condition that you have subscribed to
one of the Talend solutions with Big
Data.
Component family |
Big Data / Riak |
|
Function |
tRiakInput reads data from a Riak |
|
Purpose |
tRiakInput allows you to extract |
|
Basic settings |
Schema and Edit Schema |
A schema is a row description. It defines the number of fields to be processed and passed on Since version 5.6, both the Built-In mode and the Repository mode are Click Edit schema to make changes to the schema. If the
|
Use existing connection |
Select this check box and in the Component List click the WarningIf you select the Use an existing |
|
Nodes |
Fill in the information required for a connection to a Riak
One example of the URL for accessing a Riak node is http://127.0.0.1:8098/riak. For more information about the concepts related to Riak, see http://docs.basho.com/riak/latest/theory/concepts/. |
|
Bucket |
Type in the name of the bucket from which you want to read |
|
Key |
Type in the key which is associated with the data that you want to |
|
Output key to column |
Select this check box and from the list select the desired column |
|
Values column |
Customize the columns to which the values will be output. |
|
Advanced settings |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at the |
Global Variables |
NB_LINE: the number of rows read by an input component or 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 always needs an output link. |
|
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. |
|
Limitation |
n/a |
The following scenario describes a Job which reads data from a Riak bucket and writes
it into a local txt file.

Prerequisites: The Riak bucket from which you want to
export data already exists. In this example, the data from the bucket computer will be exported and the bucket has already
imported the following
data:
1 2 3 4 5 |
id; company; brand; price; owner 001; Dell; Inspiron 15; 299; Amanda 002; Dell; Inspiron 15R; 549; Linda 003; HP; Pavilion 500-210qe; 539; Marina 004; HP; Pavilion 500-075; 599; Diana |
-
Drop the following components from the Palette to the design workspace: tRiakConnection, tRiakInput, tFileOutputDelimited, and tRiakClose.
-
Connect tRiakConnection to tRiakInput using a Trigger
> On Subjob Ok link. -
Connect tRiakInput to tFileOutputDelimited using a Row > Main link.
-
Connect tFileOutputDelimited to tRiakClose using a Trigger
> On Component Ok link.
Opening a connection to Riak
-
Double-click tRiakConnection to open its
Basic settings view in the Component tab. -
In the Nodes table, enter the information
of a Riak cluster you want to connect to.
Exporting data from a Riak bucket to a local file
-
Double-click tRiakInput to open its
Basic settings view in the Component tab. -
Click Edit schema to define the structure
of exported data. In this example, three columns are defined: id, company,
and price. -
Select the Use an existing connection
check box and then select the connection you have configured earlier. In
this example, it is tRiakConnection_1. -
In the Bucket field, enter the name of
the bucket from which the data will be exported, computer in this example. -
Select the Output key to column check box
, and select the desired column from the list. id is selected in this example. -
In the Value columns table, click twice
thebutton and select company and price from
the list respectively.
Writing data into a local file
-
Double-click tFileOutputDelimited to open
its Basic settings view in the Component tab. -
In the File Name field, enter the full
path to the local file in which you want to store the exported data,
D:/Output/computer.txt in this
example. -
Select the Include Header check
box. -
Leave other settings as they are.