You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/01/23 13:55:39 UTC

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

     [ https://issues.apache.org/jira/browse/SPARK-12960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen updated SPARK-12960:
------------------------------
    Assignee: Mark Grover

> 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
>            Assignee: Mark Grover
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 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