

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# テーブルプロパティ
<a name="how-zeppelin-glue-properties"></a>

データフィールドに加えて、 AWS Glue テーブルはテーブルプロパティを使用して Studio ノートブックにその他の情報を提供します。Managed Service for Apache Flink では、次の AWS Glue テーブルプロパティを使用します。
+ [Apache Flink 時間値を定義します](#how-zeppelin-glue-timestamp): これらのプロパティは、Apache Flink 用 Managed Service が Apache Flink の内部データ処理時間値をどのように出力するかを定義します。
+ [Flink コネクタとフォーマットプロパティを使用します](#how-zeppelin-glue-connector): これらのプロパティはデータストリームに関する情報を提供します。

 AWS Glue テーブルにプロパティを追加するには、次の手順を実行します。

1. にサインイン AWS マネジメントコンソール し、[https://console.aws.amazon.com/glue/](https://console.aws.amazon.com/glue/) で AWS Glue コンソールを開きます。

1. テーブルのリストから、アプリケーションがデータ接続情報を保存するために使用するテーブルを選択します。[**Action**]、[**テーブル詳細の編集**] を選択します。

1. [**テーブルプロパティ**] で、[**キー**] に **managed-flink.proctime**、[**値**] に **user\_action\_time** を入力します。

## Apache Flink 時間値を定義します
<a name="how-zeppelin-glue-timestamp"></a>

Apache Flink は、「[Processing Time](https://nightlies.apache.org/flink/flink-docs-release-1.15/dev/table/streaming/time_attributes.html#processing-time)」や「[Event Time](https://nightlies.apache.org/flink/flink-docs-release-1.15/dev/table/streaming/time_attributes.html#event-time)」など、ストリーム処理イベントの発生時刻を記述する時間値を提供します。これらの値をアプリケーション出力に含めるには、指定されたフィールドにこれらの値を出力するように Managed Service for Apache Flink ランタイムに指示するプロパティを AWS Glue テーブルに定義します。

テーブルプロパティで使用するキーと値は次のとおりです。


| Timestamp タイプ | キー | 値 | 
| --- |--- |--- |
| [ 処理時間](https://nightlies.apache.org/flink/flink-docs-release-1.15/dev/table/streaming/time_attributes.html#processing-time) | 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. | 
| [ イベント時間](https://nightlies.apache.org/flink/flink-docs-release-1.15/dev/table/streaming/time_attributes.html#event-time) | 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.「{{column\_name}}」.ミリ秒 | The watermark interval in milliseconds | 

## Flink コネクタとフォーマットプロパティを使用します
<a name="how-zeppelin-glue-connector"></a>

 AWS Glue テーブルプロパティを使用して、データソースに関する情報をアプリケーションの Flink コネクタに提供します。Apache Flink 用 Managed Service がコネクタに使用するプロパティの例は、次のとおりです。


| Connector Type | キー | 値 | 
| --- |--- |--- |
| [ Kafka](https://nightlies.apache.org/flink/flink-docs-release-1.15/dev/table/connectors/kafka.html#connector-options) | format | 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](https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/table/connectors/kinesis.html#connector-options) | format | 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 (ファイルシステム)](https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/table/connectors/filesystem.html) | 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 以外のコネクタの詳細情報については、コネクタのマニュアルを参照してください。