Re: Question - HttpHook

2017-01-19 Thread Hanneli Tavante
Thank you very much, Matt! On Wed, Jan 18, 2017 at 5:11 PM Matt Hickman wrote: > Couple things: > - You shouldn’t need to set port 443 > - Make sure the url starts with https:// in the connection settings > - To check your auth is working properly try something

Re: Question - HttpHook

2017-01-18 Thread Matt Hickman
Couple things: - You shouldn’t need to set port 443 - Make sure the url starts with https:// in the connection settings - To check your auth is working properly try something like `print api_hook.get_conn(None).auth` - My connection in airflow has a trailing / and when I run your code

Re: Question - HttpHook

2017-01-18 Thread Matt Hickman
Hanneli, We hit the data bricks api from Airflow. The connection info for our data bricks instance is pretty simple: conn type: http host: https://.cloud.databricks.com/ login: password: Knowing what error you get would be helpful! Also if you provide the code your using for your hook.

Question - HttpHook

2017-01-18 Thread Hanneli Tavante
Hi! Could anybody help me? I am trying to use the HTTPHook to connect with Databricks. (Airflow 1.8; Databricks API 2.0 and Python 2.7.6 ) Is there any example with that? It looks like I can't authenticate. I created an HTTP connection on 'Connections', inserted my credentials and pointed to the