<?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: Connect Athena from SAS ODBC in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/501940#M15586</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4227"&gt;@skygold16&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you see any error messages when you try to connect?&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>Fri, 05 Oct 2018 15:12:34 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2018-10-05T15:12:34Z</dc:date>
    <item>
      <title>Connect Athena from SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/501304#M15573</link>
      <description>&lt;P&gt;I am trying to connect AWS S3 bucket through&amp;nbsp;athena. I have installed the simba&amp;nbsp;ODBC driver provided by AWS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have installed the Simba&amp;nbsp;driver and trying to connect it using below:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;libname athena odbc&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;complete="DRIVER={/opt/simba/athenaodbc/lib/64/libathenaodbc_sb64.so};&lt;BR /&gt;AwsRegion=ap-southeast-2;&lt;BR /&gt;S3OutputLocation=s3://temp-XXX-XXXX-XXXX-XXX-query-results/dev/athena_dev_x;&lt;BR /&gt;AuthenticationType=IAM Credentials;&lt;BR /&gt;UID=myuserid;&lt;BR /&gt;PWD=my password;" schema=dev_X;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only difference I see is, I do not have internet connection on SAS box and hence I am using a proxy server to redirect my request to get it connected to AWS. we have updated the&amp;nbsp;odbc.ini file and specified the proxy server details too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Driver=/opt/simba/athenaodbc/lib/64/libathenaodbc_sb64.so&lt;BR /&gt;AwsRegion=ap-southeast-2&lt;BR /&gt;Schema=&lt;SPAN&gt;dev_X&lt;/SPAN&gt;&lt;BR /&gt;S3OutputLocation=&lt;SPAN&gt;s3://temp-XXX-XXXX-XXXX-XXX-query-results/dev/athena_dev_x&lt;/SPAN&gt;&lt;BR /&gt;S3OutputEncOption=SSE_KMS&lt;BR /&gt;S3OutputEncKMSKey=XXX:aws:XXX:ap-southeast-2:XXXXXXXXXXXXXX:key/XXXXXXXXXXXXXXXXXXXXXXXXX&lt;BR /&gt;AuthenticationType=IAM Credentials&lt;BR /&gt;UID=XXXXXXXXXXXX&lt;BR /&gt;PWD=XXXXXXXXXX&lt;BR /&gt;UseProxy=1&lt;BR /&gt;ProxyScheme=HTTPS&lt;BR /&gt;ProxyHost=proxy server detail&lt;BR /&gt;ProxyPort=XXXX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run libname, it just keeps running and no result. I have tried connecting internet using unix&amp;nbsp;isql command and I am sure I am able to connect to the internet but athena.&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;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51161" target="_blank"&gt;@JBailey&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;HD&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 00:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/501304#M15573</guid>
      <dc:creator>skygold16</dc:creator>
      <dc:date>2018-10-04T00:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Athena from SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/501940#M15586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4227"&gt;@skygold16&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you see any error messages when you try to connect?&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>Fri, 05 Oct 2018 15:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/501940#M15586</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-10-05T15:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Athena from SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/501951#M15587</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4227"&gt;@skygold16&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;UPDATE! I have this working... I cannot believe it..&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Part of the problem is that the arguments have different names in the JDBC driver... I copied my code from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This actually worked for me (getting the proxy server info was the most difficult part):&lt;/P&gt;
&lt;PRE&gt;libname athena odbc&lt;BR /&gt;complete="DRIVER={Simba Athena ODBC Driver};&lt;BR /&gt;AwsRegion=us-east-1;&lt;BR /&gt;S3OutputLocation=s3://bogus-athena-results/;&lt;BR /&gt;AuthenticationType=IAM Profile;&lt;BR /&gt;AwsProfile=617292732428-jbsandbox;&lt;BR /&gt;UseProxy=1;&lt;BR /&gt;ProxyScheme=HTTP;&lt;BR /&gt;ProxyHost=111.111.111.111;&lt;BR /&gt;ProxyPort=80;&lt;BR /&gt;ProxyUID=ProxyUserID;&lt;BR /&gt;ProxyPWD=ProxyPassword;" schema=somedb;&lt;/PRE&gt;
&lt;P&gt;I am able to get this to work without specifying the ProxyUID= and ProxyPWD= options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My experience with this type of stuff is that it takes an embarrassing amount of trial and error;) &lt;STRONG&gt;&amp;lt;-- This is true!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to create an article or a blog post on this...&amp;nbsp;&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>Tue, 09 Oct 2018 16:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/501951#M15587</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-10-09T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Athena from SAS ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/512439#M15920</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51161"&gt;@JBailey&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got this working with another method too by specifying DSN in odbc file and use ODBC DSN in libname.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname athena odbc&amp;nbsp; DSN="AWS-Athena-XXX-dev" SCHEMA="xxx_dev";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Issue was also with Amazon driver and after downgrading driver I was able to make it working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Anyways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;HD&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 03:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-Athena-from-SAS-ODBC/m-p/512439#M15920</guid>
      <dc:creator>skygold16</dc:creator>
      <dc:date>2018-11-13T03:50:42Z</dc:date>
    </item>
  </channel>
</rss>

