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)
42
-
10. Setup gcloud on your computer by following [Using the Google Cloud SDK installer](https://cloud.google.com/sdk/docs/downloads-interactive)
43
-
11. [Install gradle](https://gradle.org/install/)
44
-
12. Run following command to set gradle wrapper
48
+
7. Authorize Snowflake to operate on your bucket
49
+
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)
50
+
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)
51
+
9. Setup gcloud on your computer by following [Using the Google Cloud SDK installer](https://cloud.google.com/sdk/docs/downloads-interactive)
52
+
10. [Install gradle](https://gradle.org/install/)
53
+
11. Run following command to set gradle wrapper
45
54
```
46
55
gradle wrapper
47
56
```
@@ -64,27 +73,30 @@ An example consists of two pipelines:
64
73
```
65
74
./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
118
```
107
119
create or replace stage <STAGE NAME>
108
120
url = 'gcs://<GCS BUCKET NAME>/data/'
109
121
storage_integration = <INTEGRATION NAME>;
110
122
```
123
+
```
124
+
create stage <STAGE NAME>
125
+
url = 'S3://<S3 BUCKET NAME>/data/'
126
+
storage_integration = <INTEGRATION NAME>;
127
+
```
111
128
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