Skip to content

Commit

Permalink
[Runtimes] Add flag to allow for disabling V3IO mount in remote spark (
Browse files Browse the repository at this point in the history
  • Loading branch information
gtopper committed Jun 3, 2024
1 parent 088414f commit a48154f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mlrun/runtimes/remotesparkjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,20 @@ def spec(self) -> RemoteSparkSpec:
def spec(self, spec):
self._spec = self._verify_dict(spec, "spec", RemoteSparkSpec)

def with_spark_service(self, spark_service, provider=RemoteSparkProviders.iguazio):
def with_spark_service(
self,
spark_service,
provider=RemoteSparkProviders.iguazio,
with_v3io_mount=True,
):
"""Attach spark service to function"""
self.spec.provider = provider
if provider == RemoteSparkProviders.iguazio:
self.spec.env.append(
{"name": "MLRUN_SPARK_CLIENT_IGZ_SPARK", "value": "true"}
)
self.apply(mount_v3io())
if with_v3io_mount:
self.apply(mount_v3io())
self.apply(
mount_v3iod(
namespace=config.namespace,
Expand Down

0 comments on commit a48154f

Please sign in to comment.