Comments (5)
It seems other APIs do not have this issue as they accept the UNIX-like path as well as the scheme, and 'boo' will be treated as a UNIX-like path.
from pfio.
Reopen as #88 is just a workaround. Discussion should be continued here.
from pfio.
The argument of create_handler(scheme) is kind of misleading, as other functions and methods take URI as arguments. That said, more intuitive improvement would be to let it accept full or partial URI and make .root member configurable and effective.
I think this was the actual behavior before #86 with #87 fix.
Also we have to support choosing HDFS-cluster at each handler, which is currently not available.
This would involves two ToDos:
- Switching between HDFS-cluster would involve switching the connection. Or we can maintains connections to all the available clusters in hdfs.xml.
- Differentiating the cluster-name from directories
from pfio.
@kuenishi What do you think about this
from pfio.
My suggestion is to change argument of create_handler
from just a scheme to full URI that indicates some directory in some cluster, or in local filesystem. This change involves a lot of code change like you suggested, and maybe to support creating handlers like chdir-like style. Not only about full URI but relative URI or pathnames are to be in discussion scope.
from pfio.
Related Issues (20)
- Path.glob has different behavior from standard pathlib.Path
- Opening a giant (exceeding 4GB~?) zip in S3 using `pfio.v2.from_url` raises "BadZipFile: Bad magic number for central directory" HOT 1
- File-like object returned from `open_url` is extremely slow with S3
- Support OpenTelemetry Instrumentation HOT 1
- Support PPE profiling
- Support PPE profiling HOT 1
- pfio.v2.lazify() may fail in case the PFIO-related context has things that can't pickle HOT 1
- Use $XDG_CACHE_HOME for file cache directory by default
- Document a tip on shutil.copyfileobj()
- `ValueError: buffer size must be strictly positive` when opening an empty file in S3 with "rb" mode
- `S3.read(-1)` for a large file (2^31+α bytes) fails due to an SSL `OverflowError` HOT 4
- Support Google Cloud Storage
- Concurrency control in sparse file cache
- Cleanup after test run; a lot of temporary files left HOT 1
- Deprecate `reset_on_fork` flag
- Drop Python 3.7 as of PEP537
- Introduce type checking with mypy
- Drop Python 3.8 as of PEP-569
- Sparse file cache blown out after `checkfork()`
- Support Python 3.12
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 pfio.