Skip to content

Conversation

@ctubbsii
Copy link
Member

  • Remove resolvers (keep test coverage for file, http, and hdfs URL
    types)
  • Use url.openStream()
  • Be agnostic to different URL types
  • Depend on an HdfsURLStreamHandlerProvider for hdfs URL support
  • Place hdfs provider in its own module/jar
  • Clean up related POM and README stuff

This fixes #47

This supersedes #48 and #49 alternate fixes

(This builds on the work in #48, but was sufficiently different that I think it warranted a new PR)

dlmarion and others added 4 commits January 16, 2026 18:34
…derFactory

Added HdfsUrlStreamHandlerFactory and set it as the URL StreamHandlerFactory
in a static initializer in LocalCachingContextClassLoaderFactory to handle
the hdfs protocol.

Closes apache#47
* Register a provider for the hdfs: URL stream handling, rather than
  override the system factory
* Also fix SpotBugs and rename classes to match the naming convention
  from the classes they override (e.g. "URLStreamHandler" instead of
  "UrlStreamHandler")
* Remove resolvers (keep test coverage for file, http, and hdfs URL
  types)
* Use url.openStream()
* Be agnostic to different URL types
* Depend on an HdfsURLStreamHandlerProvider for hdfs URL support
* Place hdfs provider in its own module/jar
* Clean up related POM and README stuff

This fixes apache#47

This supersedes apache#48 and apache#49 alternate fixes
@ctubbsii ctubbsii self-assigned this Jan 21, 2026
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.

"Unknown protocol: hdfs" error when testing with Accumulo

2 participants