I use Zeppelin with Spark (Scala)
val sparkLicTextFilePath = "/home/tt/Software/spark-2.3.2-bin-hadoop2.7/LICENSE"
val licLines = sc.textFile(sparkLicTextFilePath)
licLines.foreach(line=>println(line))
However, nothing is print in the notebook so far. I did try with .collect()
to see if the RDD is empty or not. The RDD is ok and load file correctly.
Here is Zeppelin notebook screenshot
And some info about version of Zeppelin and spark
Zeppelin 0.8.0
Spark 2.3.2
Try to print few lines of the licLines and not all. Its probably that zeppelin is unable to print whole file.
Try:
val fewLicLines = licLines.take(5)
fewLicLines.foreach(line=>println(line))