Are you read csv file ? If so you can use spark-csv which support skip header
http://spark-packages.org/package/databricks/spark-csv On Thu, Dec 3, 2015 at 10:52 AM, Divya Gehlot <divya.htco...@gmail.com> wrote: > Hi, > I am new bee to Spark and Scala . > As one of my requirement to read and process multiple text files with > headers using DataFrame API . > How can I skip headers when processing data with DataFrame API > > Thanks in advance . > Regards, > Divya > > -- Best Regards Jeff Zhang