Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Ubuntu/WSL2 Setup Guide

Step-by-step instructions for setting up the Zingg development environment on Ubuntu and WSL2. Install Java 11, Spark 3.5, Maven, then build Zingg from source and run the full match workflow.

The following steps will help you set up the Zingg Development Environment on Ubuntu/WSL2.

Step 0: Initial OS Setup (Ubuntu/WSL2)

Make sure to update your Ubuntu installation:

sudo apt update

Install Ubuntu on WSL2 on Windows

  1. Install wsl: Type the following command in Windows PowerShell.

wsl --install
  1. Download Ubuntu from Microsoft Store, Ubuntu 20.04 LTS

  2. Configure Ubuntu with a username and password

  3. Open Ubuntu 20.04 LTS and start working

sudo apt update

Step 1: Clone The Zingg Repository (Ubuntu)

  1. Install and SetUp Git: sudo apt install git

  2. Verify : git --version

  3. Set up Git by following the tutorial.

  4. Clone the Zingg Repository: git clone https://github.com/zinggAI/zingg.git

Step 2: Install JDK 11 (Ubuntu)

Follow this tutorial to install Java 11 JDK 11 in Ubuntu.

For example:

Step 3: Install Apache Spark

Common Steps

Download Apache Spark - from the Apache Spark Official Website.

  • For example, 3.5.0:

Original Ubuntu Instructions (Manual Wget)

Install the downloaded Apache Spark - on your Ubuntu by following this tutorial.

  • For example, 3.5.0:

Make sure that Spark version you have installed is compatible with Java you have installed, and Zingg is supporting those versions.

Step 4: Install Apache Maven (Ubuntu)

Install the latest maven package.

  • For example, 3.8.8:

Step 5: Update Environment Variables (Ubuntu - ~/.bashrc)

  1. Open .bashrc and add env variables at the end of the file.

<path_to_zingg> will be a directory where you clone the repository of the Zingg. Similarly, if you have installed spark on a different directory you can set SPARK_HOME accordingly.

  1. Save/exit and do source .bashrc so that they reflect.

  1. Verify:

Step 6: Compile The Zingg Repository

  1. Make sure you are executing the following commands in the same terminal window where you saved the bashrc. Run the following to compile the Zingg Repository.

  1. Run the following to Compile the Zingg Repository

  1. Run the following to Compile while skipping tests.

Step 7: If you have any issue with 'SPARK_LOCAL_IP' (Ubuntu)

  1. Install net-tools using sudo apt-get install -y net-tools

  2. Run ifconfig in the terminal, find the IP address, and add an entry for it in /etc/hosts mapping the IP to your PC name.

Step 8: Run Zingg To Find Training Data

Run this script in the terminal opened in Zingg clones directory ./scripts/zingg.sh --phase findTrainingData --conf examples/febrl/config.json

If everything is right, it should show Zingg banner.

Step 9: Run Zingg To label Data

Run this script in the terminal opened in Zingg clones directory ./scripts/zingg.sh --phase label --conf examples/febrl/config.json --properties-file config/zingg.conf

Step 10: Run Zingg To train model based on labeling

Run this script in the terminal opened in Zingg clones directory ./scripts/zingg.sh --phase train --conf examples/febrl/config.json --properties-file config/zingg.conf

Step 11: Run Zingg To prepare final output data

Run this script in the terminal opened in Zingg clones directory ./scripts/zingg.sh --phase match --conf examples/febrl/config.json --properties-file config/zingg.conf

Change the directory cd /tmp/zinggOutput (path provided in the config file) to see the output files.

Last updated

Was this helpful?