title: How to read a zip containing multiple files in Apache Spark
body: <p>I am having a Zipped file containing multiple text files.
  I want to read each of the file and build a List of RDD containining the content of each files.</p>
  
  <pre><code>val test = sc.textFile("/Volumes/work/data/kaggle/dato/test/5.zip")
  </code></pre>
  
  <p>will just entire files, but how to iterate through each content of zip and then save the same in RDD using Spark.</p>
  
  <p>I am fine with Scala or Python.</p>
  
  <p>Possible solution in Python with using Spark -</p>
  
  <pre><code>archive = zipfile.ZipFile(archive_path, 'r')
  file_paths = zipfile.ZipFile.namelist(archive)
  for file_path in file_paths:
      urls = file_path.split("/")
      urlId = urls[-1].split('_')[0]
  </code></pre>