Comments (3)
Looking into this issue, we wanted to only attach to remotes on existing "paths" in S3.
The current code allows attaching to just buckets, which is fine.
But for / paths we required the last key to refer to an existing object, where the object is a "folder" in s3, i.e., it ends with '/'. However the current code also allows one to attach to a remote without that requirement.
from disdat.
It throws the same error even if the path ends with '/'.
$ dsdt remote new s3://my-bucket/non-existing-key/
Error code 404
Unable to bind context new because URL s3://my-bucket/non-existing-key/ does not exist.
Traceback (most recent call last):
File "/mnt/data/.virtualenvs/F7DBigBang/bin/dsdt", line 11, in <module>
load_entry_point('disdat==0.9.13', 'console_scripts', 'dsdt')()
File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/dsdt.py", line 91, in main
args.func(args)
File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/fs.py", line 1579, in <lambda>
remote_p.set_defaults(func=lambda args: _remote(fs, args))
File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/fs.py", line 1363, in _remote
fs.remote_add(args.context, args.s3_url)
File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/fs.py", line 1348, in remote_add
ctxt_obj.bind_remote_ctxt(remote_context, s3_url)
File "/mnt/data/.virtualenvs/F7DBigBang/lib/python3.6/site-packages/disdat/data_context.py", line 151, in bind_remote_ctxt
raise RuntimeError
RuntimeError
The only way dsdt remote
works for me if I point it to a file on S3.
from disdat.
Current behavior
There is only one "folder" at s3://disdat-prod
, which is testbind
Both dsdt remote somecontext s3://disdat-prod/something
and
dsdt remote somecontext s3://disdat-prod/something/
succeed, and following bundles pushes also succeed.
And dsdt remote somecontext s3://disdat-prod/testbind
also works.
Closing issue.
from disdat.
Related Issues (20)
- `ls` to list all bundles by default, instead of final bundles HOT 1
- `dsdt run` local container to not require remote HOT 1
- tasks that return `None` have un-presentable bundles HOT 1
- uncommitted history has unexpected implications for bundle naming HOT 1
- update API calls to bundle object HOT 1
- bundle unable to present as a scalar HOT 1
- Proposed third name for bundle: content hash
- `dsdt run` needs to surface `--force-all` HOT 1
- Allow a `dsdt push` to push all bundles to remote HOT 1
- Check uuid uniqueness HOT 1
- bundle data with existing local directory fails HOT 2
- fix error reporting when no aws region
- Allow an API call to test for existence of a context
- remove print statements in favor of logging HOT 2
- api.push fails silently
- fix logging for bundle error cleanups
- dsdt.api.init needs to be idempotent if already initialized
- Is there a way to install system packages in the dockerize step? HOT 1
- Allow mix of local and remote files in bundle.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from disdat.