Skip to content

Commit

Permalink
Fix spark initialization in client/external.py
Browse files Browse the repository at this point in the history
`enableHiveSupport` on itself is a method, and has to be called to get a builder from it.
  • Loading branch information
aversey committed Jul 1, 2024
1 parent c9a08f8 commit e29fb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/hopsworks/client/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(
# are needed when the application starts (before user code is run)
# So in this case, we can't materialize the certificates on the fly.
_logger.debug("Running in Spark environment, initializing Spark session")
_spark_session = SparkSession.builder.enableHiveSupport.getOrCreate()
_spark_session = SparkSession.builder.enableHiveSupport().getOrCreate()

self._validate_spark_configuration(_spark_session)
with open(
Expand Down

0 comments on commit e29fb67

Please sign in to comment.