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`.
41
-
9. 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)
49
+
9. Authorize Snowflake to operate on your bucket
50
+
1. For GCS follow [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)
51
+
1. For S3 follow [Configuring a Snowflake Storage Integration](https://docs.snowflake.com/en/user-guide/data-load-s3-config.html#option-1-configuring-a-snowflake-storage-integration)
42
52
10. Setup gcloud on your computer by following [Using the Google Cloud SDK installer](https://cloud.google.com/sdk/docs/downloads-interactive)
43
53
11. [Install gradle](https://gradle.org/install/)
44
54
12. Run following command to set gradle wrapper
@@ -64,27 +74,30 @@ An example consists of two pipelines:
64
74
```
65
75
./gradlew run -PmainClass=batching.WordCountExample --args=" \
2. Depending on using GCS or S3 execute one of the following commands to [create Snowflake stage](https://docs.snowflake.com/en/sql-reference/sql/create-stage.html)
106
119
```
107
120
create or replace stage <STAGE NAME>
108
121
url = 'gcs://<GCS BUCKET NAME>/data/'
109
122
storage_integration = <INTEGRATION NAME>;
110
123
```
124
+
```
125
+
create stage <STAGE NAME>
126
+
url = 'S3://<S3 BUCKET NAME>/data/'
127
+
storage_integration = <INTEGRATION NAME>;
128
+
```
111
129
note: SnowflakeIO requires that url must have /data/ as a sufix
* 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)
@@ -38,19 +36,12 @@ public static void main(String[] args) {
0 commit comments