Versions Compared

Key

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

The kafka and zookeeper services are required for sending data to and from the Spark cluster. 

Spark applications must be configured with a set of Kafka topics that are either shared between multiple applications or dedicated to specific applications. The assigned topics must be created before you submit an application to the Spark service. Before you can create the topics you must start the Kafka and Zookeeper services.

See 5.2 Depcrecated Preparing and Creating Scripts for KPI Management on how to startup Spark, Kafka and zookeeper.

The topics are for transferring data to the Spark Application, receiving calculated KPIs from Spark and a third topic for alarms. The default names of the topics are kpi-input, kpi-output and kpi-alarm, but the names can be altered in the KPI Management Profile. Please note that the number of partitions must match the number of Kafka brokers


Retention Settings

The default data retention period in Kafka is one day. You can change the length of this period to conserve disk space.

Set the following properties in the copied file broker-defaultsfile server.properties in the config-folder of Kafka:

log.retention.bytes - Must be greater than value of the property log.segment.bytes

log.segementsegment.byte bytes - Must exceed the size of the input/output segments to and from Kafka

log.retention.ms hours - Must be greater than the largest window size in the service model by at least factor 3.

...