How to load data from Parquet File to Kafka
Learn how to use Airbyte to synchronize your Parquet File data into Kafka within minutes.


Building your pipeline or Using Airbyte
Airbyte is the only open source solution empowering data teams to meet all their growing custom business demands in the new AI era.
Building in-house pipelines
- Inconsistent and inaccurate data
- Laborious and expensive
- Brittle and inflexible
After Airbyte
- Reliable and accurate
- Extensible and scalable for all your needs
- Deployed and governed your way
Start syncing with Airbyte in 3 easy steps within 10 minutes



Take a virtual tour
Demo video of Airbyte Cloud
Demo video of AI Connector Builder
Setup Complexities simplified!
Simple & Easy to use Interface
Airbyte is built to get out of your way. Our clean, modern interface walks you through setup, so you can go from zero to sync in minutes—without deep technical expertise.
Guided Tour: Assisting you in building connections
Whether you’re setting up your first connection or managing complex syncs, Airbyte’s UI and documentation help you move with confidence. No guesswork. Just clarity.
Airbyte AI Assistant that will act as your sidekick in building your data pipelines in Minutes
Airbyte’s built-in assistant helps you choose sources, set destinations, and configure syncs quickly. It’s like having a data engineer on call—without the overhead.
What sets Airbyte Apart
Modern GenAI Workflows
Streamline AI workflows with Airbyte: load unstructured data into vector stores like Pinecone, Weaviate, and Milvus. Supports RAG transformations with LangChain chunking and embeddings from OpenAI, Cohere, etc., all in one operation.
Move Large Volumes, Fast
Quickly get up and running with a 5-minute setup that enables both incremental and full refreshes for databases of any size, seamlessly scaling to handle large data volumes. Our optimized architecture overcomes performance bottlenecks, ensuring efficient data synchronization even as your datasets grow from gigabytes to petabytes.
An Extensible Open-Source Standard
More than 1,000 developers contribute to Airbyte’s connectors, different interfaces (UI, API, Terraform Provider, Python Library), and integrations with the rest of the stack. Airbyte’s AI Connector Builder lets you edit or add new connectors in minutes.
Full Control & Security
Airbyte secures your data with cloud-hosted, self-hosted or hybrid deployment options. Single Sign-On (SSO) and Role-Based Access Control (RBAC) ensure only authorized users have access with the right permissions. Airbyte acts as a HIPAA conduit and supports compliance with CCPA, GDPR, and SOC2.
Fully Featured & Integrated
Airbyte automates schema evolution for seamless data flow, and utilizes efficient Change Data Capture (CDC) for real-time updates. Select only the columns you need, and leverage our dbt integration for powerful data transformations.
Enterprise Support with SLAs
Airbyte Self-Managed Enterprise comes with dedicated support and guaranteed service level agreements (SLAs), ensuring that your data movement infrastructure remains reliable and performant, and expert assistance is available when needed.
What our users say

Raman Singh
Predictable, straightforward pricing model that simplified budgeting and significantly reduced overall spend

Chase Zieman

“Airbyte helped us accelerate our progress by years, compared to our competitors. We don’t need to worry about connectors and focus on creating value for our users instead of building infrastructure. That’s priceless. The time and energy saved allows us to disrupt and grow faster.”

Rupak Patel
"With Airbyte, we could just push a few buttons, allow API access, and bring all the data into Google BigQuery. By blending all the different marketing data sources, we can gain valuable insights."
How to Sync to Manually
Step 1: Set Up Your Kafka Environment
- Download and Install Kafka: Go to the Apache Kafka website and download the latest release of Kafka. Follow the installation instructions for your operating system.
- Start Kafka Services: Run the ZooKeeper service and Kafka broker by executing the following commands in the Kafka installation directory:
bin/zookeeper-server-start.sh config/zookeeper.propertiesbin/kafka-server-start.sh config/server.properties - Create a Kafka Topic: Create a topic where your Parquet data will be sent using the following command:
bin/kafka-topics.sh --create --topic parquet-data-topic --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1
Step 2: Set Up Your Development Environment
- Install Java: Make sure you have Java installed on your system. Kafka clients are compatible with Java.
- Create a New Java Project: Set up a new Java project in your favorite IDE.
- Add Kafka Client Dependency: Add the Kafka client library to your project’s build file. If you’re using Maven, add the following dependency to your pom.xml:
org.apache.kafkakafka-clientsYOUR_KAFKA_VERSION - Add Parquet Dependencies: Add the necessary Parquet dependencies to your project’s build file. For Maven, add:
org.apache.parquetparquet-avroYOUR_PARQUET_VERSION
Step 3: Write the Code to Move Data from Parquet to Kafka
- Read Parquet Files: Write a method to read data from Parquet files. You can use ParquetReader from the Parquet library.
- Set Up a Kafka Producer: Create a Kafka producer by configuring the necessary properties, such as bootstrap.servers, key.serializer, and value.serializer.
- Send Data to Kafka: Iterate over the records in the Parquet file and send them to the Kafka topic using the producer.
Here is a simplified example of what the code might look like:
import org.apache.kafka.clients.producer.*;import org.apache.parquet.hadoop.ParquetReader;import org.apache.parquet.hadoop.util.HadoopInputFile;import org.apache.parquet.avro.AvroParquetReader;import org.apache.hadoop.fs.Path;import java.io.IOException;public class ParquetToKafkaProducer {public static void main(String[] args) throws IOException {// Kafka producer propertiesProperties properties = new Properties();properties.put("bootstrap.servers", "localhost:9092");properties.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");properties.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");// Create Kafka producerKafkaProducer producer = new KafkaProducer<>(properties);// Path to Parquet filePath path = new Path("path/to/your/parquet/file.parquet");// Read Parquet fileParquetReader reader = AvroParquetReader.builder(HadoopInputFile.fromPath(path, new Configuration())).build();GenericRecord record;while ((record = reader.read()) != null) {// Extract the data you want to send to KafkaString key = "someKey"; // Replace with actual keyString value = record.toString(); // Replace with actual value extraction logic// Send the record to Kafkaproducer.send(new ProducerRecord<>("parquet-data-topic", key, value));}// Close resourcesreader.close();producer.close();}}
Step 4: Run Your Code
Compile and run your Java application. This will start reading data from the Parquet file and send it to the Kafka topic you have set up.
Step 5: Verify Data in Kafka
To ensure that your data has been successfully published to Kafka, you can consume messages from the topic using Kafka’s console consumer:
bin/kafka-console-consumer.sh --topic parquet-data-topic --from-beginning --bootstrap-server localhost:9092
This command will display the messages that have been sent to the parquet-data-topic topic.
Potential Issues and Considerations
- Data Serialization: Depending on the structure of your Parquet data, you may need to serialize it in a way that is compatible with Kafka. This example uses StringSerializer, but you might need to use a different serializer like ByteArraySerializer or your custom serializer.
- Error Handling: Implement robust error handling to manage any issues that occur during reading or writing operations.
- Performance: Depending on the size of your Parquet files and the rate of data production, you may need to fine-tune your Kafka producer settings for better performance.
- Security: If your Kafka cluster has security features enabled (like SSL/TLS, SASL, ACLs), you’ll need to configure your Kafka producer accordingly.