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

Python ML Pipeline Example has syntax errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1
    • 2.0.3, 2.1.0
    • Examples, ML
    • OS X

    Description

      $ ./bin/spark-submit examples/src/main/python/ml/pipeline_example.py
      File "/spark-2.0.0-bin-hadoop2.7/examples/src/main/python/ml/pipeline_example.py", line 38
      (0L, "a b c d e spark", 1.0),
      ^
      SyntaxError: invalid syntax

      Removing 'L' from all occurrences resolves the issue.

      Attachments

        Activity

          People

            as2 Jagadeesan A S
            nirmal Nirmal Fernando
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: