Hello Everyone, I have installed pinot on k8 and c...
# troubleshooting
j
Hello Everyone, I have installed pinot on k8 and created two tenants(each for broker and server) with name
default
and
test
. Whenever i query table with
default
tenant and request through ingress controller goes to broker with
test
tag then it failed How you handle this scenario? whenever i query table with specific tenant then request goes to that broker only through ingress?
s
If you're using pinot-java-client, AND your app is within the same subnet / vpc as your brokers, you can initialise your client with ZK URL. The client will use the ZK metadata to route the queries to the correct broker for a given table
j
thanks @saurabh dubey, i am using superset tool to connect to pinot. any work around for this?
@Xiang Fu any suggestions?
x
right, I think that’s the limitation of python pinot client, it’s not really aligned with superset database concept
you should directly query default namespace with your tables in the test tenant.
so pinot side will return all the schema as
default
desperate about any tenant concept .
from pinot side, python client just hit all the pinot brokers, which can be any broker in any tenant, so you may fail at any time
for now, you can have two solutions: 1. make only one broker tenant, so all the tables are sharing same tenant, and your pinot service will be the only entry point for all the queries. 2. Create a k8s service for each tenant, so that you will have pinot-default svc and pinot-test svc. Then from superset, you need to connect to two pinot entry point, same controller, but different broker endpoint. So you treat each pinot tenant as one data source.
We are also working on making this experience more smooth by just giving the controller endpoint or proxy end point. However, it’s pretty hard with k8s set up as there are limited endpoints.
j
thanks @Xiang Fu 🙏
@Xiang Fu is it ok if we map schema with tenants in this with
/tenants
then we change the API in this with
/tenants/{tenantName}/tables
Please suggest