Amazon Managed Service for Apache Flink (Amazon MSF) は、以前は Amazon Kinesis Data Analytics for Apache Flink と呼ばれていました。
テーブルプロパティ
データフィールドに加えて、 AWS Glue テーブルはテーブルプロパティを使用して Studio ノートブックに他の情報を提供します。Apache Flink 用 Managed Service は、次の AWS Glue テーブルプロパティを使用します。
Apache Flink 時間値を定義します: これらのプロパティは、Apache Flink 用 Managed Service が Apache Flink の内部データ処理時間値をどのように出力するかを定義します。
Flink コネクタとフォーマットプロパティを使用します: これらのプロパティはデータストリームに関する情報を提供します。
AWS Glue テーブルにプロパティを追加するには、次の手順を従います。
AWS マネジメントコンソールにサインインし、AWS Glue コンソール (https://console.aws.amazon.com/glue/
) を開きます。 テーブルのリストから、アプリケーションがデータ接続情報を保存するために使用するテーブルを選択します。[Action]、[テーブル詳細の編集] を選択します。
[テーブルプロパティ] で、[キー] に
managed-flink.proctime、[値] にuser_action_timeを入力します。
Apache Flink 時間値を定義します
Apache Flink は、「Processing Time
テーブルプロパティで使用するキーと値は次のとおりです。
| Timestamp タイプ | キー | 値 |
|---|---|---|
| 処理時間 |
managed-flink.proctime | The column name that AWS Glue will use to expose the value. This column name does not correspond to an existing table column. |
| イベント時間 |
managed-flink.rowtime | The column name that AWS Glue will use to expose the value. This column name corresponds to an existing table column. |
managed-flink.watermark.「 |
The watermark interval in milliseconds |
Flink コネクタとフォーマットプロパティを使用します
AWS Glue テーブルプロパティを使用して、データソースに関する情報をアプリケーションの Flink コネクタに提供します。Apache Flink 用 Managed Service がコネクタに使用するプロパティの例は、次のとおりです。
| Connector Type | キー | 値 |
|---|---|---|
| Kafka |
形式 |
The format used to deserialize and serialize Kafka messages, e.g. json or csv. |
scan.startup.mode |
The startup mode for the Kafka consumer, e.g. earliest-offset or timestamp. |
|
| Kinesis |
形式 |
The format used to deserialize and serialize Kinesis data stream records, e.g. json or csv. |
aws.region |
The AWS region where the stream is defined. | |
| S3 (ファイルシステム) |
format | The format used to deserialize and serialize files, e.g. json or csv. |
パス |
The Amazon S3 path, e.g. s3://mybucket/. |
Kinesis と Apache Kafka 以外のコネクタの詳細情報については、コネクタのマニュアルを参照してください。