Data Frames : Reading TextFile

Hello All ,

How to read a textFile using Spark dataframe ?

I have tried orderDF ="/user/cloudera/Amit/Orders") but it was throwing error.

Anyone please help me on this.

Regards ,

Can you share the error you were getting?

More info. And you want to try…) and see what that gets but you need to include the top of your stack trace. You do not need to post the entire trace. “Orders” does not look like a file name. What is it?