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

macOS Setup Guide

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

This guide provides specific instructions for setting up the Zingg development environment on macOS.

Step 0: Initial OS Setup

Homebrew is the preferred package manager for macOS and makes installing system dependencies much easier. While you can install dependencies manually, this guide uses Homebrew for simplicity.

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
right-long

Step 1: Clone The Zingg Repository

brew install git
right-long
git clone https://github.com/zinggAI/zingg.git

Step 2: Install JDK 11 (Java Development Kit)

  1. Install OpenJDK 11: brew install openjdk@11

  2. Link Java 11:

  • Apple Silicon: sudo ln -sfn /opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

  • Intel: sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk

Step 3: Install Apache Spark

Download Apache Spark from the Apache Spark Official Website.

For example for 3.5.0:

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

right-long

Step 4: Install Apache Maven

Step 5: Update Environment Variables (~/.zshrc)

<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.

Save/exit and do source .zshrc so that they reflect

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 .zshrc. 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:

right-long

Step 7: If you have any issue with 'SPARK_LOCAL_IP'

  1. Find your IP: ipconfig getifaddr en0

  2. Find your Hostname: hostname

  3. Update hosts: sudo nano /etc/hosts and add [your-ip] [your-hostname] at the bottom.

Step 8: Run Zingg To Find Training Data

Run this script in the terminal opened in Zingg clones directory:

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:

Step 10: Run Zingg To Train Model Based On Labeling

Run this script in the terminal opened in Zingg clones directory:

Step 11: Run Zingg To Prepare Final Output Data

Run this script in the terminal opened in Zingg clones directory:

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

Last updated

Was this helpful?