Prerequisites
Before starting this task, ensure you have the following:- Required roles:
nx1_ingest. - Ensure you are ingesting a database that NexusOne currently supports.
- A Ranger policy that your platform
administrator creates for you. It should be on the schema you ingest into, in the
icebergcatalog, and grant thealter,create,drop,insert,select, andupdatepermissions. - When you create the Ranger policy, assign it to the
nx1_ingestrole.
Add datasets from a database
- Web portal
- REST API
You add the connection details and the table or query to read, so NexusOne can copy the dataset from
the database.
- Log in to NexusOne.
- On the top navigation bar, hover your mouse over Data, and then select Ingest.
- Click New pipeline.
- In the Source step, select Database.
-
Enter the connection details:
- Engine: Select the type of database. NexusOne fills in the default port for that type.
- Host: Enter the database host.
- Port: Enter the database port.
- Database: Enter the database name.
- Username: Enter a username.
- Password: Enter a password. NexusOne stores it as a secret and never shows it again.
-
Select what to copy:
- A table: Click A table, and then enter the schema and table in the Table field. For example,
public.orders. - A query: Click A query, and then enter an SQL query in the Query field.
- A table: Click A table, and then enter the schema and table in the Table field. For example,
- Click Next.
-
Optional: In the Preview and schema step, NexusOne shows the columns after the first run. To change a column,
click Add a column change, enter a column name, and then select what to do with it:
- Load as: Select the data type to load the column as.
- Rename: Enter the new column name.
- Encrypt: Optionally, enter an encryption key name.
- Drop: Leave the column out of the new table.
- Click Next.
-
In the Destination step, add ingest details containing information about the new table:
- Schema: Enter a new schema name.
- Table: Enter a new table name.
- Mode: Select how to store incoming records at the destination table.
- Append: Add new records to the existing dataset.
- Merge: Add or update existing records where applicable.
- Overwrite: Replace all existing records.
- Pipeline name: Enter a unique name for this pipeline. This name appears on the Ingest page and in Airflow’s portal for tracking.
- Schedule: Set how often the pipeline should run. Schedule options include
Once,Hourly,Daily at…,Weekly…, andCustom cron.
-
In the Governance step, add optional details about the data, and then click Next:
- Domain: Select a DataHub domain. For example,
Company,Product,Sales. This is only applicable if you have one previously created on DataHub via the Govern feature on NexusOne. - Tags: Select or create one or more tags to label this pipeline.
- Domain: Select a DataHub domain. For example,
- In the Review step, review your choices, and then click Create pipeline to finish.
Monitor, trigger, or delete a job
When you schedule an ingested database, it runs as a job in Apache Airflow. You can monitor, trigger, or delete the job.- Web portal
- CLI
- REST API
- When you create a pipeline, NexusOne opens the Ingest page, which lists your pipelines in a table.
- Click the All tab to show pipelines with any status.
- Select Mine to show only your pipelines.
- Click your pipeline’s name to open its page.
- Click the Runs tab to track each run. The Result column shows the status of a run.
-
Use the buttons at the top of the page to manage the pipeline:
- Run now: Triggers a run outside its schedule.
- Pause or Resume: Stops or restarts the pipeline’s schedule.
- Open in Airflow: Opens the pipeline’s DAG details in Airflow’s portal.
- The three dots
...menu, then Delete pipeline: Deletes the pipeline.
Additional resources
- To understand how database ingestion works in NexusOne, refer to How database ingestion works.
- For more information about the monitoring feature, refer to the Monitor Overview page.
- For more information about roles or permissions, refer to the Govern Overview page.

