Skip to content

Instantly share code, notes, and snippets.

View ag-ramachandran's full-sized avatar

Ramachandran A G ag-ramachandran

  • Microsoft
  • Bangalore
View GitHub Profile
@ag-ramachandran
ag-ramachandran / docker-compose.yaml
Created August 5, 2022 06:13
Kafka connect without schema registry
---
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:6.2.5
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
@ag-ramachandran
ag-ramachandran / SendKafkaProtoSensorInfo.java
Created August 4, 2022 15:50
Send a simple protobuf message
package kafka;
import com.github.javafaker.Faker;
import com.google.protobuf.ByteString;
import com.microsoft.kusto.test.protobuf.SensorReadingWithDeviceDataImpl;
import io.confluent.kafka.serializers.protobuf.KafkaProtobufSerializer;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.common.serialization.StringSerializer;
@ag-ramachandran
ag-ramachandran / pom.xml
Created August 4, 2022 15:47
Maven dependencies
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.adx</groupId>
<artifactId>kafka-send-proto</artifactId>
<packaging>jar</packaging>
<version>0.1.0</version>
<build>
<plugins>
<plugin>
@ag-ramachandran
ag-ramachandran / docker-compose.yaml
Last active August 4, 2022 12:05
Docker Compose file for confluent schema registry and kafka connect
---
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:6.2.5
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"