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

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Invalid
    • 1.4.0, 2.2.0
    • None
    • EC2, Examples, Input/Output, Java API
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: