欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

Flink支持的Connectors版本

时间:2023-04-17

Overview | Apache Flink

Table & SQL Connectors #

Flink’s Table API & SQL programs can be connected to other external systems for reading and writing both batch and streaming tables、A table source provides access to data which is stored in external systems (such as a database, key-value store, message queue, or file system)、A table sink emits a table to an external storage system、Depending on the type of source and sink, they support different formats such as CSV, Avro, Parquet, or ORC.

This page describes how to register table sources and table sinks in Flink using the natively supported connectors、After a source or sink has been registered, it can be accessed by Table API & SQL statements.

If you want to implement your own custom table source or sink, have a look at the user-defined sources & sinks page.

Supported Connectors #

Flink natively support various connectors、The following tables list all available connectors.

NameVersionSourceSinkFilesystemBounded and Unbounded Scan, LookupStreaming Sink, Batch SinkElasticsearch6.x & 7.xNot supportedStreaming Sink, Batch SinkApache Kafka0.10+Unbounded ScanStreaming Sink, Batch SinkAmazon Kinesis Data StreamsUnbounded ScanStreaming SinkJDBCBounded Scan, LookupStreaming Sink, Batch SinkApache Hbase1.4.x & 2.2.xBounded Scan, LookupStreaming Sink, Batch SinkApache HiveSupported VersionsUnbounded Scan, Bounded Scan, LookupStreaming Sink, Batch Sink

How to use connectors #

Flink supports using SQL CREATE TABLE statements to register tables、One can define the table name, the table schema, and the table options for connecting to an external system.

See the SQL section for more information about creating a table.

The following code shows a full example of how to connect to Kafka for reading and writing JSON records.

User-defined Sources & Sinks | Apache Flinkhttps://nightlies.apache.org/flink/flink-docs-release-1.13/docs/dev/table/sourcessinks/User-defined Sources & Sinks #

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。