Membuat katalog data untuk data lake.
Syntax
{
"Type": "ALIYUN::DLF::Catalog",
"Properties": {
"Owner": String,
"LocationUri": String,
"Description": String,
"CatalogId": String
}
}
Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| Owner | String | No | Yes | Informasi pengguna. | None |
| LocationUri | String | No | Yes | Detail lokasi. | Contoh: /hdfs/hivedb/data. |
| Description | String | No | Yes | Deskripsi catalog. | None |
| CatalogId | String | Yes | No | Namespace dari data catalog. | Nilai default adalah ID akun Alibaba Cloud Anda. |
Return values
Fn::GetAtt
CatalogId: Namespace dari klasifikasi database.
Examples
-
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "CatalogId": { "Type": "String", "Description": "Catalog ID", "AllowedPattern": "^[a-zA-Z][a-zA-Z0-9_]{1,255}" } }, "Resources": { "Catalog": { "Type": "ALIYUN::DLF::Catalog", "Properties": { "CatalogId": { "Ref": "CatalogId" } } } }, "Outputs": { "CatalogId": { "Description": "Catalog ID", "Value": { "Fn::GetAtt": [ "Catalog", "CatalogId" ] } } } }