Github user mridulm commented on the pull request:
https://github.com/apache/spark/pull/182#issuecomment-38132212
This would be an incompatible interface change (which is why tests needed
to be modified !).
Better would be to allow override with the max core config while keeping
default (if unspecified, num threads to 1).
Btw, Runtime.getRuntime.availableProcessors() can return varying values
(vm's) includes ht cores, etc ..
---
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 [email protected] or file a JIRA ticket
with INFRA.
---