要创建云暂存区,请执行以下操作:
- 使用 DSC 配置 AWS 帐户。
- 运行命令 dsc config_aws -file aws_config.xml。aws_config.xml 包含:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <dscConfigAmzS3 xmlns="http://schemas.teradata.com/v2012/DSC"> <config_aws_list> <account_name>aws-account-name</account_name> <buckets_by_region> <region>us-west-2</region> <buckets> <bucket_name>my-s3-bucket</bucket_name> <prefix_list> <prefix_name>backup</prefix_name> <storage_devices>100</storage_devices> </prefix_list> </buckets> </buckets_by_region> </config_aws_list> </dscConfigAmzS3>
- 根据脚本提示分别输入 AWS 访问 ID 和密钥。
- 运行命令 dsc config_aws -file aws_config.xml。aws_config.xml 包含:
- 使用 DSC 为每个节点配置目标组。
- 运行命令 dsc config_target_groups -type TARGET_S3 -file aws_source_tg.xml。aws_source_tg.xml 包含:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <dscConfigTargetGroupsAmzS3 xmlns="http://schemas.teradata.com/v2012/DSC"> <target_group_name>source-tg-name</target_group_name> <is_enabled>true</is_enabled> <account_name>aws-account-name</account_name> <region>us-west-2</region> <targetMediaBuckets> <bar_media_server>sourceSystem1_ms</bar_media_server> <buckets> <bucket_name>my-s3-bucket</bucket_name> <prefix_list> <prefix_name>backup/</prefix_name> <storage_devices>100</storage_devices> </prefix_list> </buckets> </targetMediaBuckets> </dscConfigTargetGroupsAmzS3>
- 在 bar_media_server 中输入源或目标的媒体服务器名称。
- 在 account_name 中输入 AWS 帐户的名称。
- 运行命令 dsc config_target_groups -type TARGET_S3 -file aws_source_tg.xml。aws_source_tg.xml 包含:
- 运行命令 dsc config_target_group_map -f aws_tg_map.xml 以使用 DSC 配置目标组映射。aws_tg_map.xml 包含:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <dscConfigTargetGroupsAmzS3 xmlns="http://schemas.teradata.com/v2012/DSC"> <target_group_name>source-tg-name</target_group_name> <is_enabled>true</is_enabled> <account_name>aws-account-name</account_name> <region>us-west-2</region> <targetMediaBuckets> <bar_media_server>sourceSystem1_ms</bar_media_server> <buckets> <bucket_name>my-s3-bucket</bucket_name> <prefix_list> <prefix_name>backup/</prefix_name> <storage_devices>100</storage_devices> </prefix_list> </buckets> </targetMediaBuckets> </dscConfigTargetGroupsAmzS3>
- 在 createCloudStaging.xml 中指定目标组名称。createCloudStaging.xml 包含:
<?xml version='1.0' encoding='UTF-8'?> <dmCreateCloudStaging xmlns="http://schemas.teradata.com/dataMover/v2009" xsi:schemaLocation="http://schemas.teradata.com/unity/DataMover.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <name>csa1</name> <storage_type>S3</storage_type> <source_target_pairs> <source_target_pair> <source_system>sourceSystem1</source_system> <source_system_target_group>source-tg-name</source_system_target_group> <target_system>targetSystem1</target_system> <target_system_target_group>target-tg-name</target_system_target_group> </source_target_pair> </source_target_pairs> </dmCreateCloudStaging>
- 运行命令 datamove create_cloud_staging -f createCloudStaging.xml 以创建云暂存区。
有关云暂存区的更多信息,请参阅《Teradata® Data Mover 用户指南, B035-4101》