You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Mark Grover (JIRA)" <ji...@apache.org> on 2016/01/22 00:44:40 UTC

[jira] [Created] (SPARK-12960) Some examples are missing support for python2

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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org