<?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: Impala.dbapi error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impala-dbapi-error/m-p/385933#M245891</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72966"&gt;@drgenious&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, please test your script outside of Oozie.&lt;/P&gt;&lt;P&gt;If it is working outside of Oozie, then it should work from Oozie as well.&lt;/P&gt;&lt;P&gt;As for&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;error "No module named impala.dbapi" it could be that there is some version dependency issue with impyla and its related&amp;nbsp;libraries&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;refer ---&amp;gt; &lt;A href="https://github.com/cloudera/impyla/issues/227" target="_blank"&gt;https://github.com/cloudera/impyla/issues/227&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 09:08:04 GMT</pubDate>
    <dc:creator>jAnshula</dc:creator>
    <dc:date>2024-04-03T09:08:04Z</dc:date>
    <item>
      <title>Impala.dbapi error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-dbapi-error/m-p/336689#M232350</link>
      <description>&lt;P&gt;I am trying to run a script in oozie and every time I receive the below error regarding impala.dbapi. The module is inserted correctly in the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stdoutput Traceback (most recent call last):&lt;BR /&gt;Stdoutput File "/tmp/sorting_table.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;Stdoutput from impala.dbapi import connect&lt;BR /&gt;Stdoutput ImportError: No module named impala.dbapi&lt;BR /&gt;Exit code of the Shell command 1&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt; Invocation of Shell command completed &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.apache.oozie.action.hadoop.LauncherAM.runActionMain(LauncherAM.java:410)&lt;BR /&gt;at org.apache.oozie.action.hadoop.LauncherAM.access$300(LauncherAM.java:55)&lt;BR /&gt;at org.apache.oozie.action.hadoop.LauncherAM$2.run(LauncherAM.java:223)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)&lt;BR /&gt;at org.apache.oozie.action.hadoop.LauncherAM.run(LauncherAM.java:217)&lt;BR /&gt;at org.apache.oozie.action.hadoop.LauncherAM$1.run(LauncherAM.java:153)&lt;BR /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt;at javax.security.auth.Subject.doAs(Subject.java:422)&lt;BR /&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)&lt;BR /&gt;at org.apache.oozie.action.hadoop.LauncherAM.main(LauncherAM.java:141)&lt;BR /&gt;Caused by: org.apache.oozie.action.hadoop.LauncherMainException&lt;BR /&gt;at org.apache.oozie.action.hadoop.ShellMain.run(ShellMain.java:76)&lt;BR /&gt;at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:104)&lt;BR /&gt;at org.apache.oozie.action.hadoop.ShellMain.main(ShellMain.java:63)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script import libraries:&lt;/P&gt;&lt;P&gt;from pyspark import SparkContext&lt;BR /&gt;from pyspark.sql import SparkSession&lt;BR /&gt;from datetime import datetime,timedelta&lt;BR /&gt;import ssl&lt;BR /&gt;from impala.dbapi import connect&lt;BR /&gt;import thrift_sasl&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 08:22:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-dbapi-error/m-p/336689#M232350</guid>
      <dc:creator>drgenious</dc:creator>
      <dc:date>2022-02-21T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Impala.dbapi error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-dbapi-error/m-p/385933#M245891</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72966"&gt;@drgenious&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, please test your script outside of Oozie.&lt;/P&gt;&lt;P&gt;If it is working outside of Oozie, then it should work from Oozie as well.&lt;/P&gt;&lt;P&gt;As for&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;error "No module named impala.dbapi" it could be that there is some version dependency issue with impyla and its related&amp;nbsp;libraries&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;refer ---&amp;gt; &lt;A href="https://github.com/cloudera/impyla/issues/227" target="_blank"&gt;https://github.com/cloudera/impyla/issues/227&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 09:08:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-dbapi-error/m-p/385933#M245891</guid>
      <dc:creator>jAnshula</dc:creator>
      <dc:date>2024-04-03T09:08:04Z</dc:date>
    </item>
  </channel>
</rss>

