This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
The Fabric Livy endpoint lets users submit and execute their Spark code on the Spark compute within a designated Fabric workspace, eliminating the need to create any Notebook or Spark Job Definition artifacts. This integration with a specific Lakehouse artifact ensures straightforward access to data stored on OneLake. Additionally, Livy API offers the ability to customize the execution environment through its integration with the Environment artifact.
When a request is sent to the Fabric Livy endpoint, the user-submitted code can be executed in two different modes:
Session Job:
Batch Job:
The endpoint of the session job API would look like:
https://api.fabric.microsoft.com/v1/workspaces/ws_id/lakehouses/lakehouse_id /livyapi/versions/2023-12-01/ batches
The endpoint of the session job API would look like: https://api.fabric.microsoft.com/v1/workspaces/ws_id/lakehouses/lakehouse_id /livyapi/versions/2023-12-01/sessions
ws_id: this is the workspace in which the hosting Lakehouse artifact belongs to. lakehouse_id: this is the artifact id of the hosting Lakehouse. All the capacity consumption history from this batch API call will be associated with this artifact.
To access the Livy API endpoint, you need to create a Lakehouse artifact. After it's set up, you'll find the Livy API endpoint in the settings panel.
Announcing_the_public_preview_of_the_REST_API_for_Livy_for_Data_Engineering
Our Livy API documentation https://learn.microsoft.com/fabric/data-engineering/api-livy-overview provides more details, and shows you how to create your first Livy batch or session job.