git404hub

what is spark-redis-connector fr?

llphxd/spark-redis-connector — explained in plain English

Analysis updated 2026-05-18

26ScalaAudience · developerComplexity · 3/5Setup · moderate

tl;dr

A Spark SQL connector that lets Apache Spark read and write Redis's core data types (strings, hashes, lists, sets, sorted sets) using ordinary SQL and DataFrame code.

vibe map

vibe map loading… check back in a sec.

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Query data stored in Redis directly with Spark SQL statements instead of writing custom Redis client code.

VIBE 2

Load Redis hashes, lists, sets, or sorted sets into a Spark DataFrame for analysis.

VIBE 3

Write Spark DataFrame results back into Redis as one of its native data types.

VIBE 4

Filter and scan Redis keys by pattern when reading or overwriting data from Spark.

what's the stack?

ScalaApache SparkRedisJedis

how it stacks up fr

llphxd/spark-redis-connectormattlianje/datomlitestarlake-ai/quack-on-demand
Stars261613
LanguageScalaScalaScala
Setup difficultymoderateeasymoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires a matching Spark 3.3-3.5, Scala 2.12, and Java 8+ environment, plus a running Redis instance.

The README does not state a license.

in plain english

Spark-redis-connector is a tool that lets Apache Spark, a system for processing large amounts of data across many machines, read from and write to Redis, a fast in-memory database often used for caching and quick lookups. It plugs into Spark using Spark's modern SQL and DataFrame interfaces, which let you query data using SQL-like statements or table-style code, rather than the older, lower-level programming interfaces that earlier Redis connectors relied on. The connector supports Redis's five core native data structures: plain strings, hashes (key-value groupings), lists, sets, and sorted sets. Each one is exposed to Spark as a table with a predictable set of columns, so you can read Redis data into Spark and write Spark data back out to Redis using ordinary SQL queries or DataFrame code, without needing to understand Redis's internal commands. It finds matching Redis keys using Redis's SCAN feature, which lets you search by a pattern like "user:*" instead of listing every key by hand. The project is built for specific, tested combinations of Spark version 3.3 through 3.5, Scala 2.12, and Java 8 or newer. To use it, you download a released jar file, either the full version bundled with its dependencies or a smaller one expecting those dependencies to already be present, and load it into Spark using the standard "--jars" option. From there, you can create a temporary view backed by Redis in Spark SQL, or use Spark's DataFrame reader and writer directly in Scala code, specifying options like the Redis host, port, data type, and key pattern. Support for Redis Streams, a different Redis feature used for streaming data, is intentionally left out of this project for now, since it would need separate handling. Detailed guides for each supported Redis data type, along with a full list of configuration options covering connection pooling, SSL, and key or column naming, are included in the project's documentation folder.

prompts (copy fr)

prompt 1
Help me load a Redis hash into Spark using spark-redis-connector's DataFrame API.
prompt 2
Show me how to create a Spark SQL temporary view over a Redis sorted set.
prompt 3
Explain which spark-redis-connector jar I should use and how to load it with spark-submit.
prompt 4
Help me configure connection pooling and SSL options for spark-redis-connector.

Frequently asked questions

what is spark-redis-connector fr?

A Spark SQL connector that lets Apache Spark read and write Redis's core data types (strings, hashes, lists, sets, sorted sets) using ordinary SQL and DataFrame code.

What language is spark-redis-connector written in?

Mainly Scala. The stack also includes Scala, Apache Spark, Redis.

What license does spark-redis-connector use?

The README does not state a license.

How hard is spark-redis-connector to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is spark-redis-connector for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.