<?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 error while connecting through impala in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/372225#M88958</link>
    <description>&lt;P&gt;We have sas 9.4 on linux with sas/access to impala + sas/access to hadoop&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;we&amp;nbsp;have cloudera impala odbc driver - 2.5.37 version installed&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;we have ODBCINI env. variable set up for all which is pointing to user based odbcini&amp;nbsp;at individual user's home directory,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;scenario1&lt;/P&gt;
&lt;P&gt;when we run below libname statement in interactive mode (sas -nodms) job ran fine either with read only permission OR read+write permission for odbcini file for any user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;scenario2&lt;/P&gt;
&lt;P&gt;when we&amp;nbsp;run job in batch mode with read only permission for odbcini file -&amp;nbsp;we receive below error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LIBNAME hdp impala dsn=xxx schema=xxx user=xxx pw="xxx" ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: CLI error trying to establish connection: [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, when we run&amp;nbsp;same test&amp;nbsp;with read+write permission for odbcini file, job runs fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when we asked cloudera team, they said it should be matter matter what&amp;nbsp;permission odbcini file has.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;anyone came across same issue before?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 15:47:25 GMT</pubDate>
    <dc:creator>woo</dc:creator>
    <dc:date>2017-06-30T15:47:25Z</dc:date>
    <item>
      <title>error while connecting through impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/372225#M88958</link>
      <description>&lt;P&gt;We have sas 9.4 on linux with sas/access to impala + sas/access to hadoop&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;we&amp;nbsp;have cloudera impala odbc driver - 2.5.37 version installed&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;we have ODBCINI env. variable set up for all which is pointing to user based odbcini&amp;nbsp;at individual user's home directory,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;scenario1&lt;/P&gt;
&lt;P&gt;when we run below libname statement in interactive mode (sas -nodms) job ran fine either with read only permission OR read+write permission for odbcini file for any user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;scenario2&lt;/P&gt;
&lt;P&gt;when we&amp;nbsp;run job in batch mode with read only permission for odbcini file -&amp;nbsp;we receive below error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LIBNAME hdp impala dsn=xxx schema=xxx user=xxx pw="xxx" ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: CLI error trying to establish connection: [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however, when we run&amp;nbsp;same test&amp;nbsp;with read+write permission for odbcini file, job runs fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when we asked cloudera team, they said it should be matter matter what&amp;nbsp;permission odbcini file has.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;anyone came across same issue before?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 15:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/372225#M88958</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2017-06-30T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: error while connecting through impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/372311#M89004</link>
      <description>&lt;P&gt;1- Does the test with read only permission for odbcini file work from ODBC manager?&lt;/P&gt;
&lt;P&gt;2- Does this work?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LIBNAME hdp impala dsn=xxx schema=xxx user=xxx pw="xxx" access=readonly;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 22:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/372311#M89004</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-30T22:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: error while connecting through impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/375307#M89956</link>
      <description>&lt;P&gt;Thank you for your note Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;didn't understand your first question, have different scenarios so far,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;odbcini file with read only mode + odbcini env. variable&amp;nbsp;assigned centrally (/etc/profile -&amp;gt;&amp;nbsp;pointing to user's home dir odbcini file) - &lt;STRONG&gt;interactive mode&lt;/STRONG&gt; (./sas -nodms) -&amp;gt; &lt;STRONG&gt;job run fine&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;odbcini file with read only mode + odbcini env. variable&amp;nbsp;assigned centrally&amp;nbsp;+ assign odbcini env. variable explicitely into user's home dir odbcini file&amp;nbsp;- &lt;STRONG&gt;interactive mode&lt;/STRONG&gt; (./sas -nodms) -&amp;gt; &lt;STRONG&gt;job failed&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;odbcini file with read only mode + odbcini env. variable&amp;nbsp;assigned centrally&amp;nbsp;+&amp;nbsp;&lt;STRONG&gt;batch mode&lt;/STRONG&gt; (sas job_name.sas) -&amp;gt;&lt;STRONG&gt; job failed&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;odbcini file with read only mode + odbcini env. variable&amp;nbsp;assigned centrally&amp;nbsp;+ assign odbcini env. variable explicitely into user's home dir odbcini file&amp;nbsp;- &lt;STRONG&gt;batch mode&lt;/STRONG&gt; (sas job_name.sas) -&amp;gt; &lt;STRONG&gt;job run fine&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/375307#M89956</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2017-07-12T13:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: error while connecting through impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/375308#M89957</link>
      <description>&lt;P&gt;Also -&amp;gt; job failed with your option#2 (access=readonly) with cli error.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/375308#M89957</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2017-07-12T13:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: error while connecting through impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/375526#M90034</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The important&amp;nbsp;bit was at the&amp;nbsp;end:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does the test with read only permission for odbcini file work &lt;STRONG&gt;from ODBC manager&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Not from SAS. There is a "test" button in ODBC manager to test connections.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 22:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-while-connecting-through-impala/m-p/375526#M90034</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-07-12T22:26:41Z</dc:date>
    </item>
  </channel>
</rss>

