<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi Connection to MSSQL server DB in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95646#M59005</link>
    <description>&lt;P&gt;Thanks guys for the response. I was able to modify the configuration for MS SQL server. &lt;/P&gt;&lt;P&gt;Database Connection URLInfo--&amp;gt; jdbc:sqlserver://a5d3iwbrq1.database.windows.net:1433;databaseName=chakra &lt;/P&gt;&lt;P&gt;Database Driver Class NameInfo--&amp;gt; com.microsoft.sqlserver.jdbc.SQLServerDriver &lt;/P&gt;&lt;P&gt;Database Driver Jar UrlInfo--&amp;gt; file:///usr/share/java/sqljdbc4.jar &lt;/P&gt;&lt;P&gt;
setDatabase UserInfo--&amp;gt; chakra &lt;/P&gt;&lt;P&gt;PasswordInfo--&amp;gt; ******&lt;/P&gt;&lt;P&gt;Once you have the configuration set, you also need to use generateFlowFile or something to trigger the ExecuteSQL as Timer Driver schedule does not work on the version of Nifi that i was using. &lt;/P&gt;&lt;P&gt;Once this is done i ran into a bug where ExecuteSQL is not able to get the source table structure and gives a avro schema error &lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-1010" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-1010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am assuming that once the above bug is fixed we should be able to use ExecuteSQl for MS SQLServer DB. &lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2015 20:56:43 GMT</pubDate>
    <dc:creator>csankaraiah</dc:creator>
    <dc:date>2015-10-19T20:56:43Z</dc:date>
    <item>
      <title>Nifi Connection to MSSQL server DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95642#M59001</link>
      <description>&lt;P&gt;I am trying to build a DBCPConnectionPool that can connect to MSSQL server. I downloaded the jar file and gave the path in DBCPConnectionPool. Here is my configuration &lt;/P&gt;&lt;P&gt;Database Connection URLInfo--&amp;gt; jdbc:mysql://a5d3iwbrq1.cloudapp.net:3306/chakra
Database Driver Class NameInfo--&amp;gt; /root/sqljdbc_4.0/enu/sqljdbc4.jar
Database Driver Jar UrlInfo--&amp;gt; No value 
setDatabase UserInfo--&amp;gt; chakra
PasswordInfo--&amp;gt; ******&lt;/P&gt;&lt;P&gt;however get an error when i enable this&lt;/P&gt;&lt;P&gt;2015-10-17 14:55:54,352 ERROR [pool-28-thread-5] o.a.n.c.s.StandardControllerServiceNode [DBCPConnectionPool[id=ee00cbf3-7dd3-4c32-93a6-9a06a8e5e6a7]] Failed to invoke @OnEnabled method due to {}
org.apache.nifi.reporting.InitializationException: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class '/root/sqljdbc_4.0/enu/sqljdbc4.jar&lt;/P&gt;&lt;P&gt;Please let me now how we can resolve this.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2015 22:50:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95642#M59001</guid>
      <dc:creator>csankaraiah</dc:creator>
      <dc:date>2015-10-17T22:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Connection to MSSQL server DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95643#M59002</link>
      <description>&lt;P&gt;Hey Chakra - &lt;/P&gt;&lt;P&gt;You need to provide the Java class name for "Database Driver Class NameInfo" and not the jar file path. &lt;/P&gt;&lt;P&gt;The jar file path goes in Database Driver Jar UrlInfo.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2015 23:00:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95643#M59002</guid>
      <dc:creator>bsaini</dc:creator>
      <dc:date>2015-10-17T23:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Connection to MSSQL server DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95644#M59003</link>
      <description>&lt;P&gt;i see your jdbc URL is for MySQL but driver is SQL server. Which do you need to access? Standard SQL server port is 1433.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 05:40:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95644#M59003</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-10-19T05:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Connection to MSSQL server DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95645#M59004</link>
      <description>&lt;P&gt;And url should not say jdbc:mysql it needs to be sql server specific, look that up, i dont remember exactly if its just jdbc:mssql&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 05:43:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95645#M59004</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-10-19T05:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Connection to MSSQL server DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95646#M59005</link>
      <description>&lt;P&gt;Thanks guys for the response. I was able to modify the configuration for MS SQL server. &lt;/P&gt;&lt;P&gt;Database Connection URLInfo--&amp;gt; jdbc:sqlserver://a5d3iwbrq1.database.windows.net:1433;databaseName=chakra &lt;/P&gt;&lt;P&gt;Database Driver Class NameInfo--&amp;gt; com.microsoft.sqlserver.jdbc.SQLServerDriver &lt;/P&gt;&lt;P&gt;Database Driver Jar UrlInfo--&amp;gt; file:///usr/share/java/sqljdbc4.jar &lt;/P&gt;&lt;P&gt;
setDatabase UserInfo--&amp;gt; chakra &lt;/P&gt;&lt;P&gt;PasswordInfo--&amp;gt; ******&lt;/P&gt;&lt;P&gt;Once you have the configuration set, you also need to use generateFlowFile or something to trigger the ExecuteSQL as Timer Driver schedule does not work on the version of Nifi that i was using. &lt;/P&gt;&lt;P&gt;Once this is done i ran into a bug where ExecuteSQL is not able to get the source table structure and gives a avro schema error &lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-1010" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-1010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am assuming that once the above bug is fixed we should be able to use ExecuteSQl for MS SQLServer DB. &lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2015 20:56:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95646#M59005</guid>
      <dc:creator>csankaraiah</dc:creator>
      <dc:date>2015-10-19T20:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Connection to MSSQL server DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95647#M59006</link>
      <description>&lt;P&gt;This appears to work in the Nifi zipfile for windows available at &lt;A href="https://nifi.apache.org/download.html."&gt;https://nifi.apache.org/download.html.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However MSSQL does not work with the latest tarfile from Linux, nor with the latest sources due to the avro error above. To get it working in a Vagrant Linux Box I had to modify the JdbcCommon.java as per the suggestion in &lt;A href="https://issues.apache.org/jira/browse/NIFI-1010"&gt;https://issues.apache.org/jira/browse/NIFI-1010&lt;/A&gt; and recompile. It worked then.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 08:16:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95647#M59006</guid>
      <dc:creator>fergus_o-donnel</dc:creator>
      <dc:date>2016-02-20T08:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Connection to MSSQL server DB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95648#M59007</link>
      <description>&lt;P&gt;Hi dears,&lt;/P&gt;&lt;P&gt;Today ı try to connect my nifi processor to SQL Server on a Windows Server. First I did not copy sqljdbc4.jar to lib folder, then configure processor like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="97583-pastedimage.png" style="width: 1503px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24041iE0228180E977FD9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="97583-pastedimage.png" alt="97583-pastedimage.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, while enabling the connector, could not succeed.&lt;/P&gt;&lt;P&gt;After getting above error, i tried to copy jars to lib folder but, i can not achieve to bring online?&lt;/P&gt;&lt;P&gt;!!!Waiting your responses, asap!!!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:57:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Connection-to-MSSQL-server-DB/m-p/95648#M59007</guid>
      <dc:creator>tongur</dc:creator>
      <dc:date>2019-08-19T12:57:25Z</dc:date>
    </item>
  </channel>
</rss>

