tJavaStorm Storm properties - 7.1

Java custom code for Storm

author
Talend Documentation Team
EnrichVersion
Cloud
7.1
EnrichProdName
Talend Data Fabric
Talend Open Studio for Big Data
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Custom code components (Integration) > Java custom code component for Storm
Data Quality and Preparation > Third-party systems > Custom code components (Integration) > Java custom code component for Storm
Design and Development > Third-party systems > Custom code components (Integration) > Java custom code component for Storm
EnrichPlatform
Talend Studio

These properties are used to configure tJavaStorm running in the Storm Job framework.

The Storm tJavaStorm component belongs to the Custom Code family.

This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.

Basic settings

Schema and Edit Schema

A schema is a row description. It defines the number of fields (columns) to be processed and passed on to the next component. When you create a Spark Job, avoid the reserved word line when naming the fields.

 

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.

 

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.

Bolt code

Enter the body of the main method of the bolt you want to execute.

Advanced settings

Bolt advanced code

This area allows you to define the classes, variables and methods that you want to use along with the execute method of the bolt defined in the Basic settings view. Note that the advanced code is not required for using tJavaStorm.

Two fields are available for this purpose:

Implement the prepare code: select this check box and in the displayed field, define the prepare method to set up the environment in which the bolt is executed.

Implement the cleanup method: select this check box and in the displayed field, define the cleanup method you want to use to finalize a topology.

Usage

Usage rule

Once a Storm Job is opened in the workspace, tJavaStorm appears in the Palette of the Studio. It is used as an intermediate step in a Storm Job.

Note that in this documentation, unless otherwise explicitly stated, a scenario presents only Standard Jobs, that is to say traditional Talend data integration Jobs.

Storm Connection

You need to use the Storm Configuration tab in the Run view to define the connection to a given Storm system for the whole Job.

This connection is effective on a per-Job basis.