update_location_hdfs
¶
update_location_hdfs(
location_arn: LocationArn,
*,
config_overrides: Optional[DataSyncClientConfig] = None,
subdirectory: Optional[HdfsSubdirectory] = None,
name_nodes: Optional[HdfsNameNodeList] = None,
block_size: Optional[HdfsBlockSize] = None,
replication_factor: Optional[HdfsReplicationFactor] = None,
kms_key_provider_uri: Optional[KmsKeyProviderUri] = None,
qop_configuration: Optional[QopConfiguration] = None,
authentication_type: Optional[HdfsAuthenticationType] = None,
simple_user: Optional[HdfsUser] = None,
kerberos_principal: Optional[KerberosPrincipal] = None,
kerberos_keytab: Optional[KerberosKeytabFile] = None,
kerberos_krb5_conf: Optional[KerberosKrb5ConfFile] = None,
agent_arns: Optional[AgentArnList] = None,
cmk_secret_config: Optional[CmkSecretConfig] = None,
custom_secret_config: Optional[CustomSecretConfig] = None,
) -> UpdateLocationHdfsResponse
Modifies the following configuration parameters of the Hadoop Distributed File System (HDFS) transfer location that you're using with DataSync.
For more information, see Configuring DataSync transfers with an HDFS cluster.
Parameters:
-
location_arn(LocationArn) –The Amazon Resource Name (ARN) of the source HDFS cluster location.
-
subdirectory(Optional[HdfsSubdirectory], default:None) –A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster.
-
name_nodes(Optional[HdfsNameNodeList], default:None) –The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes.
The number of NameNodes you can specify depends on the task mode:
-
Enhanced mode – You can specify multiple NameNodes for HDFS High Availability (HA) configurations.
-
Basic mode – You can specify only one NameNode.
-
-
block_size(Optional[HdfsBlockSize], default:None) –The size of the data blocks to write into the HDFS cluster.
-
replication_factor(Optional[HdfsReplicationFactor], default:None) –The number of DataNodes to replicate the data to when writing to the HDFS cluster.
-
kms_key_provider_uri(Optional[KmsKeyProviderUri], default:None) –The URI of the HDFS cluster's Key Management Server (KMS).
-
qop_configuration(Optional[QopConfiguration], default:None) –The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer privacy settings configured on the Hadoop Distributed File System (HDFS) cluster.
-
authentication_type(Optional[HdfsAuthenticationType], default:None) –The type of authentication used to determine the identity of the user.
-
simple_user(Optional[HdfsUser], default:None) –The user name used to identify the client on the host operating system.
-
kerberos_principal(Optional[KerberosPrincipal], default:None) –The Kerberos principal with access to the files and folders on the HDFS cluster.
-
kerberos_keytab(Optional[KerberosKeytabFile], default:None) –The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file's address.
-
kerberos_krb5_conf(Optional[KerberosKrb5ConfFile], default:None) –The
krb5.conffile that contains the Kerberos configuration information. You can load thekrb5.conffile by providing the file's address. If you're using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text. -
agent_arns(Optional[AgentArnList], default:None) –The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster.
-
cmk_secret_config(Optional[CmkSecretConfig], default:None) –Specifies configuration information for a DataSync-managed secret, such as a
KerberosKeytabor set of credentials that DataSync uses to access a specific transfer location, and a customer-managed KMS key. -
custom_secret_config(Optional[CustomSecretConfig], default:None) –Specifies configuration information for a customer-managed secret, such as a
KerberosKeytabor set of credentials that DataSync uses to access a specific transfer location, and a customer-managed Identity and Access Management (IAM) role that provides access to the secret.
Raises:
-
InternalException–This exception is thrown when an error occurs in the DataSync service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datasync/_services/data_sync.py
3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 | |