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

[jira] [Assigned] (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 ]

Apache Spark reassigned SPARK-12960:
------------------------------------

    Assignee:     (was: Apache Spark)

> 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