How to find line break in text file using Pyspark?
<p>I am trying to load text file in spark, I am getting error like </p>

<pre><code>Input row doesn't have expected number of values required by the schema. 31 fields are required while 1 values are provided.
</code></pre>

<p>the file size is 20GB. Manually its not possible to check line by line. What is the best option to find the line break and to load the file? I am using pyspark to load.</p>