Skip to content
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

Pass kwargs in python create_rf_spark_session to spark conf #361

Merged

Conversation

vpipkt
Copy link
Member

@vpipkt vpipkt commented Sep 20, 2019

No description provided.

Signed-off-by: Jason T. Brown <jason@astraea.earth>
@vpipkt vpipkt added this to the 0.8.2 milestone Sep 20, 2019
@vpipkt vpipkt requested a review from metasim September 20, 2019 19:46
Copy link
Member

@metasim metasim left a comment

Choose a reason for hiding this comment

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

This is super!

""" Create a SparkSession with pyrasterframes enabled and configured. """
jar_path = find_pyrasterframes_assembly()

if 'spark.jars' in kwargs.keys():
if 'pyrasterframes' not in kwargs['spark.jars']:
raise UserWarning("spark.jars config is set, but it seems to be missing the pyrasterframes assembly jar.")
Copy link
Member

Choose a reason for hiding this comment

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

💯

@metasim metasim merged commit 8bcac6f into locationtech:develop Sep 23, 2019
@metasim metasim deleted the feature/353-conf-to-create-spark-sess branch September 23, 2019 14:35
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.

2 participants