blob: 72cc07fae0c04afbf2507ab3b4f275329eb44101 [file] [log] [blame]
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{mder:function(e,t,a){"use strict";a.r(t),a.d(t,"_frontmatter",(function(){return r})),a.d(t,"default",(function(){return b}));var n=a("k1TG"),c=a("8o2o"),o=(a("q1tI"),a("7ljp")),s=a("hhGP"),r=(a("qKvR"),{});void 0!==r&&r&&r===Object(r)&&Object.isExtensible(r)&&!r.hasOwnProperty("__filemeta")&&Object.defineProperty(r,"__filemeta",{configurable:!0,value:{name:"_frontmatter",filename:"src/pages/docs/Connecting to Databases/athena.mdx"}});var i=s.a;function b(e){var t=e.components,a=Object(c.a)(e,["components"]);return Object(o.b)(i,Object(n.a)({},a,{components:t,mdxType:"MDXLayout"}),Object(o.b)("h2",{id:"aws-athena"},"AWS Athena"),Object(o.b)("h3",{id:"pyathenajdbc"},"PyAthenaJDBC"),Object(o.b)("p",null,Object(o.b)("a",{href:"https://pypi.org/project/PyAthenaJDBC/",parentName:"p"},"PyAthenaJDBC")," is a Python DB 2.0 compliant wrapper for the\n",Object(o.b)("a",{href:"https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html",parentName:"p"},"Amnazon Athena JDBC driver"),"."),Object(o.b)("p",null,"The connection string for Amazon Athena is as follows:"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre"},"awsathena+jdbc://{aws_access_key_id}:{aws_secret_access_key}@athena.{region_name}.amazonaws.com/{schema_name}?s3_staging_dir={s3_staging_dir}&...\n")),Object(o.b)("p",null,"Note that you'll need to escape & encode when forming the connection string like so:"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre"},"s3://... -> s3%3A//...\n")),Object(o.b)("h3",{id:"pyathena"},"PyAthena"),Object(o.b)("p",null,"You can also use ",Object(o.b)("a",{href:"https://pypi.org/project/PyAthena/",parentName:"p"},"PyAthena library")," (no Java required) with the\nfollowing connection string:"),Object(o.b)("pre",null,Object(o.b)("code",{parentName:"pre"},"awsathena+rest://{aws_access_key_id}:{aws_secret_access_key}@athena.{region_name}.amazonaws.com/{\n")))}void 0!==b&&b&&b===Object(b)&&Object.isExtensible(b)&&!b.hasOwnProperty("__filemeta")&&Object.defineProperty(b,"__filemeta",{configurable:!0,value:{name:"MDXContent",filename:"src/pages/docs/Connecting to Databases/athena.mdx"}}),b.isMDXComponent=!0}}]);
//# sourceMappingURL=component---src-pages-docs-connecting-to-databases-athena-mdx-ceeb13ec055dd2515c1c.js.map