Member since
11-16-2015
911
Posts
668
Kudos Received
249
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 688 | 09-30-2025 05:23 AM | |
| 1057 | 06-26-2025 01:21 PM | |
| 923 | 06-19-2025 02:48 PM | |
| 1086 | 05-30-2025 01:53 PM | |
| 12233 | 02-22-2024 12:38 PM |
10-25-2018
04:50 PM
Is "Translate Field Names" set to true in PutDatabaseRecord? If not try that. If so, try removing the "namespace":"dbo" from the schema. If that works, then it's probably a bug, as we should be trying to match on fullname but fall back to simple field names.
... View more
10-25-2018
01:28 PM
Do you have multiple concurrent tasks running? If so, you might be running into this issue, and the workaround seems to be to use a single task. If not, are you importing any native (CPython) libraries? You won't be able to do that with Jython, but I thought it gave a different error message in that case.
... View more
10-24-2018
05:41 PM
1 Kudo
Even though it's managed by Hive, unless Hive is performing tasks as the Hive user (which here it is not), I believe Shu is right and you'll likely need an HDFS policy in Ranger to allow user nifi to access the hive warehouse.
... View more
10-22-2018
02:53 PM
There is a mongo-java-driver you can use in either Groovy or Javascript (or any of the scripted languages in ExecuteScript), check my blog on how to use modules.
... View more
10-19-2018
05:54 PM
Your "Database type" property is set to "Generic", try setting it to Oracle (for Oracle < 12) or Oracle 12+.
... View more
10-15-2018
06:59 PM
I'm not sure if I fully understand how your downstream flow would work when there are < 9 flow files available to ExecuteScript, but here's something to try (note that you can use anything greater than 9 in place of the "10" below): def flowFiles = session.get(10) if(flowFiles.size() >= 9) { session.remove(flowFiles) } else { session.transfer(flowFiles, REL_SUCCESS) }
... View more
10-15-2018
06:54 PM
What about if there are zero available? Are you scheduling this processor to run every few seconds, or the default (as fast as possible)? If the latter, you will likely want to check that there are > 0 and < 9 flow files available.
... View more
10-12-2018
03:51 AM
The entire flow file content is one "row" to be inserted into the database? You should still be able to use this, as of NiFi 1.7.0 the JsonTreeReader should recognize "one JSON per line" rather than expecting an array.
... View more
10-12-2018
03:41 AM
If the "mongo" library contains native Python (CPython) code or dependencies, you can't use them in ExecuteScript (which uses Jython not Python). See Matt C's answer for a workaround to use actual Python.
... View more
10-12-2018
03:32 AM
1 Kudo
You can use PutMongoRecord for this, the JsonTreeReader can accept "one JSON per line" (as of NiFi 1.7.0 via NIFI-4456, also HDP 3.2)
... View more