Daniel Eduardo Portugal Revilla
03/26/2025, 3:40 PMdocker run \
--network=host \
-v /Users/danieledu/PROJECTS/PERSONAL/pinot_poc/pinot/config:/config \
--rm \
apachepinot/pinot:latest AddTable \
-schemaFile /config/lending-schema.json \
-tableConfigFile /config/lending-realtime-table.json \
-controllerHost localhost \
-controllerPort 9000 \
-exec
and I have the follow message
2025/03/26 15:34:52.373 INFO [AddTableCommand] [main] {"code":400,"error":"Invalid TableConfigs: lending_realtime. Invalid granularity: null"}
this is my table config, Is based according the documentation getting starter
{
"tableName": "lending_realtime",
"tableType": "REALTIME",
"segmentsConfig": {
"timeColumnName": "timestampInEpoch",
"timeType": "MILLISECONDS",
"schemaName": "lending_realtime",
"replicasPerPartition": "1",
"segmentGranularity": "hourly"
},
"tableIndexConfig": {
"loadMode": "MMAP",
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.consumer.type": "lowlevel",
"stream.kafka.topic.name": "data.test",
"stream.kafka.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder",
"stream.kafka.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kafka20.KafkaConsumerFactory",
"stream.kafka.broker.list": "org.apache.kafka.common.security.plain.PlainLoginModule required username=\"\" password=\"\";",
"realtime.segment.flush.threshold.rows": "0",
"realtime.segment.flush.threshold.time": "24h",
"realtime.segment.flush.threshold.segment.size": "50M",
"stream.kafka.consumer.prop.auto.offset.reset": "smallest"
}
},
"tenants": {},
"metadata": {
"customConfigs": {}
}
}krishan goyal
04/01/2025, 12:16 PM