Registry / networking / spark-sql-kafka-0-10-2-12

spark-sql-kafka-0-10-2-12

JSON →
library3.5.8javamavenunverified

Apache Spark SQL integration for reading and writing data from Apache Kafka.

<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql-kafka-0-10_2.12</artifactId> <version>3.5.8</version> </dependency>
INSTALL
IMPORT
SIG · SPARK-SQL-KAFKA-0-
S
spark-sql-kafka-0-10-2-12
networkingjavav3.5.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

KafkaSourceProvider
org.apache.spark.sql.kafka010.KafkaSourceProvider

Minimal example of reading from Kafka with Spark SQL.

import org.apache.spark.sql.SparkSession; SparkSession spark = SparkSession.builder().appName("KafkaExample").getOrCreate(); Dataset<Row> df = spark .readStream() .format("kafka") .option("kafka.bootstrap.servers", "localhost:9092") .option("subscribe", "topic1") .load();
Debug
Known issues
breakingKafka 0.10 connector is deprecated; use newer Kafka versions with Spark.
fix
Upgrade to Spark 3.x with Kafka 2.x+ connector.
affects: >=3.0.0
Upgrade
Version history
3.5.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
spark-sql-kafka-0-10-2-12 — mvn dependency:get spark-sql-kafka-0-10-2-12 · libregistry