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: 

Can we expose REST API using Databricks python notebook?

Muni
New Contributor II

We are trying to expose a REST API endpoint using python notebook. Does databricks allow this?

2 ACCEPTED SOLUTIONS

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III
  • You can query tables in your metastore using JDBC drivers etc., so create tables, and then you can query them from your web service,
  • There is also an API service for consuming ML models.

If you clarify what exactly you want to expose in REST API, it would be easier to help.

View solution in original post

Anonymous
Not applicable

Hi @Muniyappan Mani​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

View solution in original post

5 REPLIES 5

PriyaAnanthram
Contributor III

Not very clear are you trying to run a job using REST API endpoint

something like this Execute Databricks Jobs via REST API in Postman (mssqltips.com) ?

Muni
New Contributor II

@Priya Ananthram​ No, that's not what we are looking for; we are already aware of Databricks REST API. But we are looking for a way to expose a custom REST API from Databricks. (Say: to add a two number , when we submit input data to an HTTP via REST API )

I dont think you can do that thats more like a webservice happy to be corrected by the databricks community

Hubert-Dudek
Esteemed Contributor III
  • You can query tables in your metastore using JDBC drivers etc., so create tables, and then you can query them from your web service,
  • There is also an API service for consuming ML models.

If you clarify what exactly you want to expose in REST API, it would be easier to help.

Anonymous
Not applicable

Hi @Muniyappan Mani​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

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