Skip to content

Updated JavaSparkPi#26605

Closed
hiamitchaurasia wants to merge 1 commit intoapache:masterfrom
hiamitchaurasia:patch-1
Closed

Updated JavaSparkPi#26605
hiamitchaurasia wants to merge 1 commit intoapache:masterfrom
hiamitchaurasia:patch-1

Conversation

@hiamitchaurasia
Copy link

To resolve below error:
Exception in thread "main" org.apache.spark.SparkException: A master URL must be set in your configuration

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

To resolve below error:
Exception in thread "main" org.apache.spark.SparkException: A master URL must be set in your configuration
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

SparkSession spark = SparkSession
.builder()
.appName("JavaSparkPi")
.config("spark.master", "local")
Copy link
Member

Choose a reason for hiding this comment

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

This example is supposed to run with, for example, ./bin/run-example JavaSparkPi 10. I think it's fine without the master.

@hiamitchaurasia hiamitchaurasia deleted the patch-1 branch November 22, 2019 16:24
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.

3 participants