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