Now let's start looking at the implementation of batch data analytics. Batch data analytics consists of two important elements:
Let's assume that the sensors are enabled to write data to Kafka topics. Microcomputers such as the Raspberry Pi can be used to develop the interface between sensors and Kafka. In this section, we are going to see how we get the data from Kafka topics and write it to the HDFS folder.
To import the data from Kafka, first you need to have Kafka running on your machine. The following command starts Kafka and Zookeeper: