just wonder if anyone have similar issues ? i ran ...
# troubleshooting
i
just wonder if anyone have similar issues ? i ran AddTable using pinot docker seems fine, but on standalone in my server its giving me this error. i compiled my pinot in the server since im using an ARM architecture server. is it due to the architecture that causing this issues ?
Copy code
ubuntu@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"
        }
      }
    }
  }
x
seems to be missing classpath or jars, can you check this
/opt/pinot/bin/pinot-admin.sh
and see if it has the right CLASSPATH for pinot libs
i
sorry @Xiang Fu may i know which CLASSPATH you meant ?
Copy code
$ 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" \
btw i just redeploy a new server that is not arm and rebuilding pinot there, trying see if it works idk
x
ok are you running using docker or you download the pinot binary distribution?
i
@Xiang Fu pinot binary distribution
x
ok, then check your java classpath, you can put pinot-all jar there
i
@Xiang Fu by right im using just default java, so i think its using the default classpath which is
lib
. i copied the jar there but its still got error
Copy code
$ /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
Copy code
$ 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 appreciated
Copy code
$ /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/lib
Copy code
2024/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 more
x
is this
schema.json
a valid json ?
i
ya. i created offline table seems fine, but not with realtime table
but my cmd was to create a hybrid table
x
ah ok, can you try to goto controller UI, on the left side to pick the swagger api then find the POST
/table
API to send the json blob?
i
do you mean the json blob is the json files ? sorry didn’t get you there
x
on pinot, click on the left side swagger UI, then find the /tables POST API to put your realtime table json
i
gimme a moment, in the middle of scrum
@Xiang Fu sorry for the delayed response, pretty occupied with stuffs. somehow using the swagger UI it works. but not from the pinot CLI.
this are the response from pinot CLI
Copy code
$ /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"}
this from pinot swagger UI
btw using the swagger UI i add the schema first then only add the tables
x
ic
so the swagger ui could work
which version are you on right now
I will double check this
i
Copy code
$ 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 this
x
this is pretty recent one
i
yeah i think i got misconfiguration something on my controller, checking on that
x
no, I think there is bug in pinot table creation to validate the minion task config, which requires the schema to be created first
i
hurm but i guess this issues smh affected me. can you reproduce on your end ?
x
yes
I think the workaround is to first create the schema
i
my workaround currently is just use the swagger UI for table and schema creation
just its a bit hassle need to trigger from the swagger REST everytime
and i followed startree docs on the controller config, that one was used on docker where its using different hostname, so i guess that is the issue
will try again and update here back later
x
let me check if there is a quick workaround for you before I fix this issue
i
btw last time i tested hybrid table, i saw some of my data was missing even though i already do a realtime to offline segment task, data was saved on offline table from realtime, but over time i saw the offline tables slowly missing the data, when i query like the
totalDocs
is not tally as previous day even though the same query, what might be the causes ya ?
x
for hybrid table, pinot uses max time of offline table for split queries from offline and realtime table
i
sorry i didnt get it, what did you meant by that ?
lets say in my realtime tables, data already synced between both of it, meant both are tally, then i found out next day or next few days, the data is missing in offline table, is this an expected behaviour ?