|
|
Kafka Producer |
bootstrap.servers
Example:
Servers = localhost:9092
If the Kafka cluster:
Servers = kafka1:9092,kafka2:9092,kafka3:9092
Kafka will use this server as a bootstrap for cluster connections .
Topic = telecom-events
This means all data will be sent to the topic:
telecom-events
Sending Method = Fire And Forget
Sending Method = Synchronously
Sending Method = Asynchronously
This method is often used in real-time streaming systems .
Value Serializer = StringSerializer
Example message:
"TX001,62812345678,5000"
Value Serializer = KafkaAvroSerializer
Profit:
Value Serializer = TupleToJSonSerializer
Example JSON message:
{
"id": "TX001",
"msisdn": "62812345678",
"amount": 5000
}
JSON is often used for:
id, msisdn, lac, ci, event_date
This field comes from the previous assembly in the pipeline .
String, String, Integer, Integer, Timestamp
Mapping example:
id String
msisdn String
lac Integer
ci Integer
event_date Timestamp
param-1=value-1,param-2=value-2,...,param-N=value-N
Example configuration:
acks=all,retries=3,batch.size=16384
| Map Reduce |
Spark 1.x RDD |
Spark 2.x RDD |
Spark 2.x Dataset |
Apache Beam 2.29.0 Batch |
Apache Beam 2.29.0 Streaming |
Apache Flink 1.12.0 Batch |
Apache Flink 1.12.0 Streaming |
Apache Tez 0.9.1 |
PySpark |
|---|---|---|---|---|---|---|---|---|---|