Skip to main content

Adding a Local File System Connection

Prerequisites

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

A link to the configuration template can be found here: Zeenea Connector Downloads.

Supported Versions

The local file system connector is compatible with every file system without an authentication process.

Installing the Plugin

From version 54 of the scanner, the local file system connector is presented as a plugin.

It can be downloaded here and requires a scanner version 64 or later: 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 local file system, specifying the following parameters in the dedicated file is required:

ParameterExpected value
nameThe name that will be displayed to catalog users for this connection.
codeThe unique 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 local-filesystem and this value must not be modified.
inventory.rootPath of the root directory to explore
Optional parameters for customizing dataset detection
inventory.partitionRegex to identify partition folders
inventory.skippedDirectoryRegex on the name of the folders to ignore while keeping the content taken into account. The content will be scanned as if it were at the root of the parent folder. No folder is ignored by default.
inventory.ignoredDirectoryRegex on the name of the folders to ignore: their content will also be ignored. No folder is ignored by default.
inventory.ignoredFileRegex in the name of the files to ignore, default value: \..* | _.* | .*\.crc
inventory.extension.csvFor CSV files detection. Default value: csv, tsv, csv.gz, tsv.gz, csv.zip, tsv.zip
inventory.extension.parquetFor Parquet files detection. Default value: parquet
inventory.extension.avroFor Avro files detection. Default value: avro
inventory.extension.orcFor Orc files detection. Default value: orc
inventory.extension.xmlFor XML files detection. Default value: xml, xml.gz, xml.zip
inventory.extension.jsonFor JSON files detection. Default value: json, json.gz, json.zip
inventory.csv.headerUsed for configuring csv files header detection pattern. Select always to force recognizing the schema on the first line of csv files. Possible values are: never, always, and only string.
xml.namespace_identificationUsed for configuring XML fields identification. Value uri. Note: To keep the compatibility with a scanner previous to version 43, it is necessary to use the value legacy (default value).
xml.fields_ordering

Starting from version 67.

Allows ordering the list of retrieved fields.

Possible values are:

  • alphabetical: Fields are ordered alphabetically
  • "", legacy, or unordered: Fields are ordered as they are read.

User Permissions

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

Data Extraction

A dataset from a file system may actually be stored in multiple files. Those files can themselves be stored in different folders (partitions).

When running the inventory, the local file system connector detects datasets with the usual dataset naming convention in file systems.

Read more: Dataset Detection on File Systems

Collected Metadata

Inventory

Will collect the list of tables and views accessible to the user.

Dataset

  • Name
  • Source Description: not supported
  • Inputs datasets
  • Output datasets
  • Multivalued: false
  • Primary Key: Tags are considered to be part of the primary key.
  • Technical Data:
    • File path
    • File Format
    • Created
    • Updated
    • Owner

Field

Dataset field.

  • Name
  • Source Description
  • Type
  • Can be null: not supported, false by default
  • Multivalued: not supported, false by default
  • Primary Key: not supported, false by default
  • Technical Data:
    • Technical Name
    • Native type

Unique Identifier Keys

A key is associated with each item of the catalog. When the object comes from an external system, the key is built and provided by the connector.

More information about unique identification keys in this documentation: Identification Keys.

ObjectIdentifier KeyDescription
Datasetcode/path/dataset name
  • code: Unique identifier of the connection noted in the configuration file
  • path: Full path
  • dataset name
Fieldcode/path/dataset name/field name
  • code: Unique identifier of the connection noted in the configuration file
  • path: Full path
  • dataset name
  • field name