Skip to content

Commit 180c6ab

Browse files
Metastore: add auxiliary_versions and metadata_integration args (#6280) (#12321)
Co-authored-by: Shuya Ma <[email protected]> Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Shuya Ma <[email protected]>
1 parent 891d666 commit 180c6ab

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

.changelog/6280.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
metastore: added `metadata_integration` and `hive_metastore_config.auxiliary_versions` fields to `google_dataproc_metastore_service` resource (beta)
3+
```

website/docs/r/dataproc_metastore_federation.html.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ See [Provider Versions](https://terraform.io/docs/providers/google/guides/provid
3838
resource "google_dataproc_metastore_federation" "default" {
3939
provider = google-beta
4040
location = "us-central1"
41-
federation_id = "fed"
41+
federation_id = "fed-1"
4242
version = "3.1.2"
4343
4444
backend_metastores {
@@ -50,7 +50,7 @@ resource "google_dataproc_metastore_federation" "default" {
5050
5151
resource "google_dataproc_metastore_service" "default" {
5252
provider = google-beta
53-
service_id = "fed"
53+
service_id = "fed-1"
5454
location = "us-central1"
5555
tier = "DEVELOPER"
5656

website/docs/r/dataproc_metastore_service.html.markdown

+41
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ The following arguments are supported:
144144
Default value is `STABLE`.
145145
Possible values are `CANARY` and `STABLE`.
146146

147+
* `metadata_integration` -
148+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
149+
The setting that defines how metastore metadata should be integrated with external services and systems.
150+
Structure is [documented below](#nested_metadata_integration).
151+
147152
* `location` -
148153
(Optional)
149154
The location where the metastore service should reside.
@@ -193,6 +198,15 @@ The following arguments are supported:
193198
Information used to configure the Hive metastore service as a service principal in a Kerberos realm.
194199
Structure is [documented below](#nested_kerberos_config).
195200

201+
* `auxiliary_versions` -
202+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
203+
A mapping of Hive metastore version to the auxiliary version configuration.
204+
When specified, a secondary Hive metastore service is created along with the primary service.
205+
All auxiliary versions must be less than the service's primary version.
206+
The key is the auxiliary service name and it must match the regular expression a-z?.
207+
This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen.
208+
Structure is [documented below](#nested_auxiliary_versions).
209+
196210

197211
<a name="nested_kerberos_config"></a>The `kerberos_config` block supports:
198212

@@ -217,6 +231,33 @@ The following arguments are supported:
217231
The relative resource name of a Secret Manager secret version, in the following form:
218232
"projects/{projectNumber}/secrets/{secret_id}/versions/{version_id}".
219233

234+
<a name="nested_auxiliary_versions"></a>The `auxiliary_versions` block supports:
235+
236+
* `key` - (Required) The identifier for this object. Format specified above.
237+
238+
* `version` -
239+
(Required)
240+
The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service's version.
241+
242+
* `config_overrides` -
243+
(Optional)
244+
A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore (configured in hive-site.xml) in addition to the primary version's overrides.
245+
If keys are present in both the auxiliary version's overrides and the primary version's overrides, the value from the auxiliary version's overrides takes precedence.
246+
247+
<a name="nested_metadata_integration"></a>The `metadata_integration` block supports:
248+
249+
* `data_catalog_config` -
250+
(Required)
251+
The integration config for the Data Catalog service.
252+
Structure is [documented below](#nested_data_catalog_config).
253+
254+
255+
<a name="nested_data_catalog_config"></a>The `data_catalog_config` block supports:
256+
257+
* `enabled` -
258+
(Required)
259+
Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
260+
220261
## Attributes Reference
221262

222263
In addition to the arguments listed above, the following computed attributes are exported:

0 commit comments

Comments
 (0)