Skip to main content

location_hdfs

Creates, updates, deletes or gets a location_hdf resource or lists location_hdfs in a region

Overview

Namelocation_hdfs
TypeResource
DescriptionResource schema for AWS::DataSync::LocationHDFS.
Idawscc.datasync.location_hdfs

Fields

NameDatatypeDescription
name_nodesarrayAn array of Name Node(s) of the HDFS location.
block_sizeintegerSize of chunks (blocks) in bytes that the data is divided into when stored in the HDFS cluster.
replication_factorintegerNumber of copies of each block that exists inside the HDFS cluster.
kms_key_provider_uristringThe identifier for the Key Management Server where the encryption keys that encrypt data inside HDFS clusters are stored.
qop_configurationobjectConfiguration information for RPC Protection and Data Transfer Protection. These parameters can be set to AUTHENTICATION, INTEGRITY, or PRIVACY. The default value is PRIVACY.
authentication_typestringThe authentication mode used to determine identity of user.
simple_userstringThe user name that has read and write permissions on the specified HDFS cluster.
kerberos_principalstringThe unique identity, or principal, to which Kerberos can assign tickets.
kerberos_keytabstringThe Base64 string representation of the Keytab file.
kerberos_krb5_confstringThe string representation of the Krb5Conf file, or the presigned URL to access the Krb5.conf file within an S3 bucket.
tagsarrayAn array of key-value pairs to apply to this resource.
agent_arnsarrayARN(s) of the agent(s) to use for an HDFS location.
subdirectorystringThe subdirectory in HDFS that is used to read data from the HDFS source location or write data to the HDFS destination.
location_arnstringThe Amazon Resource Name (ARN) of the HDFS location.
location_uristringThe URL of the HDFS location that was described.
regionstringAWS region.

For more information, see AWS::DataSync::LocationHDFS.

Methods

NameResourceAccessible byRequired Params
create_resourcelocation_hdfsINSERTNameNodes, AuthenticationType, AgentArns, region
delete_resourcelocation_hdfsDELETEIdentifier, region
update_resourcelocation_hdfsUPDATEIdentifier, PatchDocument, region
list_resourceslocation_hdfs_list_onlySELECTregion
get_resourcelocation_hdfsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual location_hdf.

SELECT
region,
name_nodes,
block_size,
replication_factor,
kms_key_provider_uri,
qop_configuration,
authentication_type,
simple_user,
kerberos_principal,
kerberos_keytab,
kerberos_krb5_conf,
tags,
agent_arns,
subdirectory,
location_arn,
location_uri
FROM awscc.datasync.location_hdfs
WHERE
region = 'us-east-1' AND
Identifier = '{{ location_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new location_hdf resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.datasync.location_hdfs (
NameNodes,
AuthenticationType,
AgentArns,
region
)
SELECT
'{{ name_nodes }}',
'{{ authentication_type }}',
'{{ agent_arns }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a location_hdf resource, using stack-deploy.

/*+ update */
UPDATE awscc.datasync.location_hdfs
SET PatchDocument = string('{{ {
"NameNodes": name_nodes,
"BlockSize": block_size,
"ReplicationFactor": replication_factor,
"KmsKeyProviderUri": kms_key_provider_uri,
"QopConfiguration": qop_configuration,
"AuthenticationType": authentication_type,
"SimpleUser": simple_user,
"KerberosPrincipal": kerberos_principal,
"KerberosKeytab": kerberos_keytab,
"KerberosKrb5Conf": kerberos_krb5_conf,
"Tags": tags,
"AgentArns": agent_arns,
"Subdirectory": subdirectory
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ location_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.datasync.location_hdfs
WHERE
Identifier = '{{ location_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the location_hdfs resource, the following permissions are required:

datasync:CreateLocationHdfs,
datasync:DescribeLocationHdfs,
datasync:TagResource,
datasync:ListTagsForResource