Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

fix defination of sc for streaming #59

Merged
merged 2 commits into from Apr 11, 2019

Conversation

NeoZhangJianyu
Copy link
Contributor

No description provided.

@@ -47,7 +47,7 @@
"from pyspark import SparkContext\n",
"from bigdl.util.common import *\n",
"\n",
"sc = SparkContext('local')\n"
"sc = SparkContext('local[2]')\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 2 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the min number of multiple threads.
how do you think local[*] ?
It means to use all of logic cores.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 is a tricky number, if it's not specifically required to be 2, * may be better

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I will update it to [*] soon.

@wzhongyuan wzhongyuan merged commit c4c984a into intel-analytics:master Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants