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.
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTNameNodes, AuthenticationType, AgentArns, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all location_hdfs in a region.

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 aws.datasync.location_hdfs
WHERE region = 'us-east-1';

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 aws.datasync.location_hdfs
WHERE region = 'us-east-1' AND data__Identifier = '<LocationArn>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.datasync.location_hdfs
WHERE data__Identifier = '<LocationArn>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

datasync:DescribeLocationHdfs,
datasync:ListTagsForResource

Update

datasync:UpdateLocationHdfs,
datasync:DescribeLocationHdfs,
datasync:ListTagsForResource,
datasync:TagResource,
datasync:UntagResource

Delete

datasync:DeleteLocation

List

datasync:ListLocations