Member since
11-16-2015
892
Posts
650
Kudos Received
245
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
5932 | 02-22-2024 12:38 PM | |
1410 | 02-02-2023 07:07 AM | |
3161 | 12-07-2021 09:19 AM | |
4256 | 03-20-2020 12:34 PM | |
14336 | 01-27-2020 07:57 AM |
10-30-2018
01:55 PM
If you're using a DistributedMapCacheServer, you can set a "Persistence Directory" and it will store the cache to disk, so it will be available on restart. DistributedMapCacheServers are started on each node in a cluster, but your DistributedMapCacheClientService provides the hostname and port to only one of them. They do not coordinate to keep the same data, so you will want all your clients (for put and get) to point to the same instance of the server. Since you really just want the information from Cassandra, please feel free to file a New Feature Jira to add a CassandraMapCacheServer, then you could fetch the data directly from Cassandra.
... View more
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