Member since
11-14-2019
51
Posts
6
Kudos Received
3
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2194 | 05-26-2023 08:40 AM | |
| 2482 | 05-22-2023 02:38 AM | |
| 1945 | 05-15-2023 11:25 AM |
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
09-07-2022
04:22 AM
Thank you @araujo for helping me out, So the parameters are also created and updated manually in the UI and referred in the processors. If there is a change in password needed in production, we will update it manually in UI ? or do we have any alternative way than doing it through UI.. I mean any kind of deployment support..?
... View more
09-07-2022
03:11 AM
Hi Everyone, Good day... I hope someone can educate me on my basic understandings.. After some basic research on Nifi on test servers, I want to try it to production, Now I get this basic question on how do we provide the passwords of databases in processors.. because we provide them in the GUI in general, but is it the same way we do for production servers ? taking an example of database DBCPConnectionPool, we provide the connection details like username, password etc in GUI as attached in the image, but I want to understand is there a different way to provide these details in production or it's also with GUI ? I am thinking about change management and security of passwords etc. Please help me understand..
... 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
08-08-2022
03:00 AM
Hi @araujo , Much thankful to your answer.. Yes it worked for me after fixing user. I had to enable native password for the user.. so, I ran this command "ALTER USER 'replication'@'localhost' IDENTIFIED WITH mysql_native_password BY 'somepassword' " to fix user (One other observation while connecting through SQL client is, if I just leave the database name empty then it connects with replication user, if any db name is provided, it will throws error.)
... View more
08-02-2022
03:16 AM
Hi @araujo , Thank you very much for the answer and info.. I am running a single master server and i don't have/need any replication server for my usecase. But I just created a user based on your suggestion like below: mysql> create user 'replication'@'localhost' IDENTIFIED BY 'PASSWORD'; Query OK, 0 rows affected (0.03 sec) mysql> create user 'replication'@'%' IDENTIFIED BY 'PASSWORD'; Query OK, 0 rows affected (0.00 sec) mysql> GRANT REPLICATION SLAVE on *.* TO 'replication'@'%'; Query OK, 0 rows affected (0.00 sec) mysql> GRANT REPLICATION SLAVE on *.* TO 'replication'@'localhost'; Query OK, 0 rows affected (0.01 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) Now I tried to connect to the db using a mysql client- it says permission denied for user replication@localhost And also tried to use the same user in Nifi processor (capture change Mysql) and it also errored out as expected - "could not connect binlog client to any of specified hosts" Can you please help me where I am doing it wrong..
... View more
07-29-2022
12:51 AM
Hello All, I am using the mysql CDC processor in Nifi, to get incremental changes into DWH, in this processor fo the username field, which permissions should be granted to the user so that it can access cdc files ? should be the one with highest privileges/ root user ? because it is not mentioned anywhere in the help section (https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-cdc-mysql-nar/1.5.0/org.apach... ) And when i provide a user credentials who has GRANT ALL PRIVILEGES ON *.* then it is able to access CDC bin logs But getting permission denied when trying to access with a user who has only read permissions on *.* Since the processor has nothing to do with write, i thought only read permissions were enough, but looks like its not the case.. Because I need to create new users in the source to access these CDC files.. and I dont want to give them Grant ALL, as it seems riskier.. Please help with your suggestions and thoughts.. Thanks
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry
- « Previous
- Next »