Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pierrekieffer/sparkstreaming_kafkaconsumer

Kafka consumer example based on spark streaming with message formatting to spark dataframe
https://github.com/pierrekieffer/sparkstreaming_kafkaconsumer

kafka kafka-consumer scala spark spark-streaming

Last synced: 5 days ago
JSON representation

Kafka consumer example based on spark streaming with message formatting to spark dataframe

Awesome Lists containing this project

README

        

# KafkaConsumer
Kafka consumer example based on spark streaming with message formatting to spark dataframe.

- Input (From Kafka) :
```
Row01,Value1,value2,value3,value4
Row1,Value11,value12,value13,value14
Row2,Value21,value22,value23,value24
Row3,Value31,value32,value33,value34
```

- Output :
```
+-----+-------+-------+-------+-------+
| ROW| VAL1| VAL2| VAL3| VAL4|
+-----+-------+-------+-------+-------+
|Row01| Value1| value2| value3| value4|
| Row1|Value11|value12|value13|value14|
| Row2|Value21|value22|value23|value24|
| Row3|Value31|value32|value33|value34|
+-----+-------+-------+-------+-------+
```