<?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: Connection via com.cloudera.impala.jdbc.DataSource causes ClassCastException in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Connection-via-com-cloudera-impala-jdbc-DataSource-causes/m-p/278639#M208144</link>
    <description>&lt;P&gt;I have a groovy script working fine with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;driver  &lt;/SPAN&gt;: &lt;SPAN&gt;'com.cloudera.impala.jdbc.DataSource'&lt;/SPAN&gt;,&lt;/PRE&gt;&lt;P&gt;but I was getting the same ClassCastException when running the same code within a Spring Boot application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By changing the driver there to&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;driver  &lt;/SPAN&gt;: &lt;SPAN&gt;'com.cloudera.impala.jdbc.Driver'&lt;/SPAN&gt;,&lt;/PRE&gt;&lt;P&gt;instead of DataSource, I started getting successful connections and query results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 22:36:14 GMT</pubDate>
    <dc:creator>toed</dc:creator>
    <dc:date>2019-10-01T22:36:14Z</dc:date>
    <item>
      <title>Connection via com.cloudera.impala.jdbc.DataSource causes ClassCastException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-via-com-cloudera-impala-jdbc-DataSource-causes/m-p/277952#M207738</link>
      <description>&lt;P&gt;The latest Impala JDBC driver (2.6.15) seems to have an issue with its DataSource implementation.&amp;nbsp;When trying to use&amp;nbsp;com.cloudera.impala.jdbc.DataSource directly without any reference to the driver name, we get the following exception. Could anyone shed some light?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exception in thread "main" java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Unknown Source)&lt;BR /&gt;Caused by: java.sql.SQLException: Error creating Driver, Driver class name incorrect.&lt;BR /&gt;at com.cloudera.impala.jdbc.common.AbstractDataSource.doInitialize(Unknown Source)&lt;BR /&gt;at com.cloudera.impala.jdbc.common.AbstractDataSource.getSimbaConnection(Unknown Source)&lt;BR /&gt;at com.cloudera.impala.jdbc.common.AbstractDataSource.getConnection(Unknown Source)&lt;BR /&gt;... 5 more&lt;BR /&gt;Caused by: com.cloudera.impala.support.exceptions.GeneralException: Error creating Driver, Driver class name incorrect.&lt;BR /&gt;at com.cloudera.impala.dsi.core.impl.DSIDriverFactory.createDriver(Unknown Source)&lt;BR /&gt;... 9 more&lt;BR /&gt;Caused by: java.lang.ClassCastException: com.cloudera.impala.jdbc.Driver cannot be cast to com.cloudera.impala.dsi.core.interfaces.IDriver&lt;BR /&gt;... 10 more&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 18:55:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-via-com-cloudera-impala-jdbc-DataSource-causes/m-p/277952#M207738</guid>
      <dc:creator>brianwhu</dc:creator>
      <dc:date>2019-09-20T18:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connection via com.cloudera.impala.jdbc.DataSource causes ClassCastException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connection-via-com-cloudera-impala-jdbc-DataSource-causes/m-p/278639#M208144</link>
      <description>&lt;P&gt;I have a groovy script working fine with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;driver  &lt;/SPAN&gt;: &lt;SPAN&gt;'com.cloudera.impala.jdbc.DataSource'&lt;/SPAN&gt;,&lt;/PRE&gt;&lt;P&gt;but I was getting the same ClassCastException when running the same code within a Spring Boot application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By changing the driver there to&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;driver  &lt;/SPAN&gt;: &lt;SPAN&gt;'com.cloudera.impala.jdbc.Driver'&lt;/SPAN&gt;,&lt;/PRE&gt;&lt;P&gt;instead of DataSource, I started getting successful connections and query results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 22:36:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connection-via-com-cloudera-impala-jdbc-DataSource-causes/m-p/278639#M208144</guid>
      <dc:creator>toed</dc:creator>
      <dc:date>2019-10-01T22:36:14Z</dc:date>
    </item>
  </channel>
</rss>

