-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting to presto through https #55
Comments
Hi @yaxxie When creating an omniduct PrestoClient, you can pass additional connection_options as keyword arguments (https://github.com/airbnb/omniduct/blob/master/omniduct/databases/presto.py#L38). These then get passed to pyhive's presto client. In this case I think you want I'll close this but feel free to re-open if that doesn't work for you. |
Hi, it did not work for me. I can see from the source code that while the kwargs get passed to the |
@danfrankj are you able to re-open? I'm not able to reopen this. |
@yaxxie Ah I see, the sql_alchemy engine is only used for schema browsing and saving dataframes ("push"ing). Are you able to query using |
@danfrankj sorry for wasting your time -- I just realised that this is to do with a known issue with presto returning http URLs when using HTTPs terminated at a load balancer. |
@yaxxie that is an annoying issue and hopefully the presto team is working on it. for omniduct the connection we use to issue queries is pyhive's presto client (https://github.com/airbnb/omniduct/blob/master/omniduct/databases/presto.py#L73) which you can already configure to use https and retrieve dataframes. |
I'm trying to connect to presto which is reachable only via SSL. How is this achieved with omniduct? I note that pyhive have support for https, but I didn't see any way in documentation for me to specify this is available over HTTPS only.
Advice appreciated.
The text was updated successfully, but these errors were encountered: