https://pinot.apache.org/ logo
Join Slack
Powered by
# troubleshooting
  • j

    Jackie

    09/01/2020, 10:41 PM
    Hi @Tim Chan, based on the exception, I think the time column is not configured correctly
  • j

    Jackie

    09/01/2020, 10:42 PM
    Can you please share the table config and the schema?
  • t

    Tim Chan

    09/01/2020, 10:46 PM
    Copy code
    {
      "schemaName": "motion",
      "dimensionFieldSpecs": [
        {
          "name": "sensor_id",
          "dataType": "STRING"
        },
        {
          "name": "config_details",
          "dataType": "STRING"
        },
        {
          "name": "has_motion",
          "dataType": "BOOLEAN"
        }
      ],
      "metricFieldSpecs": [],
      "dateTimeFieldSpecs": [
        {
          "name": "time_stamp",
          "dataType": "LONG",
          "format": "1:MILLISECONDS:EPOCH",
          "granularity": "1:MILLISECONDS"
        }
      ]
    }
  • t

    Tim Chan

    09/01/2020, 10:46 PM
    Copy code
    {
      "tableName": "motion",
      "tableType": "REALTIME",
      "segmentsConfig": {
        "timeColumnName": "timestampInEpoch",
        "timeType": "MILLISECONDS",
        "schemaName": "motion",
        "replicasPerPartition": "1"
      },
      "tenants": {},
      "tableIndexConfig": {
        "loadMode": "MMAP",
        "streamConfigs": {
          "streamType": "kafka",
          "stream.kafka.consumer.type": "lowlevel",
          "stream.kafka.topic.name": "ash-logger.etldb.derived.motion",
          "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": "kafka-dev-1-kafka-bootstrap.kafka-dev-1:9092",
          "realtime.segment.flush.threshold.time": "3600000",
          "realtime.segment.flush.threshold.size": "50000",
          "stream.kafka.consumer.prop.auto.offset.reset": "smallest"
        }
      },
      "metadata": {
        "customConfigs": {}
      }
    }
  • t

    Tim Chan

    09/01/2020, 10:49 PM
    an example value for
    time_stamp
    is
    1599000470000
  • t

    Tim Chan

    09/01/2020, 10:49 PM
    ooh i think i screwed up in
    timeColumnName
    for config
  • t

    Tim Chan

    09/01/2020, 10:49 PM
    i feel dumb
  • t

    Tim Chan

    09/01/2020, 10:49 PM
    i just copy pasted this config from the example
  • t

    Tim Chan

    09/01/2020, 10:49 PM
    sorry to bother; i will correct and retry and report back
  • n

    Neha Pawar

    09/01/2020, 10:50 PM
    no worries! lmk how it goes
  • t

    Tim Chan

    09/01/2020, 10:53 PM
    quick question. i used
    pinot-admin.sh
    to create this table. how would i go about dropping it and recreating it with the proper config?
  • n

    Neha Pawar

    09/01/2020, 10:53 PM
    you can drop using swagger APIs. if you go to localhost:9000 you should see this option
  • n

    Neha Pawar

    09/01/2020, 10:53 PM
    assuming 9000 is your controller port
  • t

    Tim Chan

    09/01/2020, 10:54 PM
    i will try; thank you
  • t

    Tim Chan

    09/01/2020, 11:09 PM
    thank you @Neha Pawar and @Jackie
  • t

    Tim Chan

    09/01/2020, 11:09 PM
    it works now
  • t

    Tim Chan

    09/01/2020, 11:09 PM
    i do see some
    2020/09/01 23:09:14.532 WARN [TopStateHandoffReportStage] [HelixController-pipeline-default-pinot-(d1b54062_DEFAULT)] Event d1b54062_DEFAULT : Cannot confirm top state missing start time. Use the current system time as the start time.
  • t

    Tim Chan

    09/01/2020, 11:10 PM
    in the controller logs
  • t

    Tim Chan

    09/01/2020, 11:10 PM
    but at least i see count(*) updating
  • j

    Jackie

    09/01/2020, 11:10 PM
    @Tim Chan This warning is from Helix, which you can ignore
  • t

    Tim Chan

    09/01/2020, 11:11 PM
    image.png
  • t

    Tim Chan

    09/01/2020, 11:11 PM
    i don’t know what to make of the segments marked bad
  • p

    Pradeep

    09/02/2020, 1:45 AM
    Hi, fyi with the latest master, swagger endpoint seems to be broken. Not sure if anyone noticed
  • k

    Kishore G

    09/02/2020, 2:58 AM
    @Jack ^^
  • j

    Jack

    09/02/2020, 3:18 AM
    @Pradeep are you using the latest code?
  • p

    Pradeep

    09/02/2020, 3:19 AM
    yup
  • p

    Pradeep

    09/02/2020, 3:19 AM
    I wanted to try out some feature on master
  • j

    Jack

    09/02/2020, 3:21 AM
    Can I see which commit you are using as the latest commit?
  • j

    Jack

    09/02/2020, 3:21 AM
    @Pradeep ^
  • p

    Pradeep

    09/02/2020, 3:23 AM
    https://github.com/apache/incubator-pinot/commit/032a7bf7f15c0361ad2a23d35a223a963d94b99f
1...130131132...166Latest