Skip to main content

HdfsFetcher

Apache Hadoop File System (HDFS) fetcher.

Notes​

Fetches documents from Apache Hadoop File System (HDFS) using the webhdfs:// scheme. Supports simple authentication and Kerberos/SPNEGO authentication.

Usage​

class: HdfsFetcher
acl: NONE
authMethod: SIMPLE
credentials:
password: string
passwordKey:
size: 0
source: KEY
value: string
username: string
domain: string
kerberosConfig:
keytabPath: string
krb5ConfigPath: string
loginModuleName: string
principal: string
servicePrincipalName: string
useTicketCache: false
referenceFilters: []

Properties​

PropertyTypeRequiredDefault
aclenumNoNONE
authMethodenumNoSIMPLE
credentialsCredentialsNoCredentials
domainstringNo-
kerberosConfigKerberosConfigNo-
referenceFiltersReferenceFilter[]No-

Property Details​

acl​

Which permissions to read and write on each file as its access control list (ACL), in the crawler.acl field:

  • NONE (the default): none.
  • BASIC: the owner, group and mode bits.
  • EXTENDED: the HDFS ACL too, for the files and folders that have one, with its mask.

A path level says who may go through every folder above the file. Users and groups are names, of the directory hdfs:<name node host>. HDFS superusers may read everything and are not listed.

The ACL lists who may read the document, as one or more levels a person must all pass; within a level, a deny wins over an allow. Committers send it as their own acl option says. When the permissions could only be read in part, the ACL is marked partial, and a committer withholds the document unless its acl.partial is SEND; when they could not be read at all, it always withholds it. A permission change alone does not change a file's date or size: to have it noticed, use a metadata checksum that includes crawler.acl, such as a GenericMetadataChecksummer on the fields crawler\.(lastModified|fileSize|acl).

Allowed Values​

  • NONE
  • BASIC
  • EXTENDED

authMethod​

Authentication method. Defaults to SIMPLE. Set to KERBEROS to use Kerberos/SPNEGO authentication.

Allowed Values​

  • SIMPLE
  • KERBEROS

credentials​

Optional credentials for the target HDFS. With SIMPLE, the username is sent as the user.name query parameter. With KERBEROS, credentials can be used for username/password-based JAAS login.

domain​

The domain name for authentication when accessing the remote resource.

kerberosConfig​

Kerberos/SPNEGO settings used when authMethod is KERBEROS. See KerberosConfig for details.

referenceFilters​

Filters applied to document references (URLs or file paths) to control which ones are fetched. Documents whose references do not pass the filters are skipped.