|
|
Avro Sink |
MSISDN, LAC, CI, MCCMNC, DIRECTION, EVENT_DATE
This field will be the column schema in the Avro file .
String, Integer, Integer ,String ,String ,Timestamp
This field will be the column type in the Avro file .
Codec Description
--------------------------------------------------------------------
org.apache.hadoop.io.compress.DeflateCodec Standard compression
org.apache.hadoop.io.compress.SnappyCodec Fast compression (often used in Big Data)
org.apache.hadoop.io.compress.BZip2Codec High compression
org.apache.hadoop.io.compress.GZipCodec High and stable compression
Example configuration:
Compression = org.apache.hadoop.io.compress.SnappyCodec
Snappy is usually used most often because:
Partition Fields = EVENT_DATE
Folder results:
/output/
EVENT_DATE=20251201/part-0000.avro
/output/
EVENT_DATE=20251202/part-0001.avro
EVENT_DATE = 2025-12-06
Splitter = "-"
2025-12-06Split:
0 = 2025
1 = 12
2 = 06
If:
Index = 0
For partitions:
year=2025
| 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.x Batch |
Apache Flink 1.12.x Streaming |
Apache Tez 0.9.1 |
PySpark |
|---|---|---|---|---|---|---|---|---|---|