<?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 Cannot create JDBC driver of class 'org.apache.hive.jdbc.HiveDriver' for connect URL in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165973#M41547</link>
    <description>&lt;P&gt;It appears your URL has been scrubbed (which is fine), can you find the character at (0-based) index 73? The URL above looks ok (should recognize underscores, semicolons, the at symbol, etc.). Also if you are using the default database, try explicitly putting 'default' in the URL, so jdbc:hive2://host.name.net:10000/default;principal=hive/_HOST@EXAMPLE.COM. &lt;/P&gt;&lt;P&gt;You might also try adding "auth=KERBEROS" to the URL parameters, although I don't think that's required (setting the principal is all that's supposed to be needed).&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2016 01:05:10 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2016-10-04T01:05:10Z</dc:date>
    <item>
      <title>NiFi Cannot create JDBC driver of class 'org.apache.hive.jdbc.HiveDriver' for connect URL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165970#M41544</link>
      <description>&lt;P&gt;PutHiveQL and SelectHiveQL processors are looking for class ‘org.apache.hive.jdbc.HiveDriver’  which I guess should have already been specified into. Is there any option to specify that in HiveConnectionPool. &lt;/P&gt;&lt;P&gt;Error is as follows &lt;/P&gt;&lt;PRE&gt;2016-09-19 17:55:30,084 ERROR [Timer-Driven Process Thread-4] o.a.nifi.processors.hive.SelectHiveQL SelectHiveQL[id=4467ed6d-0157-1000-5114-2998b4c5f3aa] Unable to execute HiveQL select query select * from nifitest; due to org.apache.nifi.processor.exception.ProcessException: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.apache.hive.jdbc.HiveDriver' for connect URL '!connect jdbc:hive2://host.name.net:10000/;principal=hive/_HOST@EXAMPLE.COM '. 
No FlowFile to route to failure: org.apache.nifi.processor.exception.ProcessException: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'org.apache.hive.jdbc.HiveDriver' for connect URL '!connect jdbc:hive2://host.name.net:10000/;principal=hive/_HOST@EXAMPLE.COM ' &lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Sep 2016 03:27:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165970#M41544</guid>
      <dc:creator>smayani</dc:creator>
      <dc:date>2016-09-23T03:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Cannot create JDBC driver of class 'org.apache.hive.jdbc.HiveDriver' for connect URL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165971#M41545</link>
      <description>&lt;P&gt;The Hive JDBC driver is included with the Hive processors. It appears your driver URL has "!connect" at the front when it should instead start with the "jdbc:hive2" prefix, removing that should fix the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 03:31:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165971#M41545</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-09-23T03:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Cannot create JDBC driver of class 'org.apache.hive.jdbc.HiveDriver' for connect URL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165972#M41546</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641" target="_blank"&gt;@Matt Burgess&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Here is new error:&lt;/P&gt;&lt;PRE&gt;Caused by: java.net.URISyntaxException: Illegal character in path at index 73: hive2://dummyhost:00000/;principal=hive/_HOST@EXAMPLE.COM
        at java.net.URI$Parser.fail(URI.java:2848) ~[na:1.8.0]
        at java.net.URI$Parser.checkChars(URI.java:3021) ~[na:1.8.0]
        at java.net.URI$Parser.parseHierarchical(URI.java:3105) ~[na:1.8.0]
        at java.net.URI$Parser.parse(URI.java:3053) ~[na:1.8.0]
        at java.net.URI.&amp;lt;init&amp;gt;(URI.java:588) ~[na:1.8.0]
        at java.net.URI.create(URI.java:850) ~[na:1.8.0]
        ... 33 common frames omitted&lt;/PRE&gt;&lt;P&gt;Here is the Database Connection URL: &lt;/P&gt;&lt;P&gt;jdbc:hive2://host.name.net:10000/;principal=hive/_HOST@EXAMPLE.COM&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8225-processor-screencapture.png" style="width: 801px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20352i8730B97855C02B69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8225-processor-screencapture.png" alt="8225-processor-screencapture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 11:15:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165972#M41546</guid>
      <dc:creator>smayani</dc:creator>
      <dc:date>2019-08-18T11:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Cannot create JDBC driver of class 'org.apache.hive.jdbc.HiveDriver' for connect URL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165973#M41547</link>
      <description>&lt;P&gt;It appears your URL has been scrubbed (which is fine), can you find the character at (0-based) index 73? The URL above looks ok (should recognize underscores, semicolons, the at symbol, etc.). Also if you are using the default database, try explicitly putting 'default' in the URL, so jdbc:hive2://host.name.net:10000/default;principal=hive/_HOST@EXAMPLE.COM. &lt;/P&gt;&lt;P&gt;You might also try adding "auth=KERBEROS" to the URL parameters, although I don't think that's required (setting the principal is all that's supposed to be needed).&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 01:05:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165973#M41547</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-10-04T01:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi Cannot create JDBC driver of class 'org.apache.hive.jdbc.HiveDriver' for connect URL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165974#M41548</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt; &lt;/P&gt;&lt;P&gt;2 things Resolved the issue:&lt;/P&gt;&lt;P&gt;1. start with the "jdbc:hive2" prefix &lt;/P&gt;&lt;P&gt;jdbc:hive2://host.name.net:10000/;&lt;A href="mailto:principal=hive/_HOST@EXAMPLE.COM"&gt;principal=hive/_HOST@EXAMPLE.COM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Add following property to hive-site.xml that is passed under HiveConnectionPool  "Hive Configuration Resources" property.&lt;/P&gt;&lt;P&gt;    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hadoop.security.authentication&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;kerberos&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 23:09:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/NiFi-Cannot-create-JDBC-driver-of-class-org-apache-hive-jdbc/m-p/165974#M41548</guid>
      <dc:creator>smayani</dc:creator>
      <dc:date>2016-10-04T23:09:40Z</dc:date>
    </item>
  </channel>
</rss>

