You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Davies Liu (JIRA)" <ji...@apache.org> on 2016/01/22 06:18:39 UTC
[jira] [Resolved] (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 ]
Davies Liu resolved SPARK-12960.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Issue resolved by pull request 10872
[https://github.com/apache/spark/pull/10872]
> 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
> 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