cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Hosting python application on Azure Databricks and exposing it's rest APIs

aditya_raj_data
New Contributor II

Hello,

I am trying to host my application on Databricks and I want to expose rest APIs of my application to be accessed from postman but I am unable to find any documentation on how to do this. I tried to write simple flask "hello world" code to try if it works but I am getting error "AttributeError: 'DummyMod' object has no attribute 'startswith' ". Please guide me, how to proceed for this.

Thank you

4 REPLIES 4

Manoj
Contributor II

I did this using Azure web app and exposed the APIs , was able to access that in Post Man and Data bricks. Not used python app on data bricks

Thank you @Manoj Kumar Rayallaโ€‹  but I am trying to host it on databricks and wanted guidance whether it is possible and if yes, how to do it?

-werners-
Esteemed Contributor III

Can I ask why you want to host the application on Databricks?

Because you need to have a cluster running during the time the application has to be available. And for using Databricks you have to not only pay for the VMs, but also for the subscription (if you use Premium) and the DBUs used.

If you are not gonna use the spark application at all, you are better off with a common VM/container/kubernetes.

Hello Werners,

Thank you for your reply, currently my app is not using spark but in future I will be needing it as dataset is going to be huge, so I thought of using databricks.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group