0.0.7-2022.1.1 • Published 2 months ago

@itentialopensource/kafka-producer v0.0.7-2022.1.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 months ago

Kafka Producer

Table of Contents

Overview

This Pre-Built Automation contains a workflow designed to send non-encrypted messages to a specific Kafka topic.

Estimated Run Time: < 1 min

Installation Prerequisites

Users must satisfy the following pre-requisites:

* If using Avro, please follow this guide.

Requirements

This artifact requires the following:

  • Kafka Server

Features

The main benefits and features of the artifact are outlined below.

  • Reusable workflow that can be altered according to one need.
  • Allows zero-touch mode of operation.

How to Install

To install the artifact:

  • Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Requirements section.
  • The artifact can be installed from within App-Admin_Essential. Simply search for the name of your desired artifact and click the install button (as shown below).

How to Run

To run the artifact:

  • Navigate to Operations Manager in IAP and select the Kafka Producer Pre-Built.
  • Select the existing manual trigger and complete the form that displays with the following details.

    Form ElementDescription
    Zero TouchSelect checkbox to eliminate user interactions.
    Kafka Adapter IdName of your Kafka adapter.
    TopicKafka topic name to which messages should be sent.
    MessagesThe messages that will be sent to the specified Kafka topic name. Message can be a string or a JSON object. For example: hello, world or {"foo": "bar"}.

How to Send Encrypted Messages Using Avro

To encrypt messages using Avro:

  • Make sure your Kafka server has a Schema Registry setup.
  • Modify the reusable Kafka Producer workflow by clicking the Merge operation task and then adding the following keys.

    KeyDescription
    simpleCan be either YES(send message without encrypting) or NO (encrypt messages).
    key_versionVersion number of the Schema key specified in the Schema registry.
    value_versionVersion number of the Schema value specified in the Schema registry.
  • Specify the port address for the "registry_url" property in your your Kafka adapter configuration (required).

    registry_url: <schema_registry_addr:port>

Additional Information

To learn more about Kafka Avro, use this document.