Class HdfsFetcher

All Implemented Interfaces:
Configurable<HdfsFetcherConfig>, EventListener<Event>, Fetcher, EventListener, Consumer<Event>

public class HdfsFetcher extends AbstractNioFetcher<HdfsFetcherConfig>

Fetcher for HDFS (webhdfs://), backed by a custom, read-only NIO.2 FileSystemProvider (HdfsFileSystemProvider) that speaks the WebHDFS REST API directly over Apache HttpClient - no Hadoop client dependency.

The reference host and port must be the NameNode's WebHDFS/HTTP port (typically 9870 on Hadoop 3.x), not the RPC port (8020) used by the native Hadoop client.

Access Control List (ACL)

When asked to (see HdfsFetcherConfig.setAcl(AclFetchMode)), this fetcher writes who may read each file in the standard crawler.acl field, from its owner, group and mode bits and, with AclFetchMode.EXTENDED, its HDFS ACL (the mask applied). A path level says who may go through every folder above the file. Users and groups are names, of the directory hdfs:<name node>. HDFS superusers may read everything and are not listed.