Skip to content

Fix hang on master=local #16

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

Open
wants to merge 1 commit into
base: spark3
Choose a base branch
from

Conversation

dolfinus
Copy link

@dolfinus dolfinus commented Jan 10, 2025

Using this connector with session created with .master("local[1]") hang because sparkContext.getExecutorMemoryStatus() always return 1, so guess is always 0, and while loop never ends. This was already reported in #14.

Added a check that if session created with .master("local") or .master("local[N]"), the value of sparkContext.defaultParallelism is returned:

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

Successfully merging this pull request may close these issues.

1 participant