<?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: update attributes with other existing attributes in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-attributes-with-other-existing-attributes/m-p/231472#M64391</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2119/pchallauk.html" nodeid="2119"&gt;@Pavan Challa&lt;/A&gt; There's an answer for a related question that should address this for you. See: &lt;A href="https://community.hortonworks.com/questions/109613/nifi-lookupattribute-and-updateattributes.html" target="_blank"&gt;https://community.hortonworks.com/questions/109613/nifi-lookupattribute-and-updateattributes.html&lt;/A&gt; and &lt;A href="https://gist.github.com/jfrazee/26deffba3a7d50e991495e223a020b93" target="_blank"&gt;https://gist.github.com/jfrazee/26deffba3a7d50e991495e223a020b93&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2017 21:59:23 GMT</pubDate>
    <dc:creator>jfrazee</dc:creator>
    <dc:date>2017-07-06T21:59:23Z</dc:date>
    <item>
      <title>update attributes with other existing attributes</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-attributes-with-other-existing-attributes/m-p/231471#M64390</link>
      <description>&lt;P&gt;my xml configuration file is as below. &lt;/P&gt;&lt;PRE&gt;&amp;lt;configuration verbose="false" debugMode="false"&amp;gt; 
	&amp;lt;dataFlows&amp;gt; 
		&amp;lt;dataFlow&amp;gt; 
			&amp;lt;properties&amp;gt; 
				&amp;lt;dept&amp;gt;salary&amp;lt;/dept&amp;gt;
				&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;
			&amp;lt;/properties&amp;gt; 
			&amp;lt;to&amp;gt;
				&amp;lt;path&amp;gt;d_${dept}/${version}/csv&amp;lt;/path&amp;gt; 
			&amp;lt;/to&amp;gt; 
		&amp;lt;/dataFlow&amp;gt; 
	&amp;lt;/dataFlows&amp;gt; 
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;P&gt;from LookupAttributes (with XMLFileLookupService), I am able to extract attributes like dept, version and path like below.&lt;/P&gt;&lt;P&gt;dept: salary &lt;/P&gt;&lt;P&gt;version: 1.0 &lt;/P&gt;&lt;P&gt;path: d_${dept}/${version}/csv &lt;/P&gt;&lt;P&gt;I have tried to use updateAttribute and create new attribute called &lt;/P&gt;&lt;P&gt;to-path: ${path} &lt;/P&gt;&lt;P&gt;but to-path is also giving value as d_${dept}/${version}/csv &lt;/P&gt;&lt;P&gt;Can anyone help me to get to-path as d_salary/1.0/csv?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 15:53:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-attributes-with-other-existing-attributes/m-p/231471#M64390</guid>
      <dc:creator>pchallauk</dc:creator>
      <dc:date>2017-07-06T15:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: update attributes with other existing attributes</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-attributes-with-other-existing-attributes/m-p/231472#M64391</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2119/pchallauk.html" nodeid="2119"&gt;@Pavan Challa&lt;/A&gt; There's an answer for a related question that should address this for you. See: &lt;A href="https://community.hortonworks.com/questions/109613/nifi-lookupattribute-and-updateattributes.html" target="_blank"&gt;https://community.hortonworks.com/questions/109613/nifi-lookupattribute-and-updateattributes.html&lt;/A&gt; and &lt;A href="https://gist.github.com/jfrazee/26deffba3a7d50e991495e223a020b93" target="_blank"&gt;https://gist.github.com/jfrazee/26deffba3a7d50e991495e223a020b93&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 21:59:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-attributes-with-other-existing-attributes/m-p/231472#M64391</guid>
      <dc:creator>jfrazee</dc:creator>
      <dc:date>2017-07-06T21:59:23Z</dc:date>
    </item>
  </channel>
</rss>

