Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 05-01-2017 03:16 AM - edited 08-17-2019 08:13 PM
Hi guys. I'm using Apache Nifi 1.1.2 and am unable to access user defined attributes when using the QueryDatabaseTable processer. Each of the default attributes on the processer state they not EL accessible but I am able to define my own attributes that are accessible (according to the help prompt (?) next to the attribute) and I’m hoping to use these attributes downstream when writing data to a hdfs location.
For example:
I add the following user defined attributes to a QueryDatabaseTable processer reading data from MyTableSchema.MyTableName
tableName - MyTableName
tableSchema - MyTableSchema
I’m hoping to use this information (together with a PutHDFS processer and EL) to write the incremental data from MyTableSchema.MyTableName to hdfs location /MyTableSchema.MyTableName/flowfileid. Is the entire QueryDatabaseTable not accessible with EL even though I am able to add my own attributes to it?
Any advice would be greatly appreciated.
Created 05-01-2017 01:03 PM
The documentation of the user defined properties for QueryDatabaseTable says:
Initial Max Value Attribute Expression Language
Specifies an initial max value for max value columns. Properties should be added in the format `initial.maxvalue.{max_value_column}`.
So these are meant to be used to specify the initial value of a max value column.
To add attributes to the flow files for down stream processing you can use an UpdateAttribute processor right after QueryDatabaseTable.
Created 05-01-2017 01:03 PM
The documentation of the user defined properties for QueryDatabaseTable says:
Initial Max Value Attribute Expression Language
Specifies an initial max value for max value columns. Properties should be added in the format `initial.maxvalue.{max_value_column}`.
So these are meant to be used to specify the initial value of a max value column.
To add attributes to the flow files for down stream processing you can use an UpdateAttribute processor right after QueryDatabaseTable.
Created 05-01-2017 10:33 PM
Thanks Bryan, much appreciated. I wrongly assumed you could add your own properties (in addition to the dynamic ones) on any Processer that allowed you to do so.