-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into tab/remove-schema-registry
- Loading branch information
Showing
42 changed files
with
269 additions
and
329 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 |
---|---|---|
|
@@ -224,3 +224,4 @@ VoteNotify | |
SharedMergeTree | ||
JWT | ||
TOML | ||
WebHDFS |
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,57 @@ | ||
--- | ||
id: sink-to-aws-s3 | ||
title: Sink data to AWS S3 | ||
description: Describes how to sink data to AWS S3. | ||
slug: /sink-to-aws-s3 | ||
--- | ||
<head> | ||
<link rel="canonical" href="https://docs.risingwave.com/docs/current/sink-to-aws-s3/" /> | ||
</head> | ||
|
||
This guide describes how to sink data from RisingWave to Amazon S3 sink using S3 connector in RisingWave. | ||
|
||
[Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html) is an object storage service that offers industry-leading scalability, data availability, security, and performance. | ||
|
||
## Syntax | ||
|
||
```sql | ||
CREATE SINK [ IF NOT EXISTS ] sink_name | ||
[FROM sink_from | AS select_query] | ||
WITH ( | ||
connector='s3', | ||
connector_parameter = 'value', ... | ||
); | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter names | Description | | ||
|-|-| | ||
| connector | Required. Support the S3 connector only.| | ||
| s3.region_name | Required. The service region. | | ||
| s3.bucket_name | Required. The name of the bucket where the sink data is stored in. | | ||
| s3.path | Required. The directory where the sink file is located.| | ||
| s3.credentials.access | Optional. The access key ID of AWS. | | ||
| s3.credentials.secret | Optional. The secret access key of AWS. | | ||
| s3.endpoint_url | Optional. The host URL for an S3-compatible object storage server. This allows users to use a different server instead of the standard S3 server.| | ||
| s3.assume_role | Optional. Specifies the ARN of an IAM role to assume when accessing S3. It allows temporary, secure access to S3 resources without sharing long-term credentials. | | ||
| type | Required. Defines the type of the sink. Options include `append-only` or `upsert`.| | ||
|
||
## Example | ||
|
||
```sql | ||
CREATE SINK s3_sink AS SELECT v1 | ||
FROM t | ||
WITH ( | ||
connector='s3', | ||
s3.path = '<test_path>', | ||
s3.region_name = '<region_name>', | ||
s3.bucket_name = '<bucket_name>', | ||
s3.credentials.account_name = '<account_name>', | ||
s3.credentials.account_key = '<account_key>', | ||
s3.endpoint_url = '<endpoint_url>', | ||
type = 'append-only', | ||
)FORMAT PLAIN ENCODE PARQUET(force_append_only=true); | ||
``` | ||
|
||
For more information about encode `Parquet`, see [Sink data in parquet format](/data-delivery.md#sink-data-in-parquet-format). |
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,52 @@ | ||
--- | ||
id: sink-to-google-cloud-storage | ||
title: Sink data to Google Cloud Storage | ||
description: Describes how to sink data to Google Cloud Storage. | ||
slug: /sink-to-google-cloud-storage | ||
--- | ||
<head> | ||
<link rel="canonical" href="https://docs.risingwave.com/docs/current/sink-to-google-cloud-storage/" /> | ||
</head> | ||
|
||
This guide describes how to sink data from RisingWave to Google Cloud Storage sink using GCS connector in RisingWave. | ||
|
||
[Google Cloud Storage](https://cloud.google.com/storage/docs) is a RESTful online file storage web service for storing and accessing data on Google Cloud Platform infrastructure. | ||
|
||
## Syntax | ||
|
||
```sql | ||
CREATE SINK [ IF NOT EXISTS ] sink_name | ||
[FROM sink_from | AS select_query] | ||
WITH ( | ||
connector='gcs', | ||
connector_parameter = 'value', ... | ||
); | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter names | Description | | ||
|-|-| | ||
| connector | Required. Support the GCS connector only.| | ||
| gcs.bucket_name | Required. The name of the bucket where the sink data is stored in. | | ||
| gcs.credential | Required. Base64-encoded credential key obtained from the GCS service account key JSON file. To get this JSON file, refer to the [guides of GCS documentation](https://cloud.google.com/iam/docs/keys-create-delete#iam-service-account-keys-create-console). To encode it in base64, run the following command: <code>cat ~/Downloads/rwc-byoc-test-464bdd851bce.json | base64 -b 0 | pbcopy</code>, and then paste the output as the value for this parameter. If this field is not specified, ADC (application default credentials) will be used.| | ||
| gcs.service_account| Optional. The service account of the GCS sink. If `gcs.credential` or ADC is not specified, the credentials will be derived from the service account.| | ||
| gcs.path | Required. The directory where the sink file is located. | | ||
| type | Required. Defines the type of the sink. Options include `append-only` or `upsert`. | | ||
|
||
## Example | ||
|
||
```sql | ||
CREATE SINK gcs_sink AS SELECT v1 | ||
FROM t1 | ||
WITH ( | ||
connector='gcs', | ||
gcs.path = '<test_path>', | ||
gcs.bucket_name = '<bucket_name>', | ||
gcs.credential = '<account_name>', | ||
gcs.service_account = '<service_account>' | ||
type = 'append-only', | ||
)FORMAT PLAIN ENCODE PARQUET(force_append_only=true); | ||
``` | ||
|
||
For more information about encode `Parquet`, see [Sink data in parquet format](/data-delivery.md#sink-data-in-parquet-format). |
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,46 @@ | ||
--- | ||
id: sink-to-webhdfs | ||
title: Sink data to WebHDFS | ||
description: Describes how to sink data to WebHDFS. | ||
slug: /sink-to-webhdfs | ||
--- | ||
<head> | ||
<link rel="canonical" href="https://docs.risingwave.com/docs/current/sink-to-webhdfs/" /> | ||
</head> | ||
|
||
This guide describes how to sink data from RisingWave to WebHDFS. | ||
|
||
As a workaround for HDFS, WebHDFS allows external clients to execute Hadoop file system operations without necessarily running on the Hadoop cluster itself. Therefore, it reduces the dependency on the Hadoop environment when using HDFS. | ||
|
||
## Syntax | ||
|
||
```sql | ||
CREATE SINK [ IF NOT EXISTS ] sink_name | ||
[FROM sink_from | AS select_query] | ||
WITH ( | ||
connector='webhdfs', | ||
connector_parameter = 'value', ... | ||
); | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter names | Description | | ||
|-|-| | ||
| connector | Required. Support the WebHDFS connector only. | | ||
| webhdfs.endpoint | Required. The endpoint for the WebHDFS service. | | ||
| webhdfs.path | Required. The directory where the sink file is located. | | ||
| type | Required. Defines the type of the sink. Options include `append-only` or `upsert`. | | ||
|
||
## Example | ||
|
||
```sql | ||
CREATE SINK webhdfs_sink AS SELECT v1 | ||
FROM t1 | ||
WITH ( | ||
connector='webhdfs', | ||
webhdfs.path = '<test_path>', | ||
webhdfs.endpoint = '<test_endpoint>', | ||
type = 'append-only', | ||
); | ||
``` |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.