Class ServiceConfig.HdfsNative
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
ServiceConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServiceConfig
ServiceConfig.Akamai, ServiceConfig.AliyunDrive, ServiceConfig.Azblob, ServiceConfig.Azdls, ServiceConfig.Azfile, ServiceConfig.B2, ServiceConfig.B2S3, ServiceConfig.BaiduNetdisk, ServiceConfig.Cacache, ServiceConfig.CephRgw, ServiceConfig.CloudflareKv, ServiceConfig.Compfs, ServiceConfig.Cos, ServiceConfig.CosS3, ServiceConfig.D1, ServiceConfig.Dashmap, ServiceConfig.Dbfs, ServiceConfig.Dropbox, ServiceConfig.Etcd, ServiceConfig.Exoscale, ServiceConfig.Foyer, ServiceConfig.Fs, ServiceConfig.Garage, ServiceConfig.Gcs, ServiceConfig.GcsGrpc, ServiceConfig.GcsS3, ServiceConfig.Gdrive, ServiceConfig.Ghac, ServiceConfig.Github, ServiceConfig.Goosefs, ServiceConfig.Gridfs, ServiceConfig.HdfsNative, ServiceConfig.Hetzner, ServiceConfig.Hf, ServiceConfig.Http, ServiceConfig.IbmCos, ServiceConfig.IdriveE2, ServiceConfig.Ionos, ServiceConfig.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.LakefsS3, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Minio, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.Neon, ServiceConfig.Obs, ServiceConfig.ObsS3, ServiceConfig.Oci, ServiceConfig.Onedrive, ServiceConfig.Opfs, ServiceConfig.Oss, ServiceConfig.OssS3, ServiceConfig.Ovhcloud, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Qingstor, ServiceConfig.R2, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.Rustfs, ServiceConfig.S3, ServiceConfig.Scaleway, ServiceConfig.Seafile, ServiceConfig.Seaweedfs, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Spaces, ServiceConfig.Sqlite, ServiceConfig.Storj, ServiceConfig.Supabase, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.SwiftS3api, ServiceConfig.Tigris, ServiceConfig.Tos, ServiceConfig.TosS3, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Wasabi, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringDirectory that contains the Hadoop configuration files.final BooleanDeprecated.HDFS Native append capability is enabled by default and this option is no longer needed.final StringKerberos credential cache that the client reads tickets from.final StringPath to the keytab that the client obtains Kerberos tickets from.final StringKerberos principal that the client authenticates as.final StringNameNode or cluster that the client connects to.Hadoop configuration properties for the client, such asdfs.client.socket-timeout.final Stringwork dir of this backendfinal StringHDFS user that the client acts as. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
configDir
Directory that contains the Hadoop configuration files.
The client reads
core-site.xml,hdfs-site.xml,yarn-site.xml, andmapred-site.xmlfrom one directory:config_dirwhen it is set, otherwiseHADOOP_CONF_DIR, otherwise$HADOOP_HOME/etc/hadoop. Settingconfig_dirstops the client from reading the files inHADOOP_CONF_DIRandHADOOP_HOME. Properties inoptionsoverride the values from these files.Building the service fails with
ConfigInvalidwhenconfig_diris not a directory. -
enableAppend
Deprecated.HDFS Native append capability is enabled by default and this option is no longer needed.Deprecated: HDFS Native append capability is enabled by default.
-
kerberosCache
Kerberos credential cache that the client reads tickets from.
Requires
kerberos_principal. Withkerberos_keytab, the client also stores the tickets it obtains from the keytab in this cache. -
kerberosKeytab
Path to the keytab that the client obtains Kerberos tickets from.
Requires
kerberos_principal. The client keeps the tickets in an in-memory credential cache that belongs to this service, unlesskerberos_cacheis set. -
kerberosPrincipal
Kerberos principal that the client authenticates as.
Set
hadoop.security.authenticationtokerberosinoptionsor in the Hadoop configuration files. With anykerberos_*option, building the service, for example throughOperator::new, fails withConfigInvalidwhen the effective value is unset or exactlysimple, because the client would ignore the Kerberos settings and connect with simple authentication. Other values pass this check, and building does not connect to the cluster, so other authentication problems surface on the first operation.Without
kerberos_keytaborkerberos_cache, the client looks up this principal's tickets in the default credential cache. When nokerberos_*option is set, a client with Kerberos authentication uses the default principal of the default credential cache. -
nameNode
NameNode or cluster that the client connects to.
default: usefs.defaultFSfrom the Hadoop configuration oroptions.hdfs://mycluster: use a logical nameservice configured in Hadoop.hdfs://127.0.0.1:9000: connect to a single NameNode.hdfs://namenode1:9000,namenode2:9000: connect to an HDFS HA cluster by its addresses.viewfs://mycluster: use the ViewFS mount tablefs.viewfs.mounttable.mycluster.*from the Hadoop configuration.
-
options
-
root
work dir of this backend
-
user
HDFS user that the client acts as.
Without Kerberos, the NameNode accepts this name as the caller. When
useris unset, the client usesHADOOP_USER_NAME, then the operating system user.With Kerberos, the authenticated principal impersonates this user. The cluster must allow the impersonation through its
hadoop.proxyuser.*settings. Whenuseris unset, the client usesHADOOP_PROXY_USER; when that is also unset, it acts as the principal.
-
-
Constructor Details
-
HdfsNative
public HdfsNative()
-
-
Method Details
-
scheme
Description copied from interface:ServiceConfigThe scheme of the service.- Specified by:
schemein interfaceServiceConfig- Returns:
- the scheme
-
configMap
Description copied from interface:ServiceConfigConvert the structured config to a type erased config map.A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as
assume_role_session_tags={"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes{}, and an unset field has no entry.- Specified by:
configMapin interfaceServiceConfig- Returns:
- the config map
-