Skip to content

Commit 373db3c

Browse files
committed
add endpoint
1 parent c1df5dd commit 373db3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

python/hsfs/storage_connector.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,15 @@ def prepare_spark(self, path: Optional[str] = None) -> Optional[str]:
374374
def connector_options(self) -> Dict[str, Any]:
375375
"""Return options to be passed to an external S3 connector library"""
376376
self.refetch()
377-
return {
377+
options = {
378378
"access_key": self.access_key,
379379
"secret_key": self.secret_key,
380380
"session_token": self.session_token,
381381
"region": self.region,
382382
}
383+
if self.arguments.get("fs.s3a.endpoint"):
384+
options["endpoint"] = self.arguments.get("fs.s3a.endpoint")
385+
return options
383386

384387
def read(
385388
self,

0 commit comments

Comments
 (0)