【问题标题】:How to create Glue table with Parquet format?如何创建 Parquet 格式的 Glue 表?
【发布时间】: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

【问题讨论】:

    标签: parquet aws-glue aws-cdk


    【解决方案1】:

    好的,我在 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')
        };
    

    【讨论】:

      猜你喜欢
      • 2020-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-16
      • 1970-01-01
      • 1970-01-01
      • 2019-01-31
      相关资源
      最近更新 更多