Syntax
Parameters
Example
Advanced topics
For more information about encodeParquet or JSON, see Sink data in parquet or json format.
For more information about batching strategy, see Batching strategy for file sink.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
This guide describes how to sink data from RisingWave to WebHDFS.
CREATE SINK [ IF NOT EXISTS ] sink_name
[FROM sink_from | AS select_query]
WITH (
connector='webhdfs',
connector_parameter = 'value', ...
);
| 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. The WebHDFS sink only supports append-only. |
CREATE SINK webhdfs_sink AS SELECT v1
FROM t1
WITH (
connector='webhdfs',
webhdfs.path = '<test_path>',
webhdfs.endpoint = '<test_endpoint>',
type = 'append-only',
)FORMAT PLAIN ENCODE PARQUET(force_append_only=true);
Parquet or JSON, see Sink data in parquet or json format.
For more information about batching strategy, see Batching strategy for file sink.Was this page helpful?