Member since
11-14-2019
51
Posts
7
Kudos Received
3
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2766 | 05-26-2023 08:40 AM | |
| 3031 | 05-22-2023 02:38 AM | |
| 2340 | 05-15-2023 11:25 AM |
04-26-2023
09:05 AM
What is your run schedule time for the processor ? if its too low (say 1 sec or 30 sec), gtry increasing it to reasonable timeline like a minute based on your refresh requirements. @Gagan1707
... View more
04-14-2023
08:29 AM
Hi All, Looking for some help with JOLT transformatio, which i am completely new. my input JSON looks like this {
"type": "delete",
"timestamp": 1681484884000,
"binlog_filename": "bin.000003",
"binlog_position": 6378700,
"database": "db1",
"table_name": "records",
"table_id": 108,
"columns": [{
"id": 1,
"name": "id",
"column_type": 4,
"value": 259
}, {
"id": 2,
"name": "index_id",
"column_type": 4,
"value": 1
}, {
"id": 3,
"name": "state_id",
"column_type": 4,
"value": 1
}]
} This is from mysql binlogs. I want to transform it to have a single field.. [{
"id": 259
}] from one of the tutorials here in cloudera comminity, i saw this JOLT transformation. [
{
"operation": "shift",
"spec": {
"columns": {
"*": {
"@(value)": "[#1].@(1,name)"
}
}
}
}
] But it gives all fileds.. but I just need one filed which is the ID. I need to drop rest all fields.. Can someone please help in this regards.
... View more
Labels:
- Labels:
-
Apache NiFi
03-28-2023
11:12 AM
I have a mysql destination table with column type datetime. my nifi flow is like convertJsontoSQL -> putsql (into destination table) The action is delete for putsql. after conversion of jsontosql i am getting a value '2023-03-28 15:54:28' which is a valid timestamp. but the flow is failing with below error: duetoThevalue of the sqlargs. 14.value is '2023-03-28 15:54:28', which cannot be converted to a timestamp; routing to failure: java.sql.SQLDataException: The value of the sql.args. 14.value is '2023-03-28 15:54:28', which cannot be converted to a timestamp - Caused by: java. text. ParseException: Unparseable date: "2023-03-28 15:54:28" I can able to use the same "2023-03-28 15:54:28" for manually inserting into a sample datetime column. and can able to delete a record with where clause as this value. I could not understand why Nifi is still not able to convert it to timestamp. Any suggestions are appreciated.
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry
02-26-2023
11:30 AM
@mburgess Can you please help here..
... View more
02-24-2023
09:39 AM
Hi All, I am currently building a pipeline that fetches all changes from 2 mysql DBs into a final mysql warehouse. I am using changecapturemysql processor to identify inserts,updates and deletes and then sending them to putdatabaserecord processor. All inserts work good. My source has a PK (primary key) column. My destination has the same column + another column as PK . I am able to replicate inserts. But when it comes to updates and deletes, updates on non primary keys were getting captured, but if i update primary key column in source, it is unchanged in destination. same with deletes. a delete with where clause on PK, doesnot deleting the record in destination. As i read the documentation this is expected behaviour - "MPORTANT: If the Statement Type is UPDATE, then the incoming records must not alter the value(s) of the primary keys (or user-specified Update Keys). If such records are encountered, the UPDATE statement issued to the database may do nothing (if no existing records with the new primary key values are found), or could inadvertently corrupt the existing data (by changing records for which the new values of the primary keys exist)." as per nifi official documentation. Now my question is how can i acheive end-end replication into the destination DB table by using changepaturemysql processor ? is there any alternative that i can get the updates and deletes happen even though they are based on primary keys...? does putsql here helps here ? Please guide me.
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry
10-13-2022
08:05 AM
Update: So i copied the details of nifi.security.keystore nifi.security.truststore nifi.security.truststorePasswd nifi.security.truststoreType from nifi.properties file of my nifi installation and pasted them in the properties file of toolkit nifi-toolkit-1.16.3/conf/cli.properties Now when i try to run the cli commands i get a new error.. seems I am close but not yet done... below is the error: "ERROR: Error executing command 'list-param-contexts' : Error retrieving parameter contexts: Client certificate for (CN=localhost) is expired." How can I renew this expired certificate ? I wonder why CLI is not so straight forward!!! Please help me in this regards..
... View more
10-12-2022
06:04 AM
I am using CLI version 1.16.3 So, I was thinking in this direction that this CLI supports only HTTPS connections. and I must use truststore and without it there is no way.. (But I don't want to complicate things by using truststore etc. as the remote server can only be accessed by secure ssh.) Please let me know if i am thinking in right direction...
... View more
10-12-2022
03:23 AM
Hello Supporters, I am trying to use NIFI CLI toolkit so that I can load 100 parameters using parameter context. (doing it using UI is a tedious job and not appropriate for deployments as well) I installed Nifi toolkit on remote server. I generally ssh into this server from local and run my commands. To see the UI, I use ssh tunnel. There is only one user for this Nifi Instance (admin) and it don't have https certificates. (Single User Authentication) When i start CLI prompt it works fine (below) # sh cli.sh CLI v1.16.3 Type 'help' to see a list of available commands, use tab to auto-complete. Session loaded from /root/.nifi-cli.config #> But when I use any Nifi commands, it throws below error: #> nifi list-param-contexts -u http://localhost:8443/ ERROR: Error executing command 'list-param-contexts' : Unexpected end of file from server if I use https , #> nifi list-param-contexts -u https://localhost:8443/ ERROR: Error executing command 'list-param-contexts' : truststore, truststoreType, and truststorePasswd are required when using an https url But I don't use truststore or passwords for single admin user. Also commands related to Registry working fine. #> registry current-user -u http://localhost:18080 anonymous #> registry list-buckets -u http://localhost:18080 # Name Id Description - ------------ ------------------------------------ ----------- 1 First-bucket 8a3da253-f635-4b01-941f-bfb6437cead7 2 delete 4df052fd-fddc-4e7b-b4ea-bb3b8b691385 Is this something related to https/URI ? I don't find much information online for this issue and I was struck from many days.. Please help me solve this. @TimothySpann @araujo Sincere request to help me find the problem..
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry
08-10-2022
07:19 AM
Hello Lovely community, I am new to NiFi, I am able to connect to mysql dummy database from Nifi and everything works fine. But I want to understand how can we connect to databases that use SSH tunneling.. Because I have not seen any properties related to SSH in the database processors. My processors being used is "capturechangeMysql" This source DB server is secured and I need SSH tunnel to make the connection. I have 100 such sources. Should I add my nifi server ssh keys in all the source servers ? and even then where can i give the SSH tunnel information? and the private key.. Because while using any SQL client we can use the tunnel along with main DB username and password as shown in attached screen, but for Nifi I am not able to see a way.. Please help me with your suggestions.. /\ SSH tunnel
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry
- « Previous
- Next »