Private Service Connect with Dataproc Metastore (original) (raw)

With Private Service Connect, you can create a Dataproc Metastore service that doesn't use VPC peering. This page explains what Private Service Connect is and how to use it as an alternative networking option for Dataproc Metastore.

How Dataproc Metastore works with VPC

Dataproc Metastore protects its metadata access by only exposing private IP endpoints. It also restricts connectivity to VMs in your VPC network by using VPC peering.

Dataproc Metastore requires the following configurations per region for each VPC network:

As a result, setting up VPC peering and IP address reservations can be difficult on crowded VPC networks. Similarly, a VPC network may not have enough peering quota to accommodate additional peering requests. Both of these limitations can prevent you from creating new Dataproc Metastore services.

To circumvent these issues, you can use Dataproc Metastore with Private Service Connect.

Private Service Connect provides a private connection to Dataproc Metastore metadata across VPC networks.

To use Private Service Connect with Dataproc Metastore, the following configurations are required:

Considerations

Limitations

Create a Dataproc Metastore service with Private Service Connect

The following instructions demonstrate how to configure Private Service Connect during service creation.

Console

  1. In the Google Cloud console, open the Dataproc Metastore page:
    Go to Dataproc Metastore
  2. At the top of the Dataproc Metastore page, click Create.
    The Create service page opens.
  3. Configure your service as needed.
  4. Under Network configuration, click Make services accessible in multiple VPC subnetworks.
  5. Select the Subnetworks. You can specify up to 5 subnetworks.
  6. Click Done.
  7. Click Submit.

Verify the service's network configuration:

  1. In the Google Cloud console, open the Dataproc Metastore page:
    Go to Dataproc Metastore
  2. On the Dataproc Metastore page, click the service name of the service you would like to view.
    The Service detail page for that service opens.
  3. Under the Configuration tab, verify that the details show multiple VPC subnetwork URIs.

gcloud

  1. Run the following gcloud metastore services create command to create a service with Private Service Connect:
    gcloud metastore services create SERVICE \
    --location=LOCATION \
    --consumer-subnetworks="projects/PROJECT_ID/regions/LOCATION/subnetworks/SUBNET1, projects/PROJECT_ID/regions/LOCATION/subnetworks/SUBNET2"
    or
    gcloud metastore services create SERVICE \
    --location=LOCATION \
    --network-config-from-file=NETWORK_CONFIG_FROM_FILE
  2. Verify that the creation was successful.

REST

Follow the API instructions to create a serviceby using the API Explorer.

In the create request parameters, use the Network Config field to configure Private Service Connect. You can specify 1 to 5 subnetworks.

 "network_config": {
   "consumers": [
       {"subnetwork": "projects/PROJECT_ID/regions/LOCATION/subnetworks/SUBNET1"},
       {"subnetwork": "projects/PROJECT_ID/regions/LOCATION/subnetworks/SUBNET2"}
   ]
 }

What's next