If "Artist" is the Hash Key and "SongTitle" is the Range Key, I do not
believe GetDynamoDB will retrieve all songs for an artist.  GetDynamoDB
retrieves only items requested by complete key specification, it does not
support the DynamoDB Query operation that would retrieve all of the range
key items associated with an "Artist" Hash Key.

I think we would need another processor for Query.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html

Alternately, you could do this with the NiFi processors if your table
simply had an "Artist" Hash Key with no range or sort key.  You could model
this by storing the list of songs as part of a nested list object (json
blob).  Depending on your flow use case, this might be workable, but it is
not an easy win.

James


On Thu, Sep 27, 2018 at 7:09 PM PRIVITAR <[email protected]>
wrote:

> Thks
>
> For now it’s absolutely basic:
> One table with 2 elements:
> - Artist
> - SongTitle
>
> I want to get all songtitle from one artist
>
> I will look on this Java code
>
> Envoyé de mon iPhone
>
> Le 27 sept. 2018 à 18:26, James Wing <[email protected]> a écrit :
>
> If you do not mind looking at Java code, there are some sample property
> settings in the integration tests that may help you.  For example,
>
> testStringHashStringRangePutGetDeleteGetSuccess
>
> https://github.com/apache/nifi/blob/e3155a8a4ba49bb6c4f324ebf090a92d6dd97389/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/test/java/org/apache/nifi/processors/aws/dynamodb/ITPutGetDeleteGetDynamoDBTest.java#L36-L36
>
> The error suggests that you do not have the correct key field name(s).  If
> you can share some details about your DynamoDB table key schema and how you
> configured the processor, it would be helpful to reproduce the specific
> issue you are running into.
>
> Thanks,
>
> James
>
> On Thu, Sep 27, 2018 at 3:44 PM [email protected] <
> [email protected]> wrote:
>
>> All,
>> I try to collect data from Dynamo using processor GetDynamoDB in Nifi and
>> get any results.
>> I'm still get error message like "The provided key element does not match
>> the schema".
>> Does anyone will be able to share a basic sample and how he define
>> properties in this processor?
>> Thks in advance
>>
>
> This email is confidential, if you are not the intended recipient please
> delete it and notify us immediately by emailing the sender. You should not
> copy it or use it for any purpose nor disclose its contents to any other
> person. Privitar Limited is registered in England with registered number
> 09305666. Registered office Salisbury House, Station Road, Cambridge,
> CB12LA.

Reply via email to