Class HdfsFetcherConfig
java.lang.Object
com.norconex.crawler.core.fetch.BaseFetcherConfig
com.norconex.crawler.fs.fetch.impl.BaseAuthNioFetcherConfig
com.norconex.crawler.fs.fetch.impl.hdfs.HdfsFetcherConfig
Configuration for HdfsFetcher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull AclFetchModegetAcl()Which permissions to read and write on each document as its access control list (ACL): the owner, group and mode bits (AclFetchMode.BASIC), plus the HDFS ACL of the files and folders that have one (AclFetchMode.EXTENDED).Authentication method.Kerberos/SPNEGO configuration.inthashCode()setAcl(@NonNull AclFetchMode acl) Which permissions to read and write on each document as its access control list (ACL): the owner, group and mode bits (AclFetchMode.BASIC), plus the HDFS ACL of the files and folders that have one (AclFetchMode.EXTENDED).setAuthMethod(HdfsAuthMethod authMethod) Authentication method.setKerberosConfig(KerberosConfig kerberosConfig) Kerberos/SPNEGO configuration.toString()Methods inherited from class com.norconex.crawler.fs.fetch.impl.BaseAuthNioFetcherConfig
getCredentials, getDomain, setDomainMethods inherited from class com.norconex.crawler.core.fetch.BaseFetcherConfig
getReferenceFilters, setReferenceFilters
-
Constructor Details
-
HdfsFetcherConfig
public HdfsFetcherConfig()
-
-
Method Details
-
getAuthMethod
Authentication method. Defaults toHdfsAuthMethod.SIMPLE(no real authentication, the configured username if any is sent as theuser.namequery parameter). UseHdfsAuthMethod.KERBEROSfor clusters withhadoop.security.authentication=kerberos, and setsetKerberosConfig(KerberosConfig)accordingly. -
getKerberosConfig
Kerberos/SPNEGO configuration. Required whengetAuthMethod()isHdfsAuthMethod.KERBEROS. -
getAcl
Which permissions to read and write on each document as its access control list (ACL): the owner, group and mode bits (AclFetchMode.BASIC), plus the HDFS ACL of the files and folders that have one (AclFetchMode.EXTENDED). Default isAclFetchMode.NONE. -
setAuthMethod
Authentication method. Defaults toHdfsAuthMethod.SIMPLE(no real authentication, the configured username if any is sent as theuser.namequery parameter). UseHdfsAuthMethod.KERBEROSfor clusters withhadoop.security.authentication=kerberos, and setsetKerberosConfig(KerberosConfig)accordingly.- Returns:
this.
-
setKerberosConfig
Kerberos/SPNEGO configuration. Required whengetAuthMethod()isHdfsAuthMethod.KERBEROS.- Returns:
this.
-
setAcl
Which permissions to read and write on each document as its access control list (ACL): the owner, group and mode bits (AclFetchMode.BASIC), plus the HDFS ACL of the files and folders that have one (AclFetchMode.EXTENDED). Default isAclFetchMode.NONE.- Returns:
this.
-
equals
- Overrides:
equalsin classBaseAuthNioFetcherConfig
-
canEqual
- Overrides:
canEqualin classBaseAuthNioFetcherConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseAuthNioFetcherConfig
-
toString
- Overrides:
toStringin classBaseAuthNioFetcherConfig
-