【问题标题】:Error in Apache NiFi ExecuteSQL Processor: org.apache.avro.UnresolvedUnionException: Not in union ["null","long"]Apache NiFi ExecuteSQL 处理器中的错误:org.apache.avro.UnresolvedUnionException: Not in union ["null","long"]
【发布时间】:2016-08-09 08:39:55
【问题描述】:

表架构: id BIGINT(20),无符号整数,自动增量 account_id INT(64),UNSIGNED INT,可以为 NULL

有人能解决这个错误吗? 我正在使用 Apache NiFi 0.7.0

【问题讨论】:

    标签: sql avro apache-nifi hdf


    【解决方案1】:

    这是 NiFi 处理 BigInteger 对象相对于 Avro 的方式中的一个错误,我已经在 Apache Jira 中编写了它:

    https://issues.apache.org/jira/browse/NIFI-2531

    如果可以重新定义您的列类型,您也许可以选择一种适合“长”对象的类型,例如 MySQL 中的 INT(19) 或类似的东西。

    【讨论】:

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