curl --request POST \
--url https://dev.startree.ai/ingestFromURI \
--header 'Authorization: <api-key>'
Creates a segment using file at the given URI and pushes it to Pinot. All steps happen on the controller. This API is NOT meant for production environments/large input files. Example usage (query params need encoding):
curl -X POST "http://localhost:9000/ingestFromURI?tableNameWithType=foo_OFFLINE
&batchConfigMapStr={
"inputFormat":"json",
"input.fs.className":"org.apache.pinot.plugin.filesystem.S3PinotFS",
"input.fs.prop.region":"us-central",
"input.fs.prop.accessKey":"foo",
"input.fs.prop.secretKey":"bar"
}
&sourceURIStr=s3://test.bucket/path/to/json/data/data.json"
curl --request POST \
--url https://dev.startree.ai/ingestFromURI \
--header 'Authorization: <api-key>'
The format of the key is "Basic <token>" or "Bearer <token>"
Was this page helpful?