Custom processor + DBCPConnectionPool for SQL Server : driver jar not loaded

怎甘沉沦 提交于 2019-12-04 17:05:01

@kaliyug,

EDIT 1:

1.if you declared DB class name is "com.microsoft.sqlserver.jdbc.SQLServerDriver".You should add below maven dependency in pom like below.,

<dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>sqljdbc4</artifactId>
    <version>4.2</version>
</dependency>
  1. Or If you want's to use in production environment you can specify driver database location in controller service like below.

    file:///C:\DBLocation\sqljdbc42.jar

3.Or you can just copy the "sqljdbc42.jar" directly into NiFi\Lib directory.After copied the jar,you should restart NiFi Services.At runtime ,SQL jar automatically Loaded when it search for DB ClassName in Nifi\Lib directory.

Please let me know if you have face any issues.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!