---
sourceDocument: Yokohama Data and Automation
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/integrate-applications

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Data and Automation

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the ETL and Transform Map consumers to import data

# Use the ETL and Transform Map consumers to import data {#ariaid-title1}

Release version: Yokohama  
Updated January 30, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read  
Use ETL definitions and transform maps to process Kafka events. ETL definitions and transform maps specify the transformation logic to use when pulling data through scheduled imports. You can use the same ETL definitions and
transform maps to transform the events received through Kafka.

## Before you begin

* Role required: integration_hub_admin
* This page is part of the [Stream Connect quick start guide](https://www.servicenow.com/docs/9I3lypu_znz7H~jie1bviw "This quick start guide gives you an overview of how to set up and use each of the six Stream Connect producers and consumers to exchange data between your ServiceNow instance and a Kafka environment.").
* This document shows you how to consume messages through your connection to Hermes. To set up and test your connection, see [Set up a secure connection to the Hermes Messaging Service](https://www.servicenow.com/docs/Yrk0917Z2TCQtX7D0Os7tQ "Secure your Kafka topics by generating a ServiceNow instance-signed certificate.") and [Testing the connection to Hermes through the ADCv2 gateway](https://www.servicenow.com/docs/R8MtvsDRzY~6~ZAKZxFUwg "Verify the keystore and truststore have been correctly generated by testing the connection to Hermes through the ADCv2 gateway.").
* The first part of this page shows you how to use the ETL Consumer to consume messages. To use the ETL consumer, you need a [robust import set transformer](https://www.servicenow.com/docs/JDVXTUlaQf86QnDh4Mk4bA "Use robust import set transformers instead of transform maps if you want to extract, transform, and load data to one or more target tables.").
* The second part of this page shows you how to use a Transform Map consumer to consume messages. To use the Transform Map Consumer, you need a [transform map](https://www.servicenow.com/docs/UmuNeKaG91ay2KkzRo9jfA "A transform map is a set of field maps that determine the relationships between fields in an import set and fields in an existing ServiceNow table, such as Incident [incident] or User [sys_user].").
{#use-etl-transform-map-consumers__ul_gm5_njx_cyb}

## Procedure

1. Create a topic to consume ETL and transform map consumer messages.
   1. Use the following command to create a topic in Hermes.  
      In this example, the topic name is topic2.

          bin/kafka-topics.sh --create --command-config config/bootcamp.properties  --bootstrap-server <instance name>.service-now.com:4000,<instance name>.service-now.com:4001,<instance name>.service-now.com:4002, <instance name>.service-now.com:4003 --topic snc.<instance name>.topic2

      Be sure to replace `<instance name>` with the name of your instance.
   2. To view the topic, log in to the instance and navigate to AllIntegrationHubStream ConnectTopics.  
      Note:  
      It takes approximately 10 minutes to create a topic.
   {#use-etl-transform-map-consumers__substeps_lv3_ylx_cyb}
2. Create an ETL Consumer to consume data from the topic.
   1. Navigate to AllIntegrationHubConsumersETL Consumer.
   2. Select New.
   3. On the Kafka Consumer form, enter a name in the Name field.  
      This example uses the name Member Import.
   4. For the Robust import set transformer filed, select an existing Robust import set transformer.  
      For the robust import set transformer, select one that is not using the option to store data in a single column. To be able to see the messages, make sure the robust import set transformer has the Verbose option enabled.
   5. Deselect the Data in single column option.  
      This option should only be selected for import set tables with data in a single column.
   6. Set the Column mapping to Label.  
      This means the input message's JSON keys are mapped to the column labels of the Import Set table.  
   7. Save the form.
   8. [Create a Kafka stream](https://www.servicenow.com/docs/3pJU8Q~nsMqBUW6SDLhDNQ "Define a data stream for an Extract Transform Load (ETL), Transform Map, or Script consumer. A Kafka stream defines the stream of data to your consumer.") for the consumer.
   9. On the Kafka Stream form, set the following field values.  
      * Name to <kbd class="ph userinput">Topic2 Stream</kbd>.
      * Topic to the topic created earlier, topic2.
      * Max concurrency to <kbd class="ph userinput">1</kbd>.
      * Start Consuming to Messages received after the first activation.
      * Message handling to Automatically optimize.
      {#use-etl-transform-map-consumers__ul_pbp_rqm_2yb}
   10. Select the Activate link under Related Links.  
       You should be able to see the activated subscription.  
   {#use-etl-transform-map-consumers__substeps_ajg_hkx_cyb}
3. Publish messages to topic2.
   1. Run the following command to publish messages to topic2.  

          bin/kafka-console-producer.sh --topic snc.<instance name>.topic2  --producer.config  config/bootcamp.properties  --bootstrap-server <instance name>.service-now.com:4000,<instance name>.service-now.com:4001,<instance name>.service-now.com:4002,<instance name>.service-now.com:4003

      Be sure to replace `<instance name>` with the name of your instance.

      This command prompts you for messages.
   2. Send the following JSON message.  

          {"city":"San Diego","name":"Jhon","id":"SN001","state":"California"}

      You can send this message with any values, but the JSON message key should match the Import Set table labels.
   3. Navigate back to the ETL Consumer you created.  
      After about one minute, the data should have been imported through the import set.  
   4. To view detailed information about the import set, select the import set number.  
   5. To view detailed information about an import set row, select the import set row number.  
   {#use-etl-transform-map-consumers__substeps_uzy_4kx_cyb}
4. Create a Transform Map Consumer to consume data.
   1. Navigate to AllIntegrationHubConsumersTransform Map Consumer.
   2. Select New.
   3. On the Kafka Transform Map Consumer form, enter a name in the Name field.
   4. For the Transform Map field, select an existing transform map.  
   5. Save the form.
   6. [Create a Kafka stream](https://www.servicenow.com/docs/3pJU8Q~nsMqBUW6SDLhDNQ "Define a data stream for an Extract Transform Load (ETL), Transform Map, or Script consumer. A Kafka stream defines the stream of data to your consumer.") for the consumer.
   7. On the Kafka Stream form, set the following field values.  
      * Name to <kbd class="ph userinput">Transform Map Stream</kbd>.
      * Topic to the topic created earlier, topic2.
      * Max concurrency to <kbd class="ph userinput">1</kbd>.
      * Start Consuming to Messages received after the first activation.
      * Message handling to Automatically optimize.
      {#use-etl-transform-map-consumers__ul_u4q_1wm_2yb}
   8. Select the Activate link under Related Links.  
      You should be able to see the activated subscription.  
   {#use-etl-transform-map-consumers__substeps_yt5_vkx_cyb}
5. Publish messages to topic2.
   1. Run the following command to publish messages to topic2.  

          bin/kafka-console-producer.sh --topic snc.<instance name>.topic2  --producer.config  config/bootcamp.properties  --bootstrap-server <instance name>.service-now.com:4000,<instance name>.service-now.com:4001,<instance name>.service-now.com:4002,<instance name>.service-now.com:4003

      Be sure to replace `<instance name>` with the name of your instance.

      This command prompts you for messages.
   2. Send the following JSON message.  

          {"city":"San Diego","name":"Jhon","id":"SN001","state":"California"}

      You can send this message with any values, but the JSON message key should match the Import Set table labels.
   3. Go to the Transform Map Consumer you created.  
      After about one minute, the data should have been imported through the import set.
   4. To view detailed information about the import set, select the import set number as in step 3d above.
   {#use-etl-transform-map-consumers__substeps_t4b_clx_cyb}

## What to do next

[Use the Kafka Producer step and the ProducerV2 API to publish messages](https://www.servicenow.com/docs/l3QrbqqY8dm_42_BZ5_n1Q "Push data from ServiceNow to Hermes so that the Kafka consumers can read them.").

*[\>]: and then


