Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-34925

Spark shell failed to access external file to read content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.0.0
    • None
    • Spark Shell
    • 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"

      Attachments

        Activity

          People

            Unassigned Unassigned
            czh czh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: