-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #977 from sania-16/main
Working Documentation PR
- Loading branch information
Showing
18 changed files
with
181 additions
and
70 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
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Approve Clusters | ||
parent: Step By Step Guide | ||
nav_order: 13 | ||
--- | ||
|
||
# Approval of Clusters | ||
|
||
## | ||
|
||
[Zingg Enterprise Feature](#user-content-fn-1)[^1] | ||
|
||
|
||
|
||
### The approval phase is run as follows: | ||
|
||
` ` |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Explanation | ||
parent: Step By Step Guide | ||
nav_order: 12 | ||
--- | ||
|
||
# Explanation of Models | ||
|
||
## | ||
|
||
[Zingg Enterprise Feature](#user-content-fn-1)[^1] | ||
|
||
|
||
|
||
### The explain phase is run as follows: | ||
|
||
` ./scripts/zingg.sh --phase <phase for explanation> --conf <path to config> --mode explain ` |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
description: >- | ||
--- | ||
|
||
# Pass Thru Data | ||
|
||
[Zingg Enterprise Feature](#user-content-fn-1)[^1] |
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Relations | ||
parent: Step By Step Guide | ||
nav_order: 14 | ||
--- | ||
|
||
# Relate Feature | ||
|
||
## | ||
|
||
[Zingg Enterprise Feature](#user-content-fn-1)[^1] | ||
|
||
|
||
|
||
### The relate phase is run as follows: | ||
|
||
` ` |
15 changes: 15 additions & 0 deletions
15
docs/stepbystep/installation/Installing-snowflake-enterprise/README.md
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
description: From the jars provided | ||
--- | ||
|
||
# Installing Zingg on Snowflake for Enterprise | ||
|
||
## Prerequisites | ||
|
||
A) Java JDK 11 | ||
|
||
B) Snowflake - ZINGG_STAGE created in Enterprise Snowflake account | ||
|
||
*** | ||
|
||
#### |
21 changes: 21 additions & 0 deletions
21
...tep/installation/Installing-snowflake-enterprise/installing-zingg-enterprise.md
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
description: Setting things up | ||
--- | ||
|
||
# Installing Zingg | ||
|
||
Copy the release and license to a folder of your choice. Say directly under /home/ubuntu. Then execute the following: | ||
|
||
> `gzip -d zingg-enterprise-snowflake-0.4.1-SNAPSHOT.tar.gz ` | ||
> `tar xvf zingg-enterprise-snowflake-0.4.1-SNAPSHOT.tar ` | ||
> `cd zingg-enterprise-snowflake-0.4.1-SNAPSHOT ` | ||
> `export ZINGG_SNOW_JAR=~/zingg-enterprise-snowflake-0.4.1-SNAPSHOT ` | ||
> `export ZINGG_SNOW_HOME=~/zingg-enterprise-snowflake-0.4.1-SNAPSHOT ` | ||
**better to keep ZINGG_SNOW_JAR and ZINGG_SNOW_HOME as part of the .bashrc for always having this value as part of the shell** | ||
|
||
> `mv ~/zingg.license . ` |
12 changes: 12 additions & 0 deletions
12
.../stepbystep/installation/Installing-snowflake-enterprise/match-configuration.md
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
description: | ||
--- | ||
|
||
# Match Configuration: | ||
|
||
Create the snowflake config file. This config file will contain the model locations , match types defined on fields, input and output tables in Snowflake. Please refer to **examples/febrl/configSnow.json** for a sample. Documentation for fields and match types is defined at [Zingg Field Definitions](https://docs.zingg.ai/zingg0.4.0/stepbystep/configuration/field-definitions). | ||
|
||
Along with the changes to the field definitions, please do the following: | ||
- Give ‘modelId’ a name. An example could be 28NovDev. | ||
- Change ‘INPUT_TABLE_NAME’ in data with the name of source table | ||
- Change ‘OUTPUT_TABLE_NAME’ in output with the name of output table |
13 changes: 13 additions & 0 deletions
13
...pbystep/installation/Installing-snowflake-enterprise/running-async-long-jobs.md
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
description: To ensure Zingg works as a background process | ||
--- | ||
|
||
# Running Asynchronously For Long Duration Jobs: | ||
|
||
Using no-hup mode, we can run Zingg as a background process and even if SSH is broken it will continue to work. | ||
|
||
> `nohup ./scripts/zingg.sh --properties-file ~/zingg/snowEnv.txt --phase findTrainingData --conf ~/zingg/snowConfigFile.json & ` | ||
We can see the logs of scripts by running the following command: | ||
|
||
> `tail -f nohup.out ` |
21 changes: 21 additions & 0 deletions
21
...stepbystep/installation/Installing-snowflake-enterprise/snowflake-properties.md
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
description: Connection Details | ||
--- | ||
|
||
# Snowflake Connection Properties | ||
|
||
Zingg needs details about accessing Snowflake which can be provided through a properties file. | ||
|
||
> `touch snowEnv.txt ` | ||
### SnowEnv.txt format: | ||
|
||
``` | ||
URL={snowflake_url} | ||
USER={snowflake_user_name} | ||
PASSWORD={snowflake_password} | ||
ROLE={role} | ||
WAREHOUSE={warehouse} | ||
DB={database_name} | ||
SCHEMA={schema} | ||
``` |
13 changes: 13 additions & 0 deletions
13
.../stepbystep/installation/Installing-snowflake-enterprise/verify-installation.md
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
description: To verify that Zingg ENterprise installation works perfectly | ||
--- | ||
|
||
# Verifying The Installation | ||
|
||
Let us now run a sample program to ensure that our installation is correct. | ||
|
||
> `./scripts/zingg.sh --properties-file snowEnv.txt --phase findTrainingData --conf examples/febrl/configSnow.json ` | ||
The above will build Zingg models and use that to find duplicates in the **examples/febrl/test.csv** file. You will see Zingg logs on the console and once the job finishes, you will see tables being formed with the name **UNIFIED_CUSTOMERS_MODELID** with matching records sharing the same _cluster id_. | ||
|
||
Congratulations, Zingg has been installed! |
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