小编Big*_*ner的帖子

Pig SchemaParseException:无法重新定义:

我正在使用以avro-1.7.4格式存储的数据并尝试使用Pig进行数据操作.当尝试加载数据然后再次存储它时,我收到以下错误:

ERROR 2116:输出位置验证失败:'file:///home/pig/100/test.avro更多信息要关注:无法重新定义:员工

任何想法/建议将不胜感激.

谢谢.



更新:

Employees字段位于两个模式位置:

部分架构:



    {
                       "name" : "Employees",
                        "type" : [ "null", {
                          "type" : "array",
                          "items" : {
                            "type" : "record",
                            "name" : "CheckResponsibleEmployee",
                            "fields" : [ {
                              "name" : "Id",
                              "type" : "string"
                            }, {
                              "name" : "Name",
                              "type" : "string"
                            }, {
                              "name" : "Job",
                              "type" : "Job"
                            }, {
                              "name" : "Time",
                              "type" : [ "null", "Date" ],
                              "default" : null
                            } ]
                          }
                        } ],
                        "default" : …
Run Code Online (Sandbox Code Playgroud)

apache-pig avro hortonworks-data-platform

2
推荐指数
1
解决办法
2556
查看次数