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

java.io.IOException: Expected 12 fields, but got 5 for row :Spark submit error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Invalid
    • Affects Version/s: 1.4.0, 2.2.0
    • Fix Version/s: None
    • Component/s: EC2, Examples, Input/Output, Java API
    • Labels:
      None
    • Flags:
      Important

      Description

      Hello

      I'm trying to run a spark application (distributedWekaSpark) but  when I'm using the spark-submit command I get this error

      ERROR Executor: Exception in task 0.0 in stage 0.0 (TID 0) java.io.IOException: Expected 12 fields, but got 5 for row: outlook,temperature,humidity,windy,play

      I tried with other datasets but always the same error appeared, (always 12 fields expected)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Fray Rawia
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: