mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-16 18:15:17 +00:00
Update: Trino, Presto Logic and Doc (#9859)
* Update: Trino, Presto Logic and Doc * Update: Trino, Presto Logic and Doc * Update permissions in Doc * Update openmetadata-docs/content/connectors/database/trino/index.md Co-authored-by: Mayur Singal <39544459+ulixius9@users.noreply.github.com> Co-authored-by: Mayur Singal <39544459+ulixius9@users.noreply.github.com>
This commit is contained in:
parent
1cfdd6d7b0
commit
49d48e0546
@ -5,10 +5,10 @@ source:
|
|||||||
config:
|
config:
|
||||||
type: Presto
|
type: Presto
|
||||||
hostPort: localhost:8080
|
hostPort: localhost:8080
|
||||||
catalog: tpcds
|
catalog: catalog_name
|
||||||
username: admin
|
username: admin
|
||||||
password: password
|
password: password
|
||||||
databaseSchema: tpcds
|
databaseSchema: schema_name
|
||||||
sourceConfig:
|
sourceConfig:
|
||||||
config:
|
config:
|
||||||
generateSampleData: false
|
generateSampleData: false
|
||||||
|
|||||||
@ -6,8 +6,8 @@ source:
|
|||||||
type: Trino
|
type: Trino
|
||||||
hostPort: localhost:8080
|
hostPort: localhost:8080
|
||||||
username: user
|
username: user
|
||||||
catalog: tpcds
|
catalog: catalog_name
|
||||||
databaseSchema: tiny
|
databaseSchema: schema_name
|
||||||
connectionOptions: {}
|
connectionOptions: {}
|
||||||
connectionArguments: {}
|
connectionArguments: {}
|
||||||
sourceConfig:
|
sourceConfig:
|
||||||
|
|||||||
@ -132,6 +132,7 @@ class PrestoSource(CommonDbSourceService):
|
|||||||
else:
|
else:
|
||||||
results = self.connection.execute("SHOW CATALOGS")
|
results = self.connection.execute("SHOW CATALOGS")
|
||||||
for res in results:
|
for res in results:
|
||||||
|
if res:
|
||||||
new_catalog = res[0]
|
new_catalog = res[0]
|
||||||
database_fqn = fqn.build(
|
database_fqn = fqn.build(
|
||||||
self.metadata,
|
self.metadata,
|
||||||
|
|||||||
@ -181,6 +181,7 @@ class TrinoSource(CommonDbSourceService):
|
|||||||
else:
|
else:
|
||||||
results = self.connection.execute("SHOW CATALOGS")
|
results = self.connection.execute("SHOW CATALOGS")
|
||||||
for res in results:
|
for res in results:
|
||||||
|
if res:
|
||||||
new_catalog = res[0]
|
new_catalog = res[0]
|
||||||
database_fqn = fqn.build(
|
database_fqn = fqn.build(
|
||||||
self.metadata,
|
self.metadata,
|
||||||
|
|||||||
@ -142,6 +142,7 @@ workflowConfig:
|
|||||||
- **password**: Password to connect to Presto.
|
- **password**: Password to connect to Presto.
|
||||||
- **hostPort**: Enter the fully qualified hostname and port number for your Presto deployment in the Host and Port field.
|
- **hostPort**: Enter the fully qualified hostname and port number for your Presto deployment in the Host and Port field.
|
||||||
- **catalog**: Presto offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
- **catalog**: Presto offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
||||||
|
- **DatabaseSchema**: DatabaseSchema of the data source. This is optional parameter, if you would like to restrict the metadata reading to a single databaseSchema. When left blank, OpenMetadata Ingestion attempts to scan all the databaseSchema.
|
||||||
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
||||||
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
||||||
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
||||||
|
|||||||
@ -142,6 +142,7 @@ workflowConfig:
|
|||||||
- **password**: Password to connect to Presto.
|
- **password**: Password to connect to Presto.
|
||||||
- **hostPort**: Enter the fully qualified hostname and port number for your Presto deployment in the Host and Port field.
|
- **hostPort**: Enter the fully qualified hostname and port number for your Presto deployment in the Host and Port field.
|
||||||
- **catalog**: Presto offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
- **catalog**: Presto offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
||||||
|
- **DatabaseSchema**: DatabaseSchema of the data source. This is optional parameter, if you would like to restrict the metadata reading to a single databaseSchema. When left blank, OpenMetadata Ingestion attempts to scan all the databaseSchema.
|
||||||
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
||||||
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
||||||
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
||||||
|
|||||||
@ -136,6 +136,7 @@ the changes.
|
|||||||
- **Password**: Password to connect to Presto.
|
- **Password**: Password to connect to Presto.
|
||||||
- **Host and Port**: Enter the fully qualified hostname and port number for your Presto deployment in the Host and Port field.
|
- **Host and Port**: Enter the fully qualified hostname and port number for your Presto deployment in the Host and Port field.
|
||||||
- **Catalog**: Presto offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
- **Catalog**: Presto offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
||||||
|
- **DatabaseSchema**: DatabaseSchema of the data source. This is optional parameter, if you would like to restrict the metadata reading to a single databaseSchema. When left blank, OpenMetadata Ingestion attempts to scan all the databaseSchema.
|
||||||
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
||||||
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Presto during the connection. These details must be added as Key-Value pairs.
|
||||||
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
||||||
|
|||||||
@ -30,6 +30,17 @@ To run the Trino ingestion, you will need to install:
|
|||||||
pip3 install "openmetadata-ingestion[trino]"
|
pip3 install "openmetadata-ingestion[trino]"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<Note>
|
||||||
|
|
||||||
|
To Inesget metadata from the Trino User Must have select privileges to this tables.
|
||||||
|
- `information_schema.schemata`
|
||||||
|
- `information_schema.columns`
|
||||||
|
- `information_schema.tables`
|
||||||
|
- `information_schema.views`
|
||||||
|
- `system.metadata.table_comments`
|
||||||
|
|
||||||
|
</Note>
|
||||||
|
|
||||||
## Metadata Ingestion
|
## Metadata Ingestion
|
||||||
|
|
||||||
All connectors are defined as JSON Schemas.
|
All connectors are defined as JSON Schemas.
|
||||||
@ -145,6 +156,7 @@ workflowConfig:
|
|||||||
- **password**: Password to connect to Trino.
|
- **password**: Password to connect to Trino.
|
||||||
- **hostPort**: Enter the fully qualified hostname and port number for your Trino deployment in the Host and Port field.
|
- **hostPort**: Enter the fully qualified hostname and port number for your Trino deployment in the Host and Port field.
|
||||||
- **catalog**: Trino offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
- **catalog**: Trino offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
||||||
|
- **DatabaseSchema**: DatabaseSchema of the data source. This is optional parameter, if you would like to restrict the metadata reading to a single databaseSchema. When left blank, OpenMetadata Ingestion attempts to scan all the databaseSchema.
|
||||||
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
||||||
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
||||||
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
||||||
|
|||||||
@ -30,6 +30,17 @@ To run the Trino ingestion, you will need to install:
|
|||||||
pip3 install "openmetadata-ingestion[trino]"
|
pip3 install "openmetadata-ingestion[trino]"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<Note>
|
||||||
|
|
||||||
|
To Inesget metadata from the Trino User Must have select privileges to this tables.
|
||||||
|
- `information_schema.schemata`
|
||||||
|
- `information_schema.columns`
|
||||||
|
- `information_schema.tables`
|
||||||
|
- `information_schema.views`
|
||||||
|
- `system.metadata.table_comments`
|
||||||
|
|
||||||
|
</Note>
|
||||||
|
|
||||||
## Metadata Ingestion
|
## Metadata Ingestion
|
||||||
|
|
||||||
All connectors are defined as JSON Schemas.
|
All connectors are defined as JSON Schemas.
|
||||||
@ -145,6 +156,7 @@ workflowConfig:
|
|||||||
- **password**: Password to connect to Trino.
|
- **password**: Password to connect to Trino.
|
||||||
- **hostPort**: Enter the fully qualified hostname and port number for your Trino deployment in the Host and Port field.
|
- **hostPort**: Enter the fully qualified hostname and port number for your Trino deployment in the Host and Port field.
|
||||||
- **catalog**: Trino offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
- **catalog**: Trino offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
||||||
|
- **DatabaseSchema**: DatabaseSchema of the data source. This is optional parameter, if you would like to restrict the metadata reading to a single databaseSchema. When left blank, OpenMetadata Ingestion attempts to scan all the databaseSchema.
|
||||||
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
||||||
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
||||||
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
||||||
|
|||||||
@ -43,6 +43,17 @@ To deploy OpenMetadata, check the <a href="/deployment">Deployment</a> guides.
|
|||||||
To run the Ingestion via the UI you'll need to use the OpenMetadata Ingestion Container, which comes shipped with
|
To run the Ingestion via the UI you'll need to use the OpenMetadata Ingestion Container, which comes shipped with
|
||||||
custom Airflow plugins to handle the workflow deployment.
|
custom Airflow plugins to handle the workflow deployment.
|
||||||
|
|
||||||
|
<Note>
|
||||||
|
|
||||||
|
To ingest metadata from the Trino source, the user must have select privileges for the following tables.
|
||||||
|
- `information_schema.schemata`
|
||||||
|
- `information_schema.columns`
|
||||||
|
- `information_schema.tables`
|
||||||
|
- `information_schema.views`
|
||||||
|
- `system.metadata.table_comments`
|
||||||
|
|
||||||
|
</Note>
|
||||||
|
|
||||||
## Metadata Ingestion
|
## Metadata Ingestion
|
||||||
|
|
||||||
### 1. Visit the Services Page
|
### 1. Visit the Services Page
|
||||||
@ -136,6 +147,7 @@ the changes.
|
|||||||
- **Password**: Password to connect to Trino.
|
- **Password**: Password to connect to Trino.
|
||||||
- **Host and Port**: Enter the fully qualified hostname and port number for your Trino deployment in the Host and Port field.
|
- **Host and Port**: Enter the fully qualified hostname and port number for your Trino deployment in the Host and Port field.
|
||||||
- **Catalog**: Trino offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
- **Catalog**: Trino offers a catalog feature where all the databases are stored. (Providing the Catalog is not mandatory from 0.12.2 or greater versions)
|
||||||
|
- **DatabaseSchema**: DatabaseSchema of the data source. This is optional parameter, if you would like to restrict the metadata reading to a single databaseSchema. When left blank, OpenMetadata Ingestion attempts to scan all the databaseSchema.
|
||||||
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
- **Connection Options (Optional)**: Enter the details for any additional connection options that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
||||||
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
- **Connection Arguments (Optional)**: Enter the details for any additional connection arguments such as security or protocol configs that can be sent to Trino during the connection. These details must be added as Key-Value pairs.
|
||||||
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
- In case you are using Single-Sign-On (SSO) for authentication, add the `authenticator` details in the Connection Arguments as a Key-Value pair as follows: `"authenticator" : "sso_login_url"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user