Hi team, I’m using presto with pinot and basic aut...
# troubleshooting
e
Hi team, I’m using presto with pinot and basic auth is enabled in pinot. I ran into some issues, could you please help me? • got ‘bad request ’ error when ‘pinot.use-streaming-for-segment-queries=true’ configured in presto. • got ‘Error when hitting host Server_pinot-server-4.pinot-server-headless.pinot.svc.cluster.local_8098’ when ‘pinot.use-streaming-for-segment-queries=false’ configured in presto. It seems that these errors only occur when presto communicating with pinot servers directly. Queries can be pushed down to pinot brokers are working well. I think it is related to auth. Is there a way to configure the correct auth token for presto communicating with pinot servers? My pinot version is 0.11.0-SNAPSHOT and built in July by myself. Presto docker image is 0.276-SNAPSHOT-e4d8032aac-20220722. Thank you.
m
@Xiang Fu ^^
x
You can set the basic auth key in the config:
Copy code
pinot.extra-http-headers=k1:v1
so it will set for pinot authentication
m
Is this documented? If not could we add it there?
m
Thanks @Xiang Fu
e
I’ve set both pinot.extra-http-headers and pinot.extra-grpc-metadata, it won’t work…
x
What's the config looks like ?
this is a recent PR, so it may not yet released
but you can try to pick a docker image released after the merge date, like after July 22nd
e
Thanks, I’ll have a try.