Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
3.0.0
-
None
-
None
Description
Spark shell failed to access external file to read content
Spark version 3.0, Hadoop version 3.2
Start spark normally, enter spark shell and enter Val B1= sc.textFile ("S3a: / / spark test / a.txt") is normal. When entering B1. Collect(). Foreach (println) to traverse and read the contents of the file, an error is reported
The error message is: java.lang.NumberFormatException : For input string: "100M"