|
|
ORC Sink |
TRUE
If the initial field:
MSISDN
EVENT_DATE
So it becomes:
msisdn
event_date
This is often used because many Big Data systems use lowercase schema .
TRUE
FALSE
If TRUE , then:
TRUE
FALSE
If TRUE , the file size will be smaller.
TRUE
FALSE
Partition Fields = EVENT_DATE
Folder results:
/output/
EVENT_DATE=20251201/part-0000.orc
/output/
EVENT_DATE=20251202/part-0001.orc
EVENT_DATE = 2025-12-06
Splitter = "-"
2025-12-06Split:
0 = 2025
1 = 12
2 = 06
If:
Index = 0
For partitions:
year=2025
MSISDN String
LAC Integer
CI Integer
MCCMNC String
DIRECTION String
EVENT_DATE Timestamp
If the ORC Schema is empty , then Output Fields is used as the ORC schema .
struct<
msisdn:string,
lac:int,
ci:int,
mccmnc:string,
direction:string,
event_date:timestamp
>
If the ORC Schema has been filled in, then this schema is used .
60
This means that every 60 seconds data will be written to the output file.
300
This means that every 5 minutes a new file is created.
120
This means that if there is no data for 2 minutes , the file is considered complete.
134217728
This is the same as:
128 MB
If the size is reached, the system will create a new file.| ORC Type | Hadoop Writable Type |
|---|---|
| binary | org.apache.hadoop.io.BytesWritable |
| bigint | org.apache.hadoop.io.LongWritable |
| boolean | org.apache.hadoop.io.BooleanWritable |
| char | org.apache.hadoop.io.Text |
| date | org.apache.hadoop.hive.serde2.io.DateWritable |
| decimal | org.apache.hadoop.hive.serde2.io.HiveDecimalWritable |
| double | org.apache.hadoop.io.DoubleWritable |
| float | org.apache.hadoop.io.FloatWritable |
| int | org.apache.hadoop.io.IntWritable |
| smallint | org.apache.hadoop.io.ShortWritable |
| string | org.apache.hadoop.io.Text |
| timestamp | org.apache.orc.mapred.OrcTimestamp |
| tinyint | org.apache.hadoop.io.ByteWritable |
| varchar | org.apache.hadoop.io.Text |
| 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 |
|---|---|---|---|---|---|---|---|---|---|