Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass pass a range object to SparkContext parallelize #2

Open
jazberna1 opened this issue Apr 14, 2019 · 0 comments
Open

pass pass a range object to SparkContext parallelize #2

jazberna1 opened this issue Apr 14, 2019 · 0 comments

Comments

@jazberna1
Copy link

Hello Matthew,

I see in the join demo that you pass a range object to SparkContext.parallelize

https://github.com/jleetutorial/python-spark-streaming/blob/master/3_advanced/1_Stream-Stream%20Join%20Demo.ipynb

In the Spark documentation it says that SparkContext.parallelize takes an iterable or a collection.

https://spark.apache.org/docs/2.1.1/programming-guide.html#parallelized-collections

I am not quite sure that a range object is one of those (iterable orcollection) so I got surprised the example works. Actually I does not work for me and the resulting rdd seems empty.

Any comment on this would be appreciated

Thanks

Jorge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant