How can i make dataset/dataframe from compressed(.zip) local file in apache spark
<p>I have large compressed(.zip) files around 10 GB each. I need to read content of file inside zip without unzipping it and want to apply transformations.</p>

<pre><code>   System.setProperty("HADOOP_USER_NAME", user)

   println("Creating SparkConf")
   val conf = new SparkConf().setAppName("DFS Read Write Test")

   println("Creating SparkContext")
   val sc = new SparkContext(conf)

   var textFile = sc.textFile(filePath)

   println("Count...."+textFile.count())

   var df = textFile.map(some code)
</code></pre>

<p>`
When i passing a any .txt,.log,.md etc.. above is working fine. But when pass .zip files the it giving Zero Count. </p>

<ol>
<li>Why it is giving count Zero</li>
<li>Please suggest me correct way of doing this, If am totally wrong.</li>
</ol>