Prashant Pandey
07/20/2022, 6:08 AMPrashant Pandey
07/20/2022, 6:10 AMpinot-broker-3.broker-headless.pinot.cluster.local:8099) and it stop seeing any errors. The rationale behind doing this was we had assigned only a single broker for the tables yet query was going to one other broker (which wasn’t a part of the tenant). Therefore, we pinned it only to the broker we wanted to use.Prashant Pandey
07/20/2022, 6:12 AMPrashant Pandey
07/20/2022, 6:13 AMsaurabh dubey
07/20/2022, 6:21 AMPrashant Pandey
07/20/2022, 6:35 AMsaurabh dubey
07/20/2022, 6:43 AMConnection connection = ConnectionFactory.fromHostList(broker1, broker2)
will load balance across the list of brokers provided. It does not check whether or not the broker actually belongs to the tenant / table being queried
Using
Connection connection = ConnectionFactory.fromZookeeper(zkurl)
However, will use ZK meta to maintain an updated map of tableName -> broker lists and always query the right broker. This ofcourse implies that all brokers must be either publically accesible, or your app should be deployed in the same VPC as pinot
@Kartik Khare for moreKartik Khare
07/20/2022, 7:03 AMPrashant Pandey
07/20/2022, 7:13 AMsaurabh dubey
07/20/2022, 7:22 AMPrashant Pandey
07/20/2022, 9:25 AM