I am trying to process the LogFile. first i read the log file and split these file as per my requirement and saved each column into separate JavaRDD. Now i need to convert t
You can directly read the file using sqlContext directly
Use read method of sqlContext
For more info you can follow this link
https://spark.apache.org/docs/1.6.0/sql-programming-guide.html#creating-dataframes
Or you can import the
import sqlContext.implicits.*;
Then use toDF() method on rdd to convert into dataframe.