I am currently using Apache Zeppelin 0.8. I tried loading a csv file like this :
val df = spark.read.option("header", "true").option("inferSchema", "true").csv("/path/to/csv/name.csv")
I have also tried this :
val df = spark.read.format("csv").option("header", "true").option("inferSchema", "true").load("/path/to/csv/name.csv")
However, it fails printing out the following :
org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 2.0 failed 1 times, most recent failure: Lost task 0.0 in stage 2.0 (TID 2, localhost, executor driver): java.lang.NoSuchMethodError: org.apache.hadoop.fs.FileSystem$Statistics.getThreadStatistics()Lorg/apache/hadoop/fs/FileSystem$Statistics$StatisticsData;
NOTE THAT : Problem is solved IF I specify my own build for Spark using the SPARK_HOME env variable in zeppelin-env.sh. However, I would still like a solution to this that does not require me to do so, as I have a few other libraries that do not work with that version of Spark.