Skip to main content
This tutorial walks you through how you can upload a Parquet file into the NexusOne platform.

Prerequisite

Before starting this tutorial, ensure you have the following:
  • Required roles: nx1_ingest and superset_user.
  • While configuring variables to deploy NexusOne, your ranger_repo_mode variable has the value shared. This ensures you have the nx1-unifiedsql service name. NexusOne supports other values too, but this tutorial uses shared.
  • Two separate policies that your platform administrator creates for you:
    • A policy on the schema you ingest into, such as parquet_schema in the iceberg catalog. It should grant the alter, create, drop, insert, select, and update permissions. It’s created with one of the following options:
    • A policy on the s3a://<bucket>/upload folder in your default S3 bucket. The NexusOne team shares this bucket with you when you purchase NexusOne. It should grant the read permission. It’s created with one of the following options:
  • When you create both policies, assign them to the nx1_ingest or superset_user role.

Download a Parquet file

Use this user dataset provided by team.

Upload the file to the portal

  1. Log in to NexusOne.
  2. On the top navigation bar, hover your mouse over Data, and then select Ingest.
  3. Click New pipeline.
  4. In the Source step, select Files.
  5. Click the Upload tab.
  6. Next to File, click Choose File, and select the Parquet file you downloaded.
  7. Wait until the filename appears with a check mark, and then confirm that the Format field shows Parquet.
  8. Click Next.

Add ingest details

  1. In the Preview and schema step, review the columns that NexusOne detected, and then click Next.
  2. In the Destination step, enter the following information in the fields:
    • Schema: parquet_schema
    • Table: parquet_table
    • Mode: Append
    • Pipeline name: parquet
    • Schedule: Once
  3. Click Next.
  4. In the Governance step, don’t add any tags or domain, and then click Next.
  5. In the Review step, click Create pipeline.

Monitor the pipeline

When you create the pipeline, NexusOne creates an Airflow job and opens the Ingest page, which lists your pipelines in a table. Since you set the pipeline to run once, as soon as it’s created, you can monitor the run using the following steps:
  1. On the Ingest page, click the All tab to show pipelines with any status.
  2. Select Mine to show only your pipelines.
  3. In the table, find your pipeline, parquet, and click it.
  4. On the pipeline’s page, click the Runs tab.
  5. Find the latest run in the list, and watch its status in the Result column.
  6. Wait for a few minutes and refresh your browser until the status in the Result column changes to Succeeded.

Visualize your dataset

Use the following steps to visualize your dataset:
  1. On the top navigation bar, hover your mouse over Platform, and then select Tools.
  2. On the Superset card, click SQL Lab to launch Superset’s SQL Lab.
  3. Enter the following command in the query box:
visualize-parquet-dataset-v4-1-2
Visualize your dataset

Additional resources

  • To get an overview of what file ingestion is, refer to Data ingestion overview.
  • For general instructions about how to ingest a file in NexusOne, refer to How to ingest a file.
  • For more information about roles or permissions, refer to IAM.