i m facing issue with scala IDE (ubuntu), method toDF not working correcly see my code
import org.apache.spark.SparkContext
import org.apache.spark.SparkConf
import org.apache.spark.rdd.RDD
object ScalaTextSearch {
def main(args: Array[String]) {
val conf = new SparkConf()
.setAppName("TextSearch")
val sc = new SparkContext(conf)
val texte = sc.textFile(args(0))
val df = texte.toDF("line")
thanks