nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Richard <>
Subject Having trouble connecting to SQL Server
Date Thu, 12 Jan 2017 15:41:44 GMT
I am a newbie with Nifi. I am working on a simple task to use as a proof of concept. However,
I am not able to connect to SQL Server. It seems that I have not configured this correctly.

Here are the DB and Driver settings that I have:
Database Connection URL - jdbc:microsoft:sqlserver://HOST:XXXXXXXXXX;DatabaseName=XXXXXXX
Database Driver Class Name -
Database Driver Location - C:\NIFI\nifi-1.1.1\lib\sqljdbc_6.0\enu\sqljdbc41.jar

Here is a portion of the nifi-app.log file:
2017-01-12 10:36:17,112 ERROR [Timer-Driven Process Thread-7] o.a.nifi.processors.standard.ExecuteSQL
org.apache.nifi.processor.exception.ProcessException: org.apache.commons.dbcp.SQLNestedException:
Cannot create JDBC driver of class '' for connect
URL 'jdbc:microsoft:sqlserver://HOST:COLSQLUAT6;DatabaseName=ReplicaFreightOptimizer
                at org.apache.nifi.dbcp.DBCPConnectionPool.getConnection(
                at sun.reflect.GeneratedMethodAccessor607.invoke(Unknown Source) ~[na:na]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_111]
                at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_111]
                at org.apache.nifi.controller.service.StandardControllerServiceProvider$1.invoke(
                at com.sun.proxy.$Proxy128.getConnection(Unknown Source) ~[na:na]
                at org.apache.nifi.processors.standard.ExecuteSQL.onTrigger(
                at org.apache.nifi.processor.AbstractProcessor.onTrigger(
                at org.apache.nifi.controller.StandardProcessorNode.onTrigger(
                at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$
                at java.util.concurrent.Executors$ Source) [na:1.8.0_111]
                at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [na:1.8.0_111]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown
Source) [na:1.8.0_111]
                at java.util.concurrent.ScheduledThreadPoolExecutor$
Source) [na:1.8.0_111]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_111]
                at java.util.concurrent.ThreadPoolExecutor$ Source) [na:1.8.0_111]
                at Source) [na:1.8.0_111]
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class
'' for connect URL 'jdbc:microsoft:sqlserver://HOST:COLSQLUAT6;DatabaseName=ReplicaFreightOptimizer
                at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(
                at org.apache.commons.dbcp.BasicDataSource.createDataSource(
                at org.apache.commons.dbcp.BasicDataSource.getConnection(
                at org.apache.nifi.dbcp.DBCPConnectionPool.getConnection(
                ... 18 common frames omitted
Caused by: java.sql.SQLException: No suitable driver
                at java.sql.DriverManager.getDriver(Unknown Source) ~[na:1.8.0_111]
                at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(
                ... 21 common frames omitted

Thanks in advance for any assistance!

Wayne Richard
Business Intelligence Engineer II
13777 Ballantyne Corporate
Charlotte, NC 28277 US
O: 980-224-5110  | M: 704-798-7941

Unless otherwise agreed to in a written agreement signed by the applicable XPO company, any
transportation or logistics services provided by that XPO company are subject to the limitations
of liability (including cargo loss and damage) and terms and conditions in the applicable
tariff or terms for the mode or type of transportation or services requested. These tariffs
or terms, which set forth XPO and its customers' respective rights and responsibilities, are
available in the business terms section of XPO website at or by emailing

View raw message