定义Avro架构

问题描述 投票:0回答:1

我有一些这样的avro数据打印在终端上。

{"cust_status_id":0, "cust_status_description":{"string":" Approved"}}

我创建的Avro模式就像

{
  "namespace": "com.thp.report.model",
  "type": "record",
  "name": "PraStatusMaster",
  "fields": [
    {
      "name": "pra_status_code",
      "type": "int"
    },
    {
      "name": "pra_status_description",
      "type": "string",
      "avro.java.string": "String"
    }
  ]
}

架构正确吗?

avro
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.