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

Unhelpful error messages when trying to load data from file.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None

      Description

      I'm attempting to do the simple task of reproducing the results from the linear regression example in Spark. I'm using Windows 10.

      val training = spark.read.format("libsvm")
      .load("C:Users\\brand\\Documents\\GitHub
      sample_linear_regression_data.txt")

      Although the file is definitely at the specified location, I just get a java.lang.NullPointerException at this line. The documentation at http://spark.apache.org/docs/latest/sql-programming-guide.html#generic-loadsave-functions doesn't seem to clear things up. The associated javadocs do do not seem any better.

      In my view, such a simple operation should not be troublesome, but perhaps I've missed some critical documentation - if so, I apologize.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              brandon.barker@gmail.com Brandon Barker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: