Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Nifi create a connection to MS SQL Server

avatar
Explorer

Hi,
I want to insert data to Ms. Sql's server from nifi flow.
Where can I find a sample or a guide?
Also, where have I must install sqljdbc-4.0.jar?

1 ACCEPTED SOLUTION

avatar
Master Collaborator

The error says the Connection pool is not able to find configured driver classpath name into provided database client-jar driver. Please check and make sure configured driver classpath name is present on the provided jar file. 

 

 

View solution in original post

3 REPLIES 3

avatar
Rising Star

You need to create a DBCPConnectionPool service and set the required connection properties. On DataBase driver location you can enter the folder where the jar files are located, this folder must be accesible by nifi service user and must be present in all of the NiFI nodes.

 

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-dbcp-service-nar/1.16.0/org.a...

 

Then you can use a SQL processor, such as PutSQL to insert data into the data base:
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.0/org.apach...

 

avatar
Explorer

Thank  you i am taking the below error  have you got an idea what causes this error

vkotsas_0-1654772916466.png

 

avatar
Master Collaborator

The error says the Connection pool is not able to find configured driver classpath name into provided database client-jar driver. Please check and make sure configured driver classpath name is present on the provided jar file.