Skip to main content

Adding a Dataplex Connection

Prerequisites

  • A user with sufficient permissions is required to establish a connection with Dataplex.
  • Zeenea traffic flows towards the data source must be open.
note

A configuration template can be downloaded here: google-dataplex.conf.

Supported Versions

The Dataplex connector was developed and tested with the web version of the product.

Installing the Plugin

The Google plugin can be downloaded here: Zeenea Connector Downloads.

For more information on how to install a plugin, please refer to the following article: Installing and Configuring Connectors as a Plugin.

Declaring the Connection

Creating and configuring connectors is done through a dedicated configuration file located in the /connections folder of the relevant scanner.

Read more: Managing Connections

In order to establish a connection with a Dataplex instance, specifying the following parameters in the dedicated file is required:

ParameterExpected Value
nameThe name that will be displayed to catalog users for this connection
codeUnique identifier of the connection on the Zeenea platform. Once registered on the platform, this code must not be modified or the connection will be considered as new and the old one removed from the scanner.
connector_idThe type of connector to be used for the connection. Here, the value must be google-dataplex and this value must not be modified.
connection.json_key

JSON access key.

The key can be indicated directly or put in a separate file. In the latter case, this parameter indicates the path to the file in the form of a URI of scheme file:. Example: file:///opt/zeenea-scanner/connections/gdc_json_key.json

Warning: If you indicate directly the token, you must use triple quotes to encapsulate the key as a parameter.

Example: """{my:"json"}"""

connection.project_idList of project ids separated by a comma
connection.location_idList of location ids separated by a comma. Location id corresponds to GCP region (example: "europe-west3,us-west1").
proxy.schemeDepending on the proxy, http or https
proxy.hostnameProxy address
proxy.portProxy port
proxy.usernameProxy username
proxy.passwordProxy account password
quota.read_per_minuteReads per minute quota value. Default value: 6000 (default value of Google Data Catalog).
quota.search_per_user_per_minuteSearch quota value per user per minute. Default value: 180 (default value in Google Data Catalog).
quota.timeout_minuteMaximum waiting time when waiting for the availability of a quota. Default value: 10 minutes.
quota.max_retryMaximum number of retries when a request encounters a quota expiration error

Rich Filters

The Dataplex connector benefits from the feature of rich filters in the configuration of the connector.

CriteriaDescription
lakeDataplex lake name
zoneDataplex zone name
entityDataplex entity name

Read more: Filters

User Permissions

In order to collect metadata, the running user's permissions must allow them to access and read databases that need cataloging.

Here, the user must have the followings authorizations:

  • dataplex.zones.list
  • dataplex.lakes.list
  • dataplex.entities.list
  • dataplex.entities.get

Data Extraction

To extract information, the connector runs the following request on the Google Dataplex API:

  • projects.locations.lakes.zones.entities.get

Collected Metadata

Inventory

Will collect the list of objects accessible by the user.

Dataset

A dataset is a Google Dataplex object.

  • Name
  • Source Description
  • Technical Data:
    • Project Id
    • Location Id
    • Lake Id
    • Zone Id
    • Entity Id
    • Created At
    • Updated At
    • Type
    • Data Path
    • Source System
    • Format

Field

Dataset field.

  • Name
  • Source Description
  • Type
  • Can be null: Depending on the field settings.
  • Multivalued: Not supported. Default value false.
  • Primary Key: Depending on the "Primary Key" field attribute.
  • Technical Data:
    • Technical Name
    • Native type

Unique Identification Keys

An identification key is associated with each object in the catalog. In the case of the object being created by a connector, the connector builds it.

More information about how it works can be found here: Identification Keys.

ObjectIdentifier KeyDescription
Datasetcode/project/location/lake/zone/dataset name
  • code: Unique identifier of the connection noted in the configuration file
  • project: Object project
  • location: Project location
  • lake: Object lake
  • zone: Object zone
  • dataset name
Fieldcode/project/location/lake/zone/dataset name/field name
  • code: Unique identifier of the connection noted in the configuration file
  • project: Object project
  • location: Project location
  • lake: Object lake
  • zone: Object zone
  • dataset name
  • field name