You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Sangavi Eswaramoorthi <sa...@gmail.com> on 2018/03/23 10:04:44 UTC
Store Hash data type in redis
Hi,
I would like to store hash data in redis using NIFi. Is it achievable?
Thanks,
sangavi
Re: Store Hash data type in redis
Posted by Bryan Bende <bb...@gmail.com>.
If you setup the RedisDistributedMapCacheClient, you can then use the
PutDistributedMapCache processor to store anything you want in Redis.
You could use the HashContent processor and then store that in Redis.
-Bryan
On Fri, Mar 23, 2018 at 9:03 AM, Mike Thomsen <mi...@gmail.com> wrote:
> I don't think there are any processors yet for this sort of thing. I've been
> thinking about working on some for a while now. How would you expect that
> hypothetical PutRedisHash processor to work? Here are some example use cases
> that I've been mulling for building one:
>
> 1. Read from attributes with a configured prefix like
> "redis.hash.{NAME}.{KEY}".
> 2. A mass HSET from a flat JSON document where the hash name would come off
> a configured attribute.
> 3. A set of work instructions like this:
>
> {
> "hincr": [
> "user_logins",
> "bad_logins"
> ],
> "hset": {
> "key1": "x",
> "key2": y"
> }
> }
>
> What are your thoughts on that for a Jira ticket?
>
> On Fri, Mar 23, 2018 at 6:04 AM, Sangavi Eswaramoorthi <sa...@gmail.com>
> wrote:
>>
>> Hi,
>>
>> I would like to store hash data in redis using NIFi. Is it achievable?
>>
>> Thanks,
>> sangavi
>
>
Re: Store Hash data type in redis
Posted by Mike Thomsen <mi...@gmail.com>.
I don't think there are any processors yet for this sort of thing. I've
been thinking about working on some for a while now. How would you expect
that hypothetical PutRedisHash processor to work? Here are some example use
cases that I've been mulling for building one:
1. Read from attributes with a configured prefix like
"redis.hash.{NAME}.{KEY}".
2. A mass HSET from a flat JSON document where the hash name would come off
a configured attribute.
3. A set of work instructions like this:
{
"hincr": [
"user_logins",
"bad_logins"
],
"hset": {
"key1": "x",
"key2": y"
}
}
What are your thoughts on that for a Jira ticket?
On Fri, Mar 23, 2018 at 6:04 AM, Sangavi Eswaramoorthi <sa...@gmail.com>
wrote:
> Hi,
>
> I would like to store hash data in redis using NIFi. Is it achievable?
>
> Thanks,
> sangavi
>