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)"Step 1: Clone The Zingg Repository
brew install gitgit clone https://github.com/zinggAI/zingg.gitStep 2: Install JDK 11 (Java Development Kit)
Install OpenJDK 11:
brew install openjdk@11Link Java 11:
Apple Silicon:
sudo ln -sfn /opt/homebrew/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdkIntel:
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.
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
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:
Run the following to Compile the Zingg Repository:
Run the following to Compile while skipping tests:
Step 7: If you have any issue with 'SPARK_LOCAL_IP'
Find your IP:
ipconfig getifaddr en0Find your Hostname:
hostnameUpdate hosts:
sudo nano /etc/hostsand 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?