Hello, I am trying to upload schemas/ use the swag...
# general
t
Hello, I am trying to upload schemas/ use the swagger api in general. But I get
TypeError: Failed to fetch
and an Undocumented response for any api call. fyi, We have deployed Pinot in K8s.
x
which image are you using?
t
We haven’t deployed the external loadbalancer service or the headless service for any of the component. Instead we went with an ingress for broker and controller to expose the controller and broker service.
x
then how do you access the api? port forwarding?
t
apachepinot/pinot:latest
is the image we are using.
then how do you access the api
The controller service is exposed externally through the ingress controller.
x
oic
image.png
can you try if https works ?
you can try to see if the GET schema API works
then try out the upload schema api
It should give you something like:
image.png
t
Yes https worked.
yes, I posted a schema and checked got the 200 response.
x
👍
t
Thanks so much 😄
x
np, this also bugs me sometime, and I will put it into FAQ
t
Sure, Thank You!
@Xiang Fu How can I submit a job spec from the swagger API? Can’t seem to find something relatable under segments and tasks tab. Is it possible to submit ingestion job spec from the swagger API?
x
I think that is not there yet. We are working on this.
👍 2
Currently you can wrapper it as a k8s batch job
You can refer to this example
t
Got it. Thanks!
t
Thanks. I’ll probably run the
pinot-admin.sh
script from within the controller pod. That’d work , yes?
x
yes
as long as the container has the access to raw data store, e.g. s3