Is there any API that can update the metadata for ...
# troubleshooting
s
Is there any API that can update the metadata for a segment. I see that one of the segment was created with no metadata information and I didnt find any way to reload the segment data. All other segments were loaded properly, but one bad segment can make the table not queryable and had to delete it for now. Any suggestions on how to just update the metadata for a segment and fix it.
m
Segment should always be generated with metadata, not sure how you ended up with segment without metadata
s
ya saw this issue for the first time. All it had is 404 error in the metadata section
is there any way to update the metadata for a segment incase i see this issue again
m
Segment cannot be pushed Into Pinot without metadata. You need to generate the segment again
s
Is there a way to recreate just one segment with metadata info?
m
Yes multiple ways. If you have access to the input file you can use standalone Pinot generation
Using Pinot-admin
s
ok will try this option that you suggested. I think below is the what you are referring.. instead of the whole directory can we just give one file name? to create the missing segment pinot-admin.sh CreateSegment -dataDir /path/to/data/dir -format CSV -outDir /path/to/output/dir -overwrite -tableConfigFile /path/to/table.json -schemaConfigFile /path/to/schema.json
m
May have to move into a new folder just containing the one input file
s
i see ok