Idlan Amran
12/04/2024, 8:39 AMubuntu@xxxxxxx:~/config$ /opt/pinot/bin/pinot-admin.sh AddTable -realtimeFilePath=table-realtime.json -schemaFileName=schema.json -controllerHost localhost -exec
2024/12/04 08:36:39.367 INFO [AddTableCommand] [main] Executing command: AddTable -tableConfigFile null -offlineTableConfigFile null -realtimeTableConfigFile table-realtime.json -schemaFile schema.json -controllerProtocol http -controllerHost localhost -controllerPort 9000 -controllerProtocol http -database null -user null -password [hidden] -exec
2024/12/04 08:36:39.808 INFO [AddTableCommand] [main] {"code":400,"error":"Invalid TableConfigs: events. Cannot invoke \"org.apache.pinot.spi.data.Schema.getColumnNames()\" because \"schema\" is null"}
ubuntu@xxxxxx:~/config$ cat schema.json
{
"schemaName": "events",
"dimensionFieldSpecs": [
{
"name": "uuid",
"dataType": "STRING"
}
],
"metricFieldSpecs": [
{
"name": "count",
"dataType": "INT"
}
],
"dateTimeFieldSpecs": [{
"name": "ts",
"dataType": "TIMESTAMP",
"format" : "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
}]
}
ubuntu@xxxxxxxx:~/config$ cat table-realtime.json
{
"tableName": "events",
"tableType": "REALTIME",
"segmentsConfig": {
"timeColumnName": "ts",
"schemaName": "events",
"replication": "1",
"replicasPerPartition": "1",
"retentionTimeUnit": "DAYS",
"retentionTimeValue": "1"
},
"ingestionConfig": {
"batchIngestionConfig": {
"segmentIngestionType": "APPEND",
"segmentIngestionFrequency": "MINUTELY"
}
},
"tableIndexConfig": {
"loadMode": "MMAP",
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.topic.name": "events",
"stream.kafka.broker.list": "localhost:9092",
"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": "1m",
"realtime.segment.flush.threshold.segment.size": "5M"
}
},
"tenants": {},
"metadata": {},
"task": {
"taskTypeConfigsMap": {
"RealtimeToOfflineSegmentsTask": {
"bucketTimePeriod": "1m",
"bufferTimePeriod": "30s",
"roundBucketTimePeriod": "1m",
"schedule": "0 0/1 * * * ?",
"mergeType": "rollup",
"count.aggregationType": "max",
"maxNumRecordsPerSegment": "100000"
}
}
}
}Xiang Fu
/opt/pinot/bin/pinot-admin.sh and see if it has the right CLASSPATH for pinot libsIdlan Amran
12/05/2024, 2:20 PM$ cat pinot-admin.sh | grep CLASSPATH
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
CLASSPATH="$BASEDIR"/lib/*
CLASSPATH=$BASEDIR/$ENDORSED_DIR/*:$CLASSPATH
if [ -n "$CLASSPATH_PREFIX" ] ; then
CLASSPATH=$CLASSPATH_PREFIX:$CLASSPATH
# Set $PLUGINS_CLASSPATH for plugin jars to be put into classpath.
# $PLUGINS_DIR and $PLUGINS_INCLUDE are used if $PLUGINS_CLASSPATH is not set.
if [ -z "$PLUGINS_CLASSPATH" ] ; then
if [ -n "$PLUGINS_CLASSPATH" ] ; then
PLUGINS_CLASSPATH=$PLUGINS_CLASSPATH:$PLUGIN_JAR_PATH
PLUGINS_CLASSPATH=$PLUGIN_JAR_PATH
if [ -n "$PLUGINS_CLASSPATH" ] ; then
PLUGINS_CLASSPATH=$PLUGINS_CLASSPATH:$PLUGIN_JAR
PLUGINS_CLASSPATH=$PLUGIN_JAR
if [ -n "$PLUGINS_CLASSPATH" ] ; then
CLASSPATH=$CLASSPATH:$PLUGINS_CLASSPATH
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
-classpath "$CLASSPATH" \Idlan Amran
12/05/2024, 2:24 PMXiang Fu
Idlan Amran
12/08/2024, 2:17 PMXiang Fu
Idlan Amran
12/12/2024, 8:40 AMlib . i copied the jar there but its still got error
$ /opt/pinot/bin/pinot-admin.sh AddTable -schemaFile schema.json -offlineTableConf table-offline.json -realtimeTableConf table-realtime.json -controllerHost localhost -exec
2024/12/12 08:35:11.610 INFO [AddTableCommand] [main] Executing command: AddTable -tableConfigFile null -offlineTableConfigFile table-offline.json -realtimeTableConfigFile table-realtime.json -schemaFile schema.json -controllerProtocol http -controllerHost localhost -controllerPort 9000 -controllerProtocol http -database null -user null -password [hidden] -exec
2024/12/12 08:35:12.391 INFO [AddTableCommand] [main] {"code":400,"error":"Invalid TableConfigs: events. Cannot invoke \"org.apache.pinot.spi.data.Schema.getColumnNames()\" because \"schema\" is null"}
$ ls -lhrt /usr/lib/jvm/java-21-openjdk-amd64/lib
......
-rw-r--r-- 1 root root 290M Dec 12 08:26 pinot-all-1.3.0-SNAPSHOT-jar-with-dependencies.jar
and this is my pinot controller service for systemd
$ cat /etc/systemd/system/pinot-controller.service
[Unit]
Description=Apache Pinot Controller
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/pinot
Environment="JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64"
Environment="JAVA_OPTS=-Xms1536M -Xmx1536M -XX:+UseG1GC -XX:MaxGCPauseMillis=200"
ExecStart=/opt/pinot/bin/pinot-admin.sh StartController \
-zkAddress localhost:2181 \
-configFile /opt/pinot/conf/prod-pinot-controller.conf
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
your advice on this is much appreciatedIdlan Amran
12/12/2024, 8:57 AM$ /opt/pinot/bin/pinot-admin.sh AddTable -schemaFile schema.json -offlineTableConf table-offline.json -realtimeTableConf table-realtime.json -controllerHost localhost -exec
Final Classpath: /opt/pinot/lib/*:/opt/pinot/plugins/pinot-timeseries-lang/pinot-timeseries-m3ql/pinot-timeseries-m3ql-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-segment-uploader/pinot-segment-uploader-default/pinot-segment-uploader-default-1.3.0-SNAPSHOT.jar:/opt/pinot/plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/pinot-minion-builtin-tasks-1.3.0-SNAPSHOT.jar:/opt/pinot/plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pinot-batch-ingestion-standalone-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-environment/pinot-azure/pinot-azure-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-thrift/pinot-thrift-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-csv/pinot-csv-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-clp-log/pinot-clp-log-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-json/pinot-json-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-confluent-avro/pinot-confluent-avro-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-protobuf/pinot-protobuf-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-parquet/pinot-parquet-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-avro/pinot-avro-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-input-format/pinot-orc/pinot-orc-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-file-system/pinot-gcs/pinot-gcs-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-file-system/pinot-s3/pinot-s3-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-file-system/pinot-hdfs/pinot-hdfs-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-file-system/pinot-adls/pinot-adls-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-stream-ingestion/pinot-kinesis/pinot-kinesis-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-stream-ingestion/pinot-kafka-2.0/pinot-kafka-2.0-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-stream-ingestion/pinot-pulsar/pinot-pulsar-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-segment-writer/pinot-segment-writer-file-based/pinot-segment-writer-file-based-1.3.0-SNAPSHOT.jar:/opt/pinot/plugins/pinot-metrics/pinot-yammer/pinot-yammer-1.3.0-SNAPSHOT-shaded.jar:/opt/pinot/plugins/pinot-metrics/pinot-dropwizard/pinot-dropwizard-1.3.0-SNAPSHOT-shaded.jar
2024/12/12 08:56:03.797 INFO [AddTableCommand] [main] Executing command: AddTable -tableConfigFile null -offlineTableConfigFile table-offline.json -realtimeTableConfigFile table-realtime.json -schemaFile schema.json -controllerProtocol http -controllerHost localhost -controllerPort 9000 -controllerProtocol http -database null -user null -password [hidden] -exec
2024/12/12 08:56:04.854 INFO [AddTableCommand] [main] {"code":400,"error":"Invalid TableConfigs: events. Cannot invoke \"org.apache.pinot.spi.data.Schema.getColumnNames()\" because \"schema\" is null"}
even added echo on pinot-admin.sh to check where is the final classpath, seems right for me since its pointing to my /opt/pinot/libIdlan Amran
12/12/2024, 9:08 AM2024/12/12 08:56:01.824 INFO [LeadControllerUtils] [ControllerLeadershipFetchingThread] Getting Helix leader: pinot-controller-rt_9000, Helix version: 1.3.1, mtime: 1733993604458
2024/12/12 08:56:04.808 INFO [TableConfigsRestletResource] [grizzly-http-server-0] Invalid TableConfigs: events. Cannot invoke "org.apache.pinot.spi.data.Schema.getColumnNames()" because "schema" is null exception: Cannot invoke "org.apache.pinot.spi.data.Schema.getColumnNames()" because "schema" is null
2024/12/12 08:56:04.812 INFO [ControllerResponseFilter] [grizzly-http-server-0] Handled request from 127.0.0.1 POST http://localhost:9000/tableConfigs, content-type application/x-www-form-urlencoded status code 400 Bad Request
2024/12/12 08:56:18.844 INFO [PeriodicTaskScheduler] [pool-12-thread-7] Starting SegmentRelocator with running frequency of 3600 seconds.
2024/12/12 08:56:18.844 INFO [BasePeriodicTask] [pool-12-thread-7] [TaskRequestId: auto] Start running task: SegmentRelocator
this is controller logs if it may helps moreXiang Fu
schema.json a valid json ?Idlan Amran
12/13/2024, 1:40 AMIdlan Amran
12/13/2024, 1:40 AMXiang Fu
/table API to send the json blob?Idlan Amran
12/13/2024, 2:08 AMXiang Fu
Idlan Amran
12/13/2024, 2:45 AMIdlan Amran
12/17/2024, 7:37 AMIdlan Amran
12/17/2024, 7:37 AM$ /opt/pinot/bin/pinot-admin.sh AddTable -schemaFile schema.json -realtimeTableConf table-realtime.json -exec
2024/12/17 07:37:03.644 INFO [AddTableCommand] [main] Executing command: AddTable -tableConfigFile null -offlineTableConfigFile null -realtimeTableConfigFile table-realtime.json -schemaFile schema.json -controllerProtocol http -controllerHost 172.30.1.174 -controllerPort 9000 -controllerProtocol http -database null -user null -password [hidden] -exec
2024/12/17 07:37:04.137 INFO [AddTableCommand] [main] {"code":400,"error":"Invalid TableConfigs: events. Cannot invoke \"org.apache.pinot.spi.data.Schema.getColumnNames()\" because \"schema\" is null"}Idlan Amran
12/17/2024, 7:39 AMIdlan Amran
12/17/2024, 7:44 AMXiang Fu
Xiang Fu
Xiang Fu
Xiang Fu
Idlan Amran
12/17/2024, 2:57 PM$ git log
commit a4f6df415ecfc84be3e6930a83eb783e538918a5 (HEAD -> master, origin/master, origin/HEAD)
Author: Xiaotian (Jackie) Jiang <17555551+Jackie-Jiang@users.noreply.github.com>
Date: Wed Dec 4 17:51:15 2024 -0800
Fix the query option override for leaf stage (#14603)
commit 8dadfd2f32cf008f01594bba5d93820044a0a32f
Author: Bolek Ziobrowski <26925920+bziobrowski@users.noreply.github.com>
Date: Thu Dec 5 01:56:21 2024 +0100
Add test to check data and index types compatibility (#14493)
im not entirely sure though, but my last pull before i build the binary is thisXiang Fu
Idlan Amran
12/18/2024, 1:14 AMXiang Fu
Idlan Amran
12/18/2024, 2:15 AMXiang Fu
Xiang Fu
Idlan Amran
12/18/2024, 2:16 AMIdlan Amran
12/18/2024, 2:16 AMIdlan Amran
12/18/2024, 2:17 AMIdlan Amran
12/18/2024, 2:18 AMXiang Fu
Idlan Amran
12/18/2024, 3:07 AMtotalDocs is not tally as previous day even though the same query, what might be the causes ya ?Xiang Fu
Idlan Amran
12/18/2024, 2:57 PMIdlan Amran
12/18/2024, 3:01 PM