August 17, 2023

tRiakOutput – Docs for ESB 5.x

tRiakOutput

triakoutput_icon32_white.png

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.

tRiakOutput properties

Component family

Big Data / Riak

 

Function

tRiakOutput receives data from
the preceding component, and writes data into a Riak bucket.

Purpose

tRiakOutput allows you to write
data into or delete data from a bucket in a Riak cluster.

Basic settings

Schema and Edit schema

A schema is a row description. It defines the number of fields to be processed and passed on
to the next component. The schema is either Built-In or
stored remotely in the Repository.

Since version 5.6, both the Built-In mode and the Repository mode are
available in any of the Talend solutions.

Click Edit schema to make changes to the schema. If the
current schema is of the Repository type, three options are
available:

  • View schema: choose this option to view the
    schema only.

  • Change to built-in property: choose this option
    to change the schema to Built-in for local
    changes.

  • Update repository connection: choose this option to change
    the schema stored in the repository and decide whether to propagate the changes to
    all the Jobs upon completion. If you just want to propagate the changes to the
    current Job, you can select No upon completion and
    choose this schema metadata again in the [Repository
    Content]
    window.

 

 

Built-In: You create and store the schema locally for this
component only. Related topic: see Talend Studio
User Guide.

 

 

Repository: You have already created the schema and
stored it in the Repository. You can reuse it in various projects and Job designs. Related
topic: see Talend Studio User Guide.

When the schema to be reused has default values that are integers or functions, ensure that
these default values are not enclosed within quotation marks. If they are, you must remove
the quotation marks manually.

For more details, see https://help.talend.com/display/KB/Verifying+default+values+in+a+retrieved+schema.

 

Use existing connection

Select this check box and in the Component List click the
relevant connection component to reuse the connection details you already defined.

Warning

If you select the Use an existing
connection
check box, the Nodes table will not be available.

 

Nodes

Fill in the information required for a connection to a Riak
cluster.

  • Host: enter the IP
    address or hostname of a Riak node in the Riak cluster that
    you want to connect to.

  • Port: enter the listening
    port number of a Riak node. You can leave this field empty
    to use its default value 8098.

  • Riak path: enter the Riak
    path for accessing a Riak node. You can leave this field
    empty to use its defalt value 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

Specify the name of the bucket to which you want to apply
changes.

 

Action on data

In the specified bucket, you can perform:

  • Upsert: Insert data if
    they do not exist or update the existing data.

  • Delete: Remove values
    associated with the specified key.

Warning

If you select Delete from
the Action on data list, only
the Key column list is
available in the Key
area.

 

Auto generate the key

Select this check box to let the Riak system generate keys for the
values automatically.

 

Key column

Select one column from the list to write its data into the Riak
bucket as keys. Note that the key must be unique across one
bucket.

 

Value columns

Customize the columns to write their data into the Riak bucket as
values.

Advanced settings

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at the
Job level as well as at each component level.

Global Variables

UPSERT_NB_LINE: the number of rows inserted and updated.
This is an After variable and it returns an integer.

DELETE_NB_LINE: the number of rows deleted. This is an
After variable and it returns an integer.

ERROR_MESSAGE: the error message generated by the
component when an error occurs. This is an After variable and it returns a string. This
variable functions only if the Die on error check box is
cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable
functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl +
Space
to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio
User Guide.

Usage

This component is used as an output component and it always needs
an incoming link.

Log4j

The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User
Guide
.

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

Related Scenario

No scenario is available for this component yet.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x