<?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 Connect from SAS to AWS Athena (JDBC) in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/391411#M11850</link>
    <description>&lt;P&gt;I am trying to establish a connection between SAS &amp;amp; AWS Athena. I am working on RHEL 6.7, java version is 1.8.0_71.&lt;/P&gt;&lt;P&gt;I have SAS/ACCESS to ODBC installed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone advise how to configure that please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, after some reading on "Accessing Amazon Athena with JDBC" , I have tried a 'maybe it will work' naive approach with trying to set a DSN in odbc.ini files (outside of SAS): I have downloaded Athena JDBC jar file and tried configuring connection in a similar way I did it for EMR.&lt;/P&gt;&lt;P&gt;As expected, it didn't work and iODBC throws the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0709.0909

Enter ODBC connect string (? shows list): DSN=ATHENA
1: SQLDriverConnect = [iODBC][Driver Manager]/opt/amazon/hiveodbc/lib/64/AthenaJDBC41-1.1.0.jar: invalid ELF header (0) SQLSTATE=00000
2: SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0) SQLSTATE=IM003&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As someone commented on SO, I should try using some ODBC-JDBC&amp;nbsp;bridge but not sure how to approach this topic - all I have found so far covers accessing ODBC source, but that is not the case here (there is only jdbc driver for Athena).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone tried making such connection before? Is it even possible?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2017 08:42:27 GMT</pubDate>
    <dc:creator>kibicrealu1</dc:creator>
    <dc:date>2017-08-29T08:42:27Z</dc:date>
    <item>
      <title>Connect from SAS to AWS Athena (JDBC)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/391411#M11850</link>
      <description>&lt;P&gt;I am trying to establish a connection between SAS &amp;amp; AWS Athena. I am working on RHEL 6.7, java version is 1.8.0_71.&lt;/P&gt;&lt;P&gt;I have SAS/ACCESS to ODBC installed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone advise how to configure that please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, after some reading on "Accessing Amazon Athena with JDBC" , I have tried a 'maybe it will work' naive approach with trying to set a DSN in odbc.ini files (outside of SAS): I have downloaded Athena JDBC jar file and tried configuring connection in a similar way I did it for EMR.&lt;/P&gt;&lt;P&gt;As expected, it didn't work and iODBC throws the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0709.0909

Enter ODBC connect string (? shows list): DSN=ATHENA
1: SQLDriverConnect = [iODBC][Driver Manager]/opt/amazon/hiveodbc/lib/64/AthenaJDBC41-1.1.0.jar: invalid ELF header (0) SQLSTATE=00000
2: SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0) SQLSTATE=IM003&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As someone commented on SO, I should try using some ODBC-JDBC&amp;nbsp;bridge but not sure how to approach this topic - all I have found so far covers accessing ODBC source, but that is not the case here (there is only jdbc driver for Athena).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone tried making such connection before? Is it even possible?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 08:42:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/391411#M11850</guid>
      <dc:creator>kibicrealu1</dc:creator>
      <dc:date>2017-08-29T08:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connect from SAS to AWS Athena (JDBC)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/391659#M11866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/161477"&gt;@kibicrealu1&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are ODBC to JDBC bridges. DataDirect provides one called SequeLink. You can find out about it&amp;nbsp;here:&amp;nbsp;&lt;A href="https://www.progress.com/connectors/sequelink" target="_self"&gt;https://www.progress.com/connectors/sequelink&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC GROOVY can do this...&amp;nbsp;&lt;BR /&gt;LilyAnne Zhang wrote an excellent SAS Global Forum paper on this topic.&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings17/SAS0245-2017.pdf" target="_self"&gt;Accessing DBMS with the Groovy Procedure and a JDBC Connection&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;BR /&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 20:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/391659#M11866</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-08-29T20:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connect from SAS to AWS Athena (JDBC)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/391750#M11893</link>
      <description>&lt;P&gt;Many thanks for a quick reply&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51161"&gt;@JBailey&lt;/a&gt;, will read it through and let know of the progress.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 08:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/391750#M11893</guid>
      <dc:creator>kibicrealu1</dc:creator>
      <dc:date>2017-08-30T08:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Connect from SAS to AWS Athena (JDBC)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/398108#M12085</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have installed ODBC-JDBC bridge from Easysoft, configured connection and tested using isql with -v -e options.&lt;/P&gt;&lt;P&gt;However, in SAS I am getting CLI prepare error:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15363iD83CE8F532E56EA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to cope with that in SAS?&lt;/P&gt;&lt;P&gt;Tried using dbidirectexec option (wanted to force SQLExecDirect instead of SQLPrepare &amp;amp; SQL Execute ) but no luck with that too.&lt;/P&gt;&lt;P&gt;I have opened a Support Track with SAS but no luck so far - hoping that someone may have experienced something similar in the past&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 14:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/398108#M12085</guid>
      <dc:creator>kibicrealu1</dc:creator>
      <dc:date>2017-09-22T14:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connect from SAS to AWS Athena (JDBC)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/441127#M13606</link>
      <description>&lt;P&gt;There is now an ODBC driver:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.aws.amazon.com/athena/latest/ug/connect-with-odbc.html" target="_self"&gt;https://docs.aws.amazon.com/athena/latest/ug/connect-with-odbc.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 06:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/441127#M13606</guid>
      <dc:creator>holmesjr</dc:creator>
      <dc:date>2018-03-01T06:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connect from SAS to AWS Athena (JDBC)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/448634#M13829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to connect SAS to AWS Athena by using ODBC/JDBC driver.&lt;/P&gt;&lt;P&gt;RHEL 6.7 , java version "1.7.0_79"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;erarlier you faced an issue on this configuration .. is it resolved ?&lt;/P&gt;&lt;P&gt;please share the steps you followed.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 13:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/448634#M13829</guid>
      <dc:creator>srinivask</dc:creator>
      <dc:date>2018-03-26T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connect from SAS to AWS Athena (JDBC)</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/448650#M13830</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/179775"&gt;@srinivask&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a solved issue. It may be best to open up a new message containing the specifics of the issue you are having.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Feel free to mention my name in the new message because I would like to help with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 14:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-from-SAS-to-AWS-Athena-JDBC/m-p/448650#M13830</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-03-26T14:45:24Z</dc:date>
    </item>
  </channel>
</rss>

