The GetDynamoDB processor requires a hash key value to look up an item in
the table.  The default setting is an Expression Language statement that
reads the hash key value from a flowfile attribute,
dynamodb.item.hash.key.value.  But this is not required.  You can change it
to any attribute expression ${my.hash.key}, or even hard-code a single key
"item123" if you wish.

Does that help?



On Thu, Oct 13, 2016 at 12:17 PM, Gop Krr <gop....@gmail.com> wrote:

> Hi All,
> I have been trying to use get and load processor for the dynamodb and I am
> almost there. I am able to run the get processor and I see, data is flowing
> :)
> But I see the following error in my nifi-app.log file:
> 2016-10-13 18:02:38,823 ERROR [Timer-Driven Process Thread-9]
> o.a.n.p.aws.dynamodb.GetDynamoDB 
> GetDynamoDB[id=7d906337-0157-1000-5868-479d0e0e3580]
> Hash key value '' is required for flow file StandardFlowFileRecord[uuid=
> 44554c23-1618-47db-b46e-04ffd737748e,claim=StandardContentClaim
> [resourceClaim=StandardResourceClaim[id=1476381755460-37287,
> container=default, section=423], offset=0, length=1048576],offset=0,name=
> 2503473718684086,size=1048576]
> I understand that, its looking for the Hash Key Value but I am not sure,
> how do I pass it.  In the setting tab, nifi automatically populates
> this: ${dynamodb.item.hash.key.value} but looks like this is not the
> right way to do it. Can I get some guidance on this? Thanks for all the
> help.
> Best,
> Rai

Reply via email to