GitHub user zsxwing opened a pull request:

    https://github.com/apache/spark/pull/8315

    [SPARK-9812][Streaming]Fix Python 3 compatibility issue in PySpark 
Streaming and some docs

    This PR includes the following fixes:
    1. Use `range` instead of `xrange` in `queue_stream.py` to support Python 3.
    2. Fix the issue that `utf8_decoder` will return `bytes` rather than `str` 
when receiving an empty `bytes` in Python 3.
    3. Fix the commands in docs so that the user can copy them directly to the 
command line. The previous commands was broken in the middle of a path, so when 
copying to the command line, the path would be split to two parts by the extra 
spaces, which forces the user to fix it manually.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zsxwing/spark SPARK-9812

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/8315.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #8315
    
----
commit 369ac4915edc8327cb1a7e072c0ddac3523ce44f
Author: zsxwing <zsxw...@gmail.com>
Date:   2015-08-19T14:51:27Z

    Fix Python 3 compatibility issue in PySpark Streaming and some docs

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to