<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to use SimpleKeyValueLookupService processor in Nifi 1.3.0? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-SimpleKeyValueLookupService-processor-in-Nifi-1-3/m-p/184365#M146497</link>
    <description>&lt;P&gt;In SimpleKeyValueLookupService you can add as many user-defined properties as you want, lets say for example you added:&lt;/P&gt;&lt;PRE&gt;field1 = value1
field2 = value2
field3 = value3&lt;/PRE&gt;&lt;P&gt;Then you would use LookupRecord processor and add a user-defined property like:&lt;/P&gt;&lt;PRE&gt;key = field1&lt;/PRE&gt;&lt;P&gt;The LookupRecord processor is going to pass a Map with "key" -&amp;gt; "field1" to the SimpleKeyValueLookupService, the service is going to take the value of "key" which is "field1" and then lookup the value of that which is "value1".&lt;/P&gt;&lt;P&gt;When "value1" is returned to the processor it will be placed in each record in the location specified by "Result Record Path". So if your schema had a field called "lookupValue" and you set "Result Record Path" to "/lookupValue" then after passing through this processor, every record would have the field "lookupValue" set to "value1". &lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 03:10:50 GMT</pubDate>
    <dc:creator>bbende</dc:creator>
    <dc:date>2017-07-12T03:10:50Z</dc:date>
    <item>
      <title>How to use SimpleKeyValueLookupService processor in Nifi 1.3.0?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-SimpleKeyValueLookupService-processor-in-Nifi-1-3/m-p/184364#M146496</link>
      <description>&lt;P&gt;I am trying to create SimpleKeyValueLookupService. The usage document says: &lt;/P&gt;&lt;BLOCKQUOTE&gt;"the coordinates that are passed to the lookup &lt;STRONG&gt;must contain the key 'key'.&lt;/STRONG&gt;"&lt;/BLOCKQUOTE&gt;&lt;P&gt;What does that mean? Does it mean one of the properties created should have the name "key"? or can it have any name?&lt;/P&gt;&lt;P&gt;Can I dynamically add/change properties to this LookupService or is it static?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 02:53:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-SimpleKeyValueLookupService-processor-in-Nifi-1-3/m-p/184364#M146496</guid>
      <dc:creator>crackerbarrel</dc:creator>
      <dc:date>2017-07-12T02:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SimpleKeyValueLookupService processor in Nifi 1.3.0?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-SimpleKeyValueLookupService-processor-in-Nifi-1-3/m-p/184365#M146497</link>
      <description>&lt;P&gt;In SimpleKeyValueLookupService you can add as many user-defined properties as you want, lets say for example you added:&lt;/P&gt;&lt;PRE&gt;field1 = value1
field2 = value2
field3 = value3&lt;/PRE&gt;&lt;P&gt;Then you would use LookupRecord processor and add a user-defined property like:&lt;/P&gt;&lt;PRE&gt;key = field1&lt;/PRE&gt;&lt;P&gt;The LookupRecord processor is going to pass a Map with "key" -&amp;gt; "field1" to the SimpleKeyValueLookupService, the service is going to take the value of "key" which is "field1" and then lookup the value of that which is "value1".&lt;/P&gt;&lt;P&gt;When "value1" is returned to the processor it will be placed in each record in the location specified by "Result Record Path". So if your schema had a field called "lookupValue" and you set "Result Record Path" to "/lookupValue" then after passing through this processor, every record would have the field "lookupValue" set to "value1". &lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 03:10:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-SimpleKeyValueLookupService-processor-in-Nifi-1-3/m-p/184365#M146497</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2017-07-12T03:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SimpleKeyValueLookupService processor in Nifi 1.3.0?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-use-SimpleKeyValueLookupService-processor-in-Nifi-1-3/m-p/184366#M146498</link>
      <description>&lt;P&gt;Thank you very much Bryan! Now, I am able to lookup the attribute and get the value for that key. &lt;/P&gt;&lt;P&gt;But, I am still confused on how the "Result RecordPath" works.  This is how I have configured my Lookup Service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20396-lookupattribute-config.jpg" style="width: 761px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18994i2ABAB51811054FCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20396-lookupattribute-config.jpg" alt="20396-lookupattribute-config.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, when I am done with the lookup and check out DataProvenance, I do not see any field or attribute called "token". The value that is returned by the lookup now goes into a new attribute "key" (which now has a value "def". I was intending the value to go to "token" attribute. How do I do that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20399-lookupattribute-dataprovenance.jpg" style="width: 755px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18995i86A722E80C264652/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20399-lookupattribute-dataprovenance.jpg" alt="20399-lookupattribute-dataprovenance.jpg" /&gt;&lt;/span&gt;
&lt;/P&gt;&lt;P&gt;I have also attached my process flow XML (&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/20400-test-lookupattribute.xml" target="_blank"&gt;test-lookupattribute.xml&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Can you point me to any other documentation (if any) other than the Usage documents to figure out exactly how to use the LookupXXXXService processors?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:34:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-use-SimpleKeyValueLookupService-processor-in-Nifi-1-3/m-p/184366#M146498</guid>
      <dc:creator>crackerbarrel</dc:creator>
      <dc:date>2019-08-18T08:34:44Z</dc:date>
    </item>
  </channel>
</rss>

