Mark Grover created SPARK-12960:
-----------------------------------

             Summary: Some examples are missing support for python2
                 Key: SPARK-12960
                 URL: https://issues.apache.org/jira/browse/SPARK-12960
             Project: Spark
          Issue Type: Bug
          Components: PySpark
    Affects Versions: 1.6.0
            Reporter: Mark Grover
            Priority: Minor


Without importing the print_function, the lines later on like 
{code}
print("Usage: direct_kafka_wordcount.py <broker_list> <topic>", file=sys.stderr)
{code}
fail when using python2.*. Import fixes that problem and doesn't break anything 
on python3 either.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to