Apache Livy
Apache Livy is a service that enables easy interaction with a Spark cluster over a REST interface. It allows submitting Spark jobs or snippets of Spark code, retrieving results synchronously or asynchronously, and managing Spark contexts across multiple users. Licensed under Apache 2.0.
Apache Livy publishes 3 APIs on the APIs.io network: Batches API, Sessions API, and Statements API. Tagged areas include Big Data, Interactive Computing, Open Source, REST, and Spark.
The Apache Livy catalog on APIs.io includes 1 JSON-LD context and 2 Spectral governance rulesets.
Apache Livy’s developer surface includes documentation, getting-started guide, and 9 more developer resources.
Kin Score
APIs 3
Individual APIs this provider publishes, each with its own machine-readable definition.
Apache Livy Batches API
Batch Spark job submission
Apache Livy Sessions API
Interactive Spark session management
Apache Livy Statements API
Code statement execution within sessions
Pricing Plans 1
Published pricing tiers and plan structures.
Rate Limits 1
Documented rate limits and quota policies.
Apache Livy Rate Limits
RATE LIMITSFinOps 1
Cost, billing, and metering signals for API financial operations.
Apache Livy Finops
FINOPSFeatures 7
Notable capabilities this provider offers.
Interactive Spark Sessions
Create persistent Spark contexts for interactive code execution in Python, Scala, R, and SQL.
Batch Job Submission
Submit batch Spark jobs without creating an interactive session.
Multi-Language Support
Execute code in PySpark, Spark (Scala), SparkR, and SQL.
Multi-User Impersonation
Proxy user support for multi-tenant Spark cluster access.
Asynchronous Execution
Submit jobs and poll for results asynchronously.
Log Access
Retrieve driver and executor logs for debugging.
REST Interface
Simple HTTP REST API for Spark cluster interaction without native clients.
Scroll for all 7
Semantic Vocabularies 1
JSON-LD contexts and semantic vocabularies used across these APIs.
Apache Livy Rest Api Context
JSON-LDSpectral Rules 2
Spectral governance rulesets for linting and validating these APIs.
Apache Livy API Rules
SPECTRALApache Livy API Rules
SPECTRALJSON Schema 12
Standalone JSON Schema definitions for this provider's data models.
BatchList
JSON SCHEMABatch
JSON SCHEMABatchState
JSON SCHEMACreateBatchRequest
JSON SCHEMACreateSessionRequest
JSON SCHEMALog
JSON SCHEMASessionList
JSON SCHEMASession
JSON SCHEMASessionState
JSON SCHEMAStatementList
JSON SCHEMAStatementRequest
JSON SCHEMAStatement
JSON SCHEMAScroll for all 12
JSON Structure 12
JSON Structure definitions describing this provider's data shapes.
Rest Api Batch List Structure
JSON STRUCTURERest Api Batch State Structure
JSON STRUCTURERest Api Batch Structure
JSON STRUCTURERest Api Create Batch Request Structure
JSON STRUCTURERest Api Create Session Request Structure
JSON STRUCTURERest Api Log Structure
JSON STRUCTURERest Api Session List Structure
JSON STRUCTURERest Api Session State Structure
JSON STRUCTURERest Api Session Structure
JSON STRUCTURERest Api Statement List Structure
JSON STRUCTURERest Api Statement Request Structure
JSON STRUCTURERest Api Statement Structure
JSON STRUCTUREScroll for all 12
Examples 12
Example request and response payloads for these APIs.
Rest Api Batch Example
EXAMPLERest Api Batch List Example
EXAMPLERest Api Batch State Example
EXAMPLERest Api Log Example
EXAMPLERest Api Session Example
EXAMPLERest Api Statement Example
EXAMPLEScroll for all 12
Security Posture 2
Authentication, domain security, vulnerability disclosure, and trust-center signals.
Agentic Access 1
Recommended x-agentic-access execution contracts for AI agents.
Use Cases 4
What developers build with this provider.
Notebook Integration
Power Jupyter, Zeppelin, and other notebooks with Spark backends via Livy.
Data Engineering Pipelines
Submit Spark batch jobs from orchestration tools like Airflow and Oozie.
Interactive Data Exploration
Execute ad-hoc Spark code for exploratory data analysis.
Multi-Tenant Spark Access
Enable multiple users to share a Spark cluster with isolation via Livy sessions.
Integrations 5
Pre-built integrations with other platforms and tools.
Apache Spark
Livy requires a Spark cluster and acts as the REST gateway to Spark.
Apache Zeppelin
Zeppelin notebook backend using Livy for distributed Spark execution.
Jupyter Notebook
Jupyter sparkmagic extension uses Livy for remote Spark kernel access.
Apache Airflow
Airflow LivyOperator for submitting Spark batch jobs from DAGs.
Amazon EMR
Livy is available as an EMR application for REST-based Spark access.
Resources
Get Started 1
Portal, sign-up, and the first successful call
Documentation 1
Reference material describing how the API behaves
Agent Surfaces 1
MCP servers, agent skills, and machine-readable catalogs
Design & Contract 3
Pagination, idempotency, versioning, errors, and events
Build 2
SDKs, sample code, and the tooling you integrate with
Access & Security 2
Authentication, authorization, and security posture
Commercial 1
Pricing, plans, and the legal terms of use