Member since
06-23-2023
7
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1183 | 06-26-2023 03:37 AM |
06-26-2023
03:37 AM
The issue ended up being that ip is a reserved word (a default function) so changing the name of the attribute from ip to extractedIp solved it.
... View more
06-24-2023
03:28 AM
After having lost all my test work I decided it is time to investigate how to persist data in NiFi when running it in a docker image. I use the official image. This is what I managed to gather so far: services:
nifi:
container_name: nifi
image: apache/nifi:latest
ports:
- "8443:8443"
- "16543:16543"
volumes:
- "C:/nifi/data:/data"
- "C:/nifi/state:/opt/nifi/nifi-current/state"
- "C:/nifi/database:/opt/nifi/nifi-current/database_repository"
- "C:/nifi/flowfile:/opt/nifi/nifi-current/flowfile_repository"
- "C:/nifi/content:/opt/nifi/nifi-current/content_repository"
- "C:/nifi/provenance:/opt/nifi/nifi-current/provenance_repository" When stopping/staring the container everything is OK (login credentials and content) When removing the container, the credentials are persisted but the content is gone. I presume that there is yet another directory that I should mount in order to have the data saved there. Which one is it?
... View more
Labels:
- Labels:
-
Apache NiFi
06-23-2023
11:19 AM
I want to use RouteOnAttribute to filter on a regex. To do so, I added two attributes in the Properties: Property Value private ${ip:find('^(10|127|169\.254|172\.1[6-9]|172\.2[0-9]|172\.3[0-1]|192\.168)\.')} public ${ip:find('^([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(?<!172\.(16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31))(?<!127)(?<!^10)(?<!^0)\.([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(?<!192\.168)(?<!172\.(16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31))\.([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$')} This processor shows two errors, both the same: `Unexpected token ':' at line 1 column 4` Why is this an error?
... View more
Labels:
- Labels:
-
Apache NiFi
06-23-2023
11:14 AM
@steven-matison thank you! I thought that I needed to somehow inject this jar into NiFi, in addition to providing it.
... View more
06-23-2023
07:48 AM
I run NiFi on a docker engine (official image). It works fine but now I would like as part of a flow to connect to a MySQL instance. This requires me to configure a Database Driver Class Name. The value I found in an example on Internet (com.mysql.jdbc.Driver) requires a .jar (sorry, I know nothing about Java). What is the proper way to make this file available to NiFi? (not on a docker level - I have a volume mounted and can put is over there, but on a NiFi level, i.e. how to make NiFi aware of this file)
... View more
Labels:
- Labels:
-
Apache NiFi