I'm using AWS EMR at work. If I launch a spark shell I can run scala commands but can't read in a local file.
For example:
scala> val citi = spark.read.textFile("CitiGroup2006")
org.apache.spark.sql.AnalysisException: Path does not exist: hdfs://ip-10-99-99-99.ec2.internal:8020/user/hadoop/CitiGroup2006;
I tried entering the full path of the file but I get the same error. The file is in the same directory where I launched the spark shell. It does however work to load a scala file
:load hello.scala
Why does "load" work but not spark.read.textFile?