Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
nameKafka Profile

...

In the Kafka profile configuration, you define which Kafka broker to consume messages from or produce messages to, if

...

security shall be applied, and if other specific settings for communication

...

are needed.

Configuration

To create a new Kafka profile configuration, click on the New Configuration button and

...

select Kafka Profile from the Configurations dialog.

The Kafka profile configuration contains two tabs

...

; Connectivity and Advanced.

Connectivity tab

The Connectivity tab is displayed by default when creating or opening a Kafka profile.

...

kafkaProfile.pngImage Added

The Connectivity tab contains the following settings:

Setting

Description

Host

Hostname of the Kafka broker.

Port

Port of the Kafka broker.

Security Profile

...

If you want to have a secure connection, click Browse… to select a

...

Security profile with the certificate and configuration you want to use,

...

see Security (4.2) for more information about the Security profile.

Advanced tab

In the Advanced tab, you can configure properties for optimizing the performance of the Kafka Producer and Consumer. The Advanced tab contains two tabs

...

; Producer and Consumer.

Producer tab

In the Producer tab, you can configure the properties of the Kafka forwarding agent. 

...

kafkaProfile_advanced.pngImage Added

Kafka profile configuration - Producer tab in the Advanced tab

...

When running in Acknowledged execution mode, the property producer.full.response determines if the data sent to the Kafka log is also included in the response UDR. The value is set to true by default. Setting the value to false reduces the memory footprint.

For information on how to configure the properties for SSL and Kerberos,

...

see https://www.cloudera.com/documentation/kafka/latest/topics/kafka_security.html.

...

info

Note!

Once you have edited the JAAS file required for Kerberos, you will need to restart the EC to register the changes made.

Info

Note!

If you make any changes to the security configuration of the Kafka Producer, any topics used must be recreated before they can be used.

For further information on the properties

...

, see https://kafka.apache.org.

Enabling Compression for Kafka

Compression for messages to be sent to Kafka brokers can now be enabled from the Advanced producer properties. The compression codec utilized by the system follows the standard Kafka library, where Gzip, Lz4 and Snappy are supported.

To enable compression, just add the property compression.type into the Advanced producer properties

...

and add the value, gzip, lz4snappy or none.

Consumer tab

In the Consumer tab, you can configure the properties of the Kafka collection agent.

...

kafkaProfile_advancedConsumer.pngImage Added

See the text in the Advanced consumer properties field for further information about the properties.