https://pinot.apache.org/ logo
#general
Title
# general
t

Tanmay Movva

10/30/2020, 7:07 AM
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

Xiang Fu

10/30/2020, 7:10 AM
which image are you using?
t

Tanmay Movva

10/30/2020, 7:10 AM
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

Xiang Fu

10/30/2020, 7:11 AM
then how do you access the api? port forwarding?
t

Tanmay Movva

10/30/2020, 7:11 AM
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

Xiang Fu

10/30/2020, 7:12 AM
oic
message has been deleted
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:
message has been deleted
t

Tanmay Movva

10/30/2020, 7:15 AM
Yes https worked.
yes, I posted a schema and checked got the 200 response.
x

Xiang Fu

10/30/2020, 7:15 AM
👍
t

Tanmay Movva

10/30/2020, 7:16 AM
Thanks so much 😄
x

Xiang Fu

10/30/2020, 7:16 AM
np, this also bugs me sometime, and I will put it into FAQ
t

Tanmay Movva

10/30/2020, 7:17 AM
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

Xiang Fu

10/30/2020, 7:42 AM
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

Tanmay Movva

10/30/2020, 7:44 AM
Got it. Thanks!
t

Tanmay Movva

10/30/2020, 7:53 AM
Thanks. I’ll probably run the
pinot-admin.sh
script from within the controller pod. That’d work , yes?
x

Xiang Fu

10/30/2020, 4:11 PM
yes
as long as the container has the access to raw data store, e.g. s3