<?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>topic Re: Impala connection in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460475#M13060</link>
    <description>&lt;P&gt;Hi there&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62003"&gt;@Riana&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;alright, so what I can see here is the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your libname to a dsn ImpalaJ I cannot see it defined anywhere else.&lt;/LI&gt;
&lt;LI&gt;The odbc.ini, it should be most probably in the same location as the odbcinst.ini, since one is related to the other. The odbc,ini file will actually have the configuration to your database: host, port, schema, and other details. You will also need to export the variable for ODBC and ODBCINST&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, i think your first objective would be to focus on testing the Impala connection OUTSIDE from SAS, from the Linux command line. This should help you, hopefully:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-11-x/topics/impala_odbc.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-11-x/topics/impala_odbc.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.mapr.com/display/MapR/Configure+the+MapR+Impala+ODBC+Driver+for+Linux+and+Mac+OS+X" target="_blank"&gt;http://doc.mapr.com/display/MapR/Configure+the+MapR+Impala+ODBC+Driver+for+Linux+and+Mac+OS+X&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you can validate connections from Linux to Impala databases and query them, you can move forward to the next step: to query them from SAS.&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 15:28:45 GMT</pubDate>
    <dc:creator>JuanS_OCS</dc:creator>
    <dc:date>2018-05-07T15:28:45Z</dc:date>
    <item>
      <title>Impala connection</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460412#M13055</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JDBC driver has been installed for Impala(on Unix SAS server) and when we try to connect in SAS EG via a libname getting this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ERROR: CLI error trying to establish connection: [unixODBC][Driver Manager]Can't open lib 
       '/opt/sas94/jdbc/impala/ClouderaImpalaJDBC_2.5.43.1063/ClouderaImpalaJDBC4_2.5.43/ImpalaJDBC4.jar' : file not found
ERROR: Error in the LIBNAME statement.&lt;/PRE&gt;
&lt;P&gt;The ImpalaJDBC4.jar file is under the folder(above path) with all permission.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why we are getting this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 13:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460412#M13055</guid>
      <dc:creator>Riana</dc:creator>
      <dc:date>2018-05-07T13:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Impala connection</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460416#M13057</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62003"&gt;@Riana&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there is a SAS usage note posted 2 years ago, describing your problem and providing the workaround to use a different libname statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Usage Note 57439: Cannot open lib 'Cloudera ODBC Driver for Impala 64-bit' errors when using SAS/ACCESS® Interface to Impala&lt;/STRONG&gt; &lt;A href="http://support.sas.com/kb/57/439.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/57/439.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Additionally, the lib variable should not show a jar file, but a tsn variable, as defined in the odbcinst.ini file. perhaps you would like to change that. Follow the line: odbcinst.ini --&amp;gt; ocbdc.ini --&amp;gt; the SAS config file where your Impala environment variables are defined/exported&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.mapr.com/display/MapR/Configure+the+MapR+Impala+ODBC+Driver+for+Linux+and+Mac+OS+X" target="_blank"&gt;http://doc.mapr.com/display/MapR/Configure+the+MapR+Impala+ODBC+Driver+for+Linux+and+Mac+OS+X&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;When you use SAS/ACCESS Interface to Impala, the following error might occur:&lt;/P&gt;
&lt;DIV class="fusioncode"&gt;
&lt;PRE&gt;ERROR: CLI error trying to establish connection: [unixODBC][Driver Manager]Can't open lib 'Cloudera ODBC Driver for Impala 64-bit' 
: file not found&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;The error occurs when you use code similar to this:&lt;/P&gt;
&lt;DIV class="fusioncode"&gt;
&lt;PRE&gt;libname mylib sasioimp database=&lt;EM&gt;database-name&lt;/EM&gt;  SERVER='&lt;EM&gt;server-name&lt;/EM&gt;'  PORT=&lt;EM&gt;port-number&lt;/EM&gt;; &lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;If you use the same connection with a data source name such as the one shown below, the connection works correctly.&lt;/P&gt;
&lt;DIV class="fusioncode"&gt;
&lt;PRE&gt;libname mylib sasioimp dsn="Sample Cloudera Impala DSN 64";&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;The problem occurs when the odbcinst.ini file contains incorrect header information. The Impala driver requires that the odbcinst.ini file contain the following header:&lt;/P&gt;
&lt;DIV class="fusioncode"&gt;[Cloudera ODBC Driver for Impala 64-bit]&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 07 May 2018 13:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460416#M13057</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2018-05-07T13:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Impala connection</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460428#M13059</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;could you explain more this part:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Additionally, the lib variable should not show a jar file, but a tsn variable, as defined in the odbcinst.ini file. perhaps you would like to change that. Follow the line: odbcinst.ini --&amp;gt; ocbdc.ini --&amp;gt; the SAS config file where your Impala environment variables are defined/exported&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm a little confused by this part of your answer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where is ocbdc.ini?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;what you mean by: the lib variable should not show a jar file, but a tsn variable, as defined in the odbcinst.ini file&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;in odbcinst.ini there we have:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[ODBC Drivers]
Cloudera ODBC Driver for Impala 32-bit=Installed
Cloudera ODBC Driver for Impala 64-bit=Installed

[Cloudera ODBC Driver for Impala 32-bit]
Description=Cloudera ODBC Driver for Impala (32-bit)
Driver=/opt/cloudera/impalaodbc/lib/32/libclouderaimpalaodbc32.so

[Cloudera ODBC Driver for Impala 64-bit]
Description=Cloudera ODBC Driver for Impala (64-bit)
Driver=/opt/cloudera/impalaodbc/lib/64/libclouderaimpalaodbc64.so

## The option below is for using unixODBC when compiled with -DSQL_WCHART_CONVERT.
## Execute 'odbc_config --cflags' to determine if you need to uncomment it.
# IconvEncoding=UCS-4LE
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;there is no tsn variable.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We have defined SAS variable in sasenv_local:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;export ODBCSYSINI=/opt/cloudera/impalaodbc/Setup
export CLOUDERAIMPALAINI=/opt/cloudera/impalaodbc/lib/64/cloudera.impalaodbc.ini
 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I'm running this libname:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Libname imp impala dsn=Impalaj db=default;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460428#M13059</guid>
      <dc:creator>Riana</dc:creator>
      <dc:date>2018-05-07T14:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Impala connection</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460475#M13060</link>
      <description>&lt;P&gt;Hi there&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62003"&gt;@Riana&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;alright, so what I can see here is the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Your libname to a dsn ImpalaJ I cannot see it defined anywhere else.&lt;/LI&gt;
&lt;LI&gt;The odbc.ini, it should be most probably in the same location as the odbcinst.ini, since one is related to the other. The odbc,ini file will actually have the configuration to your database: host, port, schema, and other details. You will also need to export the variable for ODBC and ODBCINST&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, i think your first objective would be to focus on testing the Impala connection OUTSIDE from SAS, from the Linux command line. This should help you, hopefully:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-11-x/topics/impala_odbc.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-11-x/topics/impala_odbc.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.mapr.com/display/MapR/Configure+the+MapR+Impala+ODBC+Driver+for+Linux+and+Mac+OS+X" target="_blank"&gt;http://doc.mapr.com/display/MapR/Configure+the+MapR+Impala+ODBC+Driver+for+Linux+and+Mac+OS+X&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you can validate connections from Linux to Impala databases and query them, you can move forward to the next step: to query them from SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 15:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Impala-connection/m-p/460475#M13060</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2018-05-07T15:28:45Z</dc:date>
    </item>
  </channel>
</rss>

