- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Nifi custom property for SelectHiveQL Database Connection URL
- Labels:
-
Apache NiFi
Created on ‎10-23-2017 03:37 PM - edited ‎08-17-2019 05:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are trying making our processor using custom properties for environment independent.
In this case we are using a SelectHiveQL processor which is working if the Database Connection URL is hardcode.
If the Database Connection URL is a reference as done with Kerberos Principal and Kerberos Keytab it return a error, when running SelectHiveQL.
The pictures show the two scenarios.
Our hive url is as follow: jdbc:hive2://HOST:10000/default;principal=hive/_HOST@HOST.com
I have tried added the propery
How is it possible to do a custom property reference in Database Connection URL?
Created ‎10-23-2017 03:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Edited due to Matt Clarke's comment below:
Support for Expression Language in SelectHiveQL properties was added to NiFi 1.3.0 under NIFI-3867. It is also available in HDF 3.0.x.
One (less-than-ideal) workaround is to set the property to something invalid but identifiable (like "@HIVE_URL@") and have a script to replace that value in the template before uploading to a particular environment.
Created ‎10-23-2017 03:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Edited due to Matt Clarke's comment below:
Support for Expression Language in SelectHiveQL properties was added to NiFi 1.3.0 under NIFI-3867. It is also available in HDF 3.0.x.
One (less-than-ideal) workaround is to set the property to something invalid but identifiable (like "@HIVE_URL@") and have a script to replace that value in the template before uploading to a particular environment.
Created ‎10-23-2017 04:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
NiFi-3867 is included in HDF 3.0.0 baseline:
While HDF 3.0.0 is based off Apache NiFi 1.2.0, it included many additional fixes/enhancements that later went in to Apache NiFi 1.3.0. The above release notes show all additional Apache Jiras that were included on top of everything Apache NiFi 1.2.0 that makes up the HDF 3.0.0 release.
Thanks,
Matt
Created ‎10-23-2017 05:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thx for answer. We are using a older version today. As showed only some of the fields is supported for Expression Language.
HDF Version 2.1.1 - Powered by Apache NiFi - Version 1.1.0.2.1.2.0-10
