I'm using Java-Spark, I'm get message from Kafka topic that indicate on zip file path, I want to take this zip file and to extract it to HDFS.
I have code that read messages from Kafka with Spark Structured Stream.
What is the way to extract the files to HDFS?
I'm using ZipFile
from net.lingala.zip4j.core.ZipFile
as follow:
ZipFile zipFile = new ZipFile(pathFromKafka);
zipFile.extractAll("?");//What should I write here?