如何在Nifi Jolt中将属性用于JoltSpecification

时间:2019-01-07 18:23:57

标签: apache-nifi jolt

我想在“更新属性”处理器中创建Jolt规范,并在JoltTransformer处理器中将其用作如下属性。

nifi Update Attribute Component

enter image description here

我在JoltTransformer中遇到此错误: 。 “由于该说明对所选转换无效而无效。 将在运行时设置“震动说明”的原因。

enter image description here

感谢您的帮助! 阿尼

1 个答案:

答案 0 :(得分:1)

在NiFi-1.6.0 JoltTransformJson处理器not accepting attributes in jolt specification property value中。

我们仍然需要保持 literal jolt specification 的属性值。

示例: enter image description here

但是从 NiFi-1.7.0 开始,JoltTransformJson处理器 将使用流文件属性和变量注册表进行评估

  • 我们可以从${mapping}开始使用NiFi-1.7.0