Extracting information from the message - 7.3

Kafka

Version
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Messaging components (Integration) > Kafka components
Data Quality and Preparation > Third-party systems > Messaging components (Integration) > Kafka components
Design and Development > Third-party systems > Messaging components (Integration) > Kafka components
Last publication date
2024-02-21

Procedure

  1. Double-click tJavaStorm to open its Component view.
  2. Click the [...] button next to Edit schema to open the schema editor.
  3. On the output side (right), click the [+] button three times to add three rows and in the Column column, rename them to firstname, gender and activity, respectively. These columns correspond to the information you can extract from the sample message.
  4. Click OK to validate these changes and accept the propagation prompted by the pop-up dialog box.
  5. In the Bolt code area, enter the main method of the bolt to be executed. In this scenario, the code is as follows: String[] tokens = input.get_str().split("\\|"); collector.emit(new Values( tokens[0], tokens[1], tokens[2] ));