Hi All I have created batch table in pinot and us...
# troubleshooting
m
Hi All I have created batch table in pinot and using minion task to ingest data, each time task creating new segements for the same file.making data duplicate. Is there any option to resolve this issue? Attached my table config also
Copy code
{
  "tableName": "test",
  "tableType": "OFFLINE",
  "segmentsConfig": {
    "replication": 1,
    "timeColumnName": "date_time",
    "timeType": "MILLISECONDS",
    "retentionTimeUnit": "DAYS",
    "retentionTimeValue": 30
  },
  "tenants": {
    "broker": "DefaultTenant",
    "server": "DefaultTenant"
  },
  "tableIndexConfig": {
    "loadMode": "MMAP"
  },
  "ingestionConfig": {
    "batchIngestionConfig": {
      "segmentIngestionType": "APPEND",
      "segmentIngestionFrequency": "DAILY",
      "batchConfigMaps": [
        {
          "input.fs.className": "org.apache.pinot.plugin.filesystem.S3PinotFS",
          "input.fs.prop.region": "eu-west-1",
          "input.fs.prop.accessKey": "...",
          "input.fs.prop.secretKey": "...",
          "inputDirURI": "s3://<bucket>/dw/parquet/test/",
          "includeFileNamePattern": "glob:**/*.parquet",
          "excludeFileNamePattern": "glob:**/*.tmp",
          "inputFormat": "parquet"
        }
      ]
    }
  },
  "task": {
    "taskTypeConfigsMap": {
      "SegmentGenerationAndPushTask": {}
    }
  },
  "metadata": {}
}
m
Use the segment naming scheme config to fix segment name based on table name and time min/max values
m
I have tried with inputFile, but still unique ID getting append at the end.
m
Did you specify
segmentNameGeneratorSpec
as
SimpleSegmentNameGenerator
?
m
yeah it's default generator right
m
Then that will generate names like <tableName>_<startTime>_<endTime>_<id>, which should be determinisitic.
m
each time except the table name everything getting changed
m
For the same input files, I don't see how it can change.
Because the start/end time have to come from the data in the input file.