-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfc49d3
commit 21a0b1a
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
--- | ||
layout: default | ||
title: Running on AWS | ||
parent: Running Zingg on Cloud | ||
nav_order: 5 | ||
--- | ||
## Running on AWS Elastic Map Reduce | ||
|
||
One option is to use the spark-submit option with the Zingg config and phase. | ||
# Running on AWS | ||
|
||
One option is to use the spark-submit option with the Zingg config and phase. Please note that the config.json should be available locally at the driver for Zingg to use it.  | ||
|
||
````` | ||
aws emr create-cluster --name "Add Spark Step Cluster" --release-label emr-6.2.0 --applications Name=Zingg \ | ||
--ec2-attributes KeyName=myKey --instance-type <instance type> --instance-count <num instances> \ | ||
--steps Type=Spark,Name="Zingg",ActionOnFailure=CONTINUE,Args=[--class,zingg.spark.client.SparkClient,<s3 location of zingg.jar>,--phase,<name of phase - findTrainingData,match etc>,--conf,<local location of config.json>] --use-default-roles```` | ||
````` | ||
|
||
A step by step s provided at the following [link](https://blog.infostrux.com/identity-resolution-with-zingg-ai-snowflake-and-aws-emr-for-the-canadian-football-league-22cf0850ab53). The guide mentions training locally using Zingg docker, but the findTrainingData and label phases can be executed on EMR directly.  | ||
|
||
|
||
aws emr create-cluster --name "Add Spark Step Cluster" --release-label emr-6.2.0 --applications Name=Zingg \ | ||
--ec2-attributes KeyName=myKey --instance-type <instance type> --instance-count <num instances> \ | ||
--steps Type=Spark,Name="Zingg",ActionOnFailure=CONTINUE,Args=[--class,zingg.client.Client,<s3 location of zingg.jar>,--phase,<name of phase - findTrainingData,match etc>,--conf,<s3 location of config.json>] --use-default-roles```` | ||
|
||
A second option is to run Zingg Python code in [AWS EMR Notebooks](https://aws.amazon.com/emr/features/notebooks/) |