You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that `gcs` prefix is used here, not `gs`.
29
-
8. Authorize Snowflake to operate on your bucket by following [Grant the Service Account Permissions to Access Bucket Objects](https://docs.snowflake.com/en/user-guide/data-load-gcs-config.html#step-3-grant-the-service-account-permissions-to-access-bucket-objects)
29
+
8. Authorize Snowflake to operate on your bucket by following [Step 3. Grant the Service Account Permissions to Access Bucket Objects](https://docs.snowflake.com/en/user-guide/data-load-gcs-config.html#step-3-grant-the-service-account-permissions-to-access-bucket-objects)
30
30
9. Setup gcloud on your computer by following [Using the Google Cloud SDK installer](https://cloud.google.com/sdk/docs/downloads-interactive)
31
31
10. Run one of the provided examples.
32
32
33
-
#### Batching example
34
-
An example that contains batch writing and reading from Snowflake. Inspired by [Apache Beam/WordCount-example](https://github.com/apache/beam/blob/master/examples/java/src/main/java/org/apache/beam/examples/WordCount.java)
33
+
### Batching example
34
+
An example contains batch writing into Snowflake and batch reading from Snowflake. Inspired by [Apache Beam/WordCount-example](https://github.com/apache/beam/blob/master/examples/java/src/main/java/org/apache/beam/examples/WordCount.java).
35
35
36
+
An example consists of two pipelines:
37
+
* Writing into Snowflake
38
+
1. Reading files from provided by `inputFile` argument.
39
+
2. Counting words
40
+
3. Writing counts into Snowflake table provided by `tableName` argument.
41
+
* Reading from Snowflake
42
+
1. Reading counts from Snowflake table provided by `tableName` argument.
43
+
2. Writing counts into provided by `output` argument.
44
+
45
+
#### Executing:
36
46
1. Run batching example by executing following command:
37
47
```
38
48
./gradlew run --args=" /
@@ -43,6 +53,7 @@ An example that contains batch writing and reading from Snowflake. Inspired by [
Copy file name to clipboardExpand all lines: src/main/java/batching/SnowflakeWordCount.java
+1-14Lines changed: 1 addition & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -31,20 +31,7 @@
31
31
/**
32
32
* An example that contains batch writing and reading from Snowflake. Inspired by Apache Beam/WordCount-example(https://github.com/apache/beam/blob/master/examples/java/src/main/java/org/apache/beam/examples/WordCount.java)
33
33
*
34
-
* An example consists of two piplines:
35
-
* a) Writing into Snowflake
36
-
* b) Reading from Snowflake
37
-
*
38
-
* The flow of writing into Snowflake is following:
39
-
* 1. Reading provided files
40
-
* 2. Counting words
41
-
* 3. Writing counts into Snowflake
42
-
*
43
-
* The flow of reading from Snowflake is following:
0 commit comments