Presto assets app
TL;DR
Learn how to crawl Presto assets and publish them to Atlan for discovery.
The Presto assets app crawls Presto catalogs, schemas, tables, views, and columns
and publishes them to Atlan. Build it with the AtlanPresto builder.
Creating an app creates a new connection
Each create mints a new connection and new assets. To re-crawl, re-run the existing workflow (see Re-run an existing app).
Basic authentication
- Python
Presto crawling with basic auth
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.apps import AtlanPresto
client = AtlanClient()
response = (
AtlanPresto(client)
.basic( # (1)
username="atlan_user", # (2)
password="••••••", # (3)
host="presto.example.com", # (4)
)
.connection(
name="production-presto",
admin_roles=[client.role_cache.get_id_for_name("$admin")],
)
.include_metadata({"my_catalog": ["public"]}) # (5)
.run(name="presto-prod")
)
print(response.slug, response.run_id)
- Step 1—Credential. Username/password auth; the secret is vaulted.
- Required. Username.
- Required. Password.
- Required. The Presto host. The port (
port=) is optional. - Catalogs/schemas to crawl, as
{catalog: [schema, ...]}.
Configuration options
All metadata options are optional:
- Python
Presto metadata configuration
(
AtlanPresto(client)
.basic(username="atlan_user", password="••••••", host="...")
.connection(name="production-presto", admin_roles=[...])
.include_metadata({"my_catalog": ["public"]}) # (1)
.exclude_metadata({"my_catalog": ["staging"]}) # (2)
.run(name="presto-prod")
)
- Catalogs/schemas to include in extraction, as
{catalog: [schema, ...]}. - Catalogs/schemas to exclude from extraction.