madisonmlin commented on PR #3995:
URL: https://github.com/apache/texera/pull/3995#issuecomment-3463015762
The new S3 presigner uses the same environment variable endpoint as the
original LakeFS presigner. Here is reference to the apiClient used by LakeFS
presigner, which sets the server endpoint (`StorageConfig.lakefsEndpoint`):
```
private lazy val apiClient: ApiClient = {
val client = new ApiClient()
client.setApiKey(StorageConfig.lakefsPassword)
client.setUsername(StorageConfig.lakefsUsername)
client.setPassword(StorageConfig.lakefsPassword)
client.setServers(
List(
new ServerConfiguration(
StorageConfig.lakefsEndpoint,
"LakeFS API server endpoint",
new java.util.HashMap[String, ServerVariable]()
)
).asJava
)
client
}
```
The original LakeFS presigner can be found under
`LakeFSStorageClient.scala`:
https://github.com/apache/texera/blob/b7944f3129973fe8a73e92c09e7594b2bff4930b/common/workflow-core/src/main/scala/org/apache/amber/core/storage/util/LakeFSStorageClient.scala
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]