Jessica Stewart
02/17/2025, 6:06 PMRealtimeProvisioningHelper by providing an example table config
2. Currently getting error below. Details in thread
java.lang.NullPointerException
at java.base/java.io.File.<init>(File.java:278)
at org.apache.pinot.tools.admin.command.RealtimeProvisioningHelperCommand.execute(RealtimeProvisioningHelperCommand.java:265)
at org.apache.pinot.tools.Command.call(Command.java:33)
at org.apache.pinot.tools.Command.call(Command.java:29)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.apache.pinot.tools.admin.PinotAdministrator.execute(PinotAdministrator.java:171)
at org.apache.pinot.tools.admin.PinotAdministrator.main(PinotAdministrator.java:202)Jessica Stewart
02/17/2025, 6:06 PM/mnt/pinot/apache-pinot-1.0.0-bin/bin/pinot-admin.sh RealtimeProvisioningHelper -tableConfigFile spark_metrics.json -numPartitions 3 -sampleCompletedSegmentDir /mnt/pinot/server/index/spark_metrics_REALTIME/spark_metrics__2__28__20250216T1202Z -numHosts 2,3,4,5,6 -numHours 2,4,6,8,10,12,14,16,18,20,22,24 -ingestionRate 2 -maxUsableHostMemory 24G -retentionHours 400Jessica Stewart
02/17/2025, 6:07 PM{
"tableName": "spark_metrics_REALTIME",
"tableType": "REALTIME",
"segmentsConfig": {
"schemaName": "spark_metrics",
"replication": "1",
"replicasPerPartition": "1",
"timeColumnName": "epoch_millis_ds",
"minimizeDataMovement": false,
"retentionTimeUnit": "HOURS",
"retentionTimeValue": "400"
},
"tenants": {
"broker": "DefaultTenant",
"server": "DefaultTenant",
"tagOverrideConfig": {}
},
"tableIndexConfig": {
"invertedIndexColumns": [],
"noDictionaryColumns": [],
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.topic.name": "spark-metrics",
"stream.kafka.broker.list": "REDACTED",
"stream.kafka.consumer.type": "lowlevel",
"stream.kafka.consumer.prop.auto.offset.reset": "smallest",
"stream.kafka.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kafka20.KafkaConsumerFactory",
"stream.kafka.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder",
"realtime.segment.flush.threshold.rows": "0",
"realtime.segment.flush.threshold.time": "24h",
"realtime.segment.flush.threshold.segment.size": "50M"
},
"rangeIndexColumns": [],
"rangeIndexVersion": 2,
"autoGeneratedInvertedIndex": false,
"createInvertedIndexDuringSegmentGeneration": false,
"sortedColumn": [],
"bloomFilterColumns": [],
"nullHandlingEnabled": false,
"optimizeDictionary": false,
"optimizeDictionaryForMetrics": false,
"noDictionarySizeRatioThreshold": 0.85,
"loadMode": "MMAP",
"onHeapDictionaryColumns": [],
"varLengthDictionaryColumns": [],
"enableDefaultStarTree": false,
"enableDynamicStarTreeCreation": false,
"aggregateMetrics": false
},
"metadata": {},
"quota": {},
"routing": {},
"query": {},
"ingestionConfig": {
"transformConfigs": [
{
"columnName": "ts",
"transformFunction": "ToDateTime(epoch_millis, 'yyyy-MM-dd hh:mm:ss z')"
},
{
"columnName": "epoch_millis_ds",
"transformFunction": "ToDateTime(epoch_millis, 'yyyy-MM-dd hh:mm:ss z')"
},
{
"columnName": "_kafka_timestamp",
"transformFunction": "ToDateTime(__metadata$recordTimestamp, 'yyyy-MM-dd hh:mm:ss z')"
}
],
"continueOnError": false,
"rowTimeValueCheck": false,
"segmentTimeValueCheck": true
},
"isDimTable": false
}Xiang Fu
Xiang Fu