【发布时间】:2019-10-18 23:25:38
【问题描述】:
在文档中,我找到了如何以JSON 格式创建Glue table,但我找不到如何以Parquet 格式创建一个。
我想我可以提供glue.DataFormat 的子类型,但我不知道该怎么做https://docs.aws.amazon.com/cdk/api/latest/docs/aws-glue-readme.html
【问题讨论】:
在文档中,我找到了如何以JSON 格式创建Glue table,但我找不到如何以Parquet 格式创建一个。
我想我可以提供glue.DataFormat 的子类型,但我不知道该怎么做https://docs.aws.amazon.com/cdk/api/latest/docs/aws-glue-readme.html
【问题讨论】:
好的,我在 Terraform 的网站上找到了工作值。 https://www.terraform.io/docs/providers/aws/r/glue_catalog_table.html
const glue_DataFormat_Parquet = <glue.DataFormat> {
inputFormat: new glue.InputFormat('org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'),
outputFormat: new glue.OutputFormat('org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'),
serializationLibrary: new glue.SerializationLibrary('org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe')
};
【讨论】: