Skip to content

Commit

Permalink
fix wrong use of sparkSession vs sparkContext
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyinz committed Jan 9, 2025
1 parent 5bc6e32 commit 3f2d358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mspasspy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def __init__(
.master(self._spark_master_url)
.getOrCreate()
)
spark.parallelize([1, 2, 3, 4, 5]).collect()
spark.sparkContext.parallelize([1, 2, 3, 4, 5]).collect()
self._spark_context = spark.sparkContext
except Exception as err:
raise MsPASSError(
Expand Down

0 comments on commit 3f2d358

Please sign in to comment.