Local working directories

As with Apache Spark processes, Apache Kafka processes also require their own local working directories to persist local data and log files. The following commands will create defined local directories in which to store these local working outputs, the paths of which you can edit as per your preferences:

> mkdir -p /data/zookeeper/local/data> mkdir -p /data/kafka/local/logs

Get Machine Learning with Apache Spark Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.