Ani
Ani

Reputation: 608

How to Use Attribute for JoltSpecification in Nifi Jolt

I want to create Jolt Specification in Update Attribute processor and use in JoltTransformer processor as an attribute like below.

nifi Update Attribute Component

enter image description here

I get this error in JoltTransformer: . "is invalid because of the specification not valid for the selected transformation. Reason being Jolt Specification will set during runtime.

enter image description here

Thanks for the help! Ani

Upvotes: 0

Views: 3401

Answers (1)

notNull
notNull

Reputation: 31540

In NiFi-1.6.0 JoltTransformJson processor not accepting attributes in jolt specification property value.

We still need to keep literal jolt specification in property value.

Example: enter image description here

But Starting from NiFi-1.7.0 JoltTransformJson processor will be evaluated using flow file attributes and variable registry

  • we can use ${mapping} starting from NiFi-1.7.0

Upvotes: 1

Related Questions