DEV Community

Cover image for What Does No JVM Mean for PySpark Developers?
Techy Sneha
Techy Sneha

Posted on

What Does No JVM Mean for PySpark Developers?

Understanding JVM-free data processing and how Rust-native query engines are changing the developer experience.

If you work with big data, you have probably heard about Apache Spark.

Spark is widely used for distributed data processing, SQL queries and large-scale analytics. However, developers exploring Spark-based workflows may also want to understand the role of the Java Virtual Machine (JVM) in their data-processing setup.

What if you could use a familiar Spark-style API without requiring a JVM in your Python process?

Let’s explore what this means and how Rust-native query engines approach the problem.

1.What is the JVM?

The Java Virtual Machine (JVM) is the runtime environment that executes Java bytecode.

Apache Spark is primarily implemented in Scala and runs on the JVM. When Python developers use PySpark, Python communicates with Spark’s JVM-based components through its integration layer.

This architecture is powerful, but it also means that setting up a traditional Spark environment can involve additional runtime and configuration requirements.

For developers building smaller applications, prototypes or embedded data-processing workflows, those requirements may be worth evaluating.

  1. Why are developers exploring JVM-free alternatives?

Not every data-processing application needs a distributed cluster.

Some developers want to:

  • Run SQL queries directly inside a Python application.
  • Process Parquet files without starting a separate cluster.
  • Reduce infrastructure setup.
  • Integrate data processing into an existing application.
  • Use familiar DataFrame programming patterns.

This has created interest in embedded query engines and native data-processing technologies.

However, JVM-free does not automatically mean faster or better. The right choice depends on workload size, compatibility, memory requirements and deployment needs.

  1. What is a Rust-native query engine?

Rust is a systems programming language designed with performance and memory safety in mind.

A Rust-native query engine implements its query-processing functionality in Rust rather than relying on a JVM-based execution engine.

One important technology in this ecosystem is Apache Arrow.

Apache Arrow provides a columnar memory format that helps different data-processing tools exchange data efficiently.

For example, Arrow can help connect data-processing workflows with tools such as pandas, Polars and PyArrow.

  1. Introducing Krishiv Engine

Krishiv is a Rust-native, Apache Spark-compatible compute engine for batch SQL and DataFrames.

Krishiv Engine 0.3 provides:

  • Python and Rust support.
  • Spark-style SQL and DataFrame APIs.
  • Embedded execution inside your process.
  • Single-node server mode with Spark Connect.
  • Arrow-based data interchange.
  • Query profiling through EXPLAIN ANALYZE.
  • Parquet, CSV and JSON data support.
  • Delta Lake read and write support and Iceberg read support.

One of its key characteristics is that it runs without requiring a JVM.

Developers can install the Python package and start exploring its functionality.

  1. Try a simple example

You can start by installing Krishiv with its PyArrow extra:

pip install "krishiv[pyarrow]"
Then create a session:
import krishiv
spark = krishiv.session()
result = spark.sql("""
SELECT 1 AS answer
""")
result.show()

This example creates an embedded session and runs a simple SQL query.

You can also explore DataFrame operations and work with Parquet files.

For more examples, visit the official Krishiv documentation.

6. When should you evaluate Krishiv?

Krishiv may be worth evaluating if:

  • You are a Python developer familiar with Spark-style APIs.
  • You want to explore embedded batch SQL processing.
  • You work with Parquet or other supported data formats.
  • You want to integrate a Rust-native engine into your application.
  • You want to investigate Spark-compatible processing without a JVM.

It is important to understand the current maturity of the product. Krishiv Engine 0.3 is a developer-stage release. Not every Apache Spark operation is supported, and distributed execution and streaming are planned rather than available in this release.

Always check the compatibility documentation before migrating an existing Spark workload.

  1. Final thoughts

The data-engineering ecosystem continues to evolve.

Apache Spark remains an important technology for distributed data processing, while embedded query engines offer different approaches for application-level analytics and data processing.

Krishiv brings together a Rust-native execution engine, Spark-compatible SQL and DataFrame interfaces, and embedded execution without a JVM.

If you are interested in exploring another approach to Spark-style data processing, take a look at Krishiv.

Explore Krishiv Engine: https://krishiv.ai/engine

Read the documentation: https://krishiv.ai/docs

⸻

Disclosure: I am a member of the Krishiv.ai marketing team. This article introduces Krishiv and its current capabilities. Product details reflect the Engine 0.3 documentation.

Top comments (0)