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

Add rclone copy stage #60

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add rclone copy stage #60

wants to merge 10 commits into from

Conversation

jbusecke
Copy link
Collaborator

@jbusecke jbusecke commented Oct 24, 2024

@jbusecke
Copy link
Collaborator Author

Moved the entire config to env variables to avoid accidentally printing the secrets in case of an error.

@jbusecke
Copy link
Collaborator Author

Ahhh I just realized that we were using the custom image "quay.io/leap-stc/rclone-beam:2024.09.24" in the test case.
It is kind of a bummer that we now have to specify that in the feedstock (disconnected form this stage). It just took me a while to understand what the issue here](leap-stc/chirps_feedstock#1) was (rclone is not installed). I guess we need a better way to detect this issue here?

@jbusecke
Copy link
Collaborator Author

Ok nice I was able to read this (authenticated, cause this is just a test bucket) from OSN:

import xarray as xr
import s3fs
fs = s3fs.S3FileSystem(profile='osn-m2lines-test', client_kwargs={'endpoint_url': 'https://nyu1.osn.mghpcc.org'})
fs.ls('m2lines-test')
mapper = fs.get_mapper("m2lines-test/test-rclone-stage/chirps-global-daily.zarr")
xr.open_dataset(mapper, engine='zarr')

Lets finish this bad boy.

@jbusecke jbusecke marked this pull request as ready for review November 19, 2024 21:49
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