Aditya Verma
01/13/2025, 10:55 AM"segmentPartitionConfig": {
"columnPartitionMap": {
"userId": {
"functionName": "Murmur3",
"numPartitions": 5
}
}
}
and 5 kafka partitions
1. Game_Sch_evolution__0__6__20250113T1043Z
"segment.partition.metadata": "{\"columnPartitionMap\":{\"userId\":{\"partitions\":[0,1],\"functionName\":\"Murmur3\",\"functionConfig\":null,\"numPartitions\":5}}}",
here : partition = [0,1]
2. Game_Sch_evolution__3__15__20250113T1048Z. Here partition = [2,3]
"segment.partition.metadata": "{\"columnPartitionMap\":{\"userId\":{\"partitions\":[2,3],\"functionName\":\"Murmur3\",\"functionConfig\":null,\"numPartitions\":5}}}",
why does it have partitions like that in the partition array and what does 2 numbers like 0,1 and 2,3 in the metadata means ? in partition array
@Gonzalo Ortiz @robert zychrobert zych
01/13/2025, 5:22 PMwhy does it have partitions like that in the partition array and what does 2 numbers like 0,1 and 2,3 in the metadata means ?When the partitions array contains multiple values it means that your segment contains data from multiple partitions. Check that the same partition function and number of partitions are matching. For example, by default Kafka uses
murmur2 which is the same as Murmur in PinotAditya Verma
01/13/2025, 6:01 PM"segmentPartitionConfig": {
"columnPartitionMap": {
"userId": {
"functionName": "Murmur3",
"numPartitions": 5
}
}
}
Is this the wrong functionName then ?
because in kafka i have 5 partitions
0,1,2,3,4
but in pinot my data is only going to 0,1,2,3
4 is not happening I have tried with diff IDs
so number%5 = 0 goes to zeroth kafka partioon and zeroth segment in pinot right
so number%5 = 1 goes to zeroth kafka partioon and 1st segment in pinot right
so number%5 = 2 goes to zeroth kafka partioon and 2nd segment in pinot right
so number%5 = 3 goes to zeroth kafka partioon and 3rd segment in pinot right
so number%5 = 4 goes to zeroth kafka partioon and 4th segment in pinot right
but 4 is always emptyrobert zych
01/13/2025, 6:02 PMMurmur3 in Pinot?robert zych
01/13/2025, 6:02 PMMurmur insteadAditya Verma
01/13/2025, 6:03 PMrobert zych
01/13/2025, 6:03 PMAditya Verma
01/13/2025, 6:04 PMAditya Verma
01/13/2025, 6:04 PMrobert zych
01/13/2025, 6:05 PMrobert zych
01/13/2025, 6:06 PMAditya Verma
01/13/2025, 6:08 PMproducer.produce(
topic,
key=key,
value=json.dumps(message_data),
callback=delivery_report
)Aditya Verma
01/13/2025, 6:08 PMAditya Verma
01/13/2025, 6:09 PMrobert zych
01/13/2025, 6:09 PMAditya Verma
01/13/2025, 6:10 PMAditya Verma
01/13/2025, 6:12 PMrobert zych
01/13/2025, 6:33 PMrobert zych
01/13/2025, 6:35 PMrobert zych
01/13/2025, 6:39 PMAditya Verma
01/13/2025, 7:03 PMGonzalo Ortiz
01/13/2025, 11:21 PM