- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
update attributes with other existing attributes
- Labels:
-
Apache NiFi
Created ‎07-06-2017 08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
my xml configuration file is as below.
<configuration verbose="false" debugMode="false"> <dataFlows> <dataFlow> <properties> <dept>salary</dept> <version>1.0</version> </properties> <to> <path>d_${dept}/${version}/csv</path> </to> </dataFlow> </dataFlows> </configuration>
from LookupAttributes (with XMLFileLookupService), I am able to extract attributes like dept, version and path like below.
dept: salary
version: 1.0
path: d_${dept}/${version}/csv
I have tried to use updateAttribute and create new attribute called
to-path: ${path}
but to-path is also giving value as d_${dept}/${version}/csv
Can anyone help me to get to-path as d_salary/1.0/csv?
Created ‎07-06-2017 02:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Pavan Challa There's an answer for a related question that should address this for you. See: https://community.hortonworks.com/questions/109613/nifi-lookupattribute-and-updateattributes.html and https://gist.github.com/jfrazee/26deffba3a7d50e991495e223a020b93
Created ‎07-06-2017 02:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Pavan Challa There's an answer for a related question that should address this for you. See: https://community.hortonworks.com/questions/109613/nifi-lookupattribute-and-updateattributes.html and https://gist.github.com/jfrazee/26deffba3a7d50e991495e223a020b93
