Pedro Silva
06/15/2021, 11:23 AMThe Pinot broker and server must be accessible via DNS as Pinot returns hostnames and not IP addresses.
, does this mean the actual pods or the services? Can someone share what their configurations look like? I've tried the trino slack unsuccessfully...Mayank
Pedro Silva
06/15/2021, 3:03 PMQuery 20210615_110517_00024_m2a8t failed: No valid brokers found for hitexecutionview
, where hitexecutionview
is the name of my table but lowercased.
In the connector source code this message occurs when the connector is the brokers for a given table. This search is done by a cache which is populated using the REST tables/<table name>/instances
GET endpoint from the Table API.
So far I see 2 distinct points of concern:
1.) Table name being lowercased means that the api is unable to find the table.
2.) The REST call is hardcoded to use the `http` scheme. In my pinot setup, I can't use the swagger api with the http
scheme, only https
Elon
06/15/2021, 3:56 PMPedro Silva
06/15/2021, 4:00 PMElon
06/15/2021, 4:00 PMMayank
Mayank
Elon
06/15/2021, 4:07 PMPedro Silva
06/15/2021, 4:09 PMPedro Silva
06/15/2021, 4:09 PMPedro Silva
06/15/2021, 4:09 PMElon
06/15/2021, 4:09 PMPedro Silva
06/15/2021, 4:10 PMMayank
Mayank
Elon
06/15/2021, 4:10 PMPedro Silva
06/15/2021, 4:50 PMtrino:default> select * from hitexecutionview limit 1;
Query 20210615_164649_00006_ag23g, FAILED, 1 node
Splits: 49 total, 0 done (0.00%)
1:00 [0 rows, 0B] [0 rows/s, 0B/s]
Query 20210615_164649_00006_ag23g failed: null value in entry: Server_pinot-server-1.pinot-server-headless.dc-pinot.svc.cluster.local_8098=null
In the pinot sql UI this query takes 5msElon
06/15/2021, 4:52 PMpinot.set.instance.id.to.hostname
set to true in the server config?Pedro Silva
06/15/2021, 4:52 PMElon
06/15/2021, 4:52 PMPedro Silva
06/15/2021, 4:52 PMElon
06/15/2021, 4:53 PMElon
06/15/2021, 4:53 PMElon
06/15/2021, 4:54 PMselect * from "select * from hitexecutionview limit 1"
Elon
06/15/2021, 4:54 PMPedro Silva
06/15/2021, 4:54 PMtrino:default> select * from "select * from hitexecutionview limit 1"
-> ;
Query 20210615_165418_00007_ag23g, FAILED, 1 node
Splits: 17 total, 0 done (0.00%)
0.83 [0 rows, 0B] [0 rows/s, 0B/s]
Query 20210615_165418_00007_ag23g failed: Internal error
Elon
06/15/2021, 4:55 PMElon
06/15/2021, 4:55 PM--debug
in the trino cli, so we can see the stack tracePedro Silva
06/15/2021, 4:58 PMElon
06/15/2021, 4:58 PMPedro Silva
06/15/2021, 5:02 PM$ kubectl -n dc-trino exec -it trino-coordinator-7ddccf54fc-cbq5m -- /bin/bash
[trino@trino-coordinator-7ddccf54fc-cbq5m /]$ trino
trino> exit
[trino@trino-coordinator-7ddccf54fc-cbq5m /]$ trino --debug --catalog pinot --schema default
trino:default> select * from hitexecutionview limit 1;
Query 20210615_170048_00002_ieyau, FAILED, 1 node
<http://localhost:8080/ui/query.html?20210615_170048_00002_ieyau>
Splits: 97 total, 0 done (0.00%)
CPU Time: 0.0s total, 0 rows/s, 0B/s, 100% active
Per Node: 0.0 parallelism, 0 rows/s, 0B/s
Parallelism: 0.0
Peak Memory: 0B
1:01 [0 rows, 0B] [0 rows/s, 0B/s]
Query 20210615_170048_00002_ieyau failed: null value in entry: Server_pinot-server-0.pinot-server-headless.dc-pinot.svc.cluster.local_8098=null
java.lang.NullPointerException: null value in entry: Server_pinot-server-0.pinot-server-headless.dc-pinot.svc.cluster.local_8098=null
at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:32)
at com.google.common.collect.SingletonImmutableBiMap.<init>(SingletonImmutableBiMap.java:42)
at com.google.common.collect.ImmutableBiMap.of(ImmutableBiMap.java:72)
at com.google.common.collect.ImmutableMap.of(ImmutableMap.java:119)
at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:454)
at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:433)
at io.trino.plugin.pinot.PinotSegmentPageSource.queryPinot(PinotSegmentPageSource.java:221)
at io.trino.plugin.pinot.PinotSegmentPageSource.fetchPinotData(PinotSegmentPageSource.java:182)
at io.trino.plugin.pinot.PinotSegmentPageSource.getNextPage(PinotSegmentPageSource.java:150)
at io.trino.operator.TableScanOperator.getOutput(TableScanOperator.java:301)
at io.trino.operator.Driver.processInternal(Driver.java:387)
at io.trino.operator.Driver.lambda$processFor$9(Driver.java:291)
at io.trino.operator.Driver.tryWithLock(Driver.java:683)
at io.trino.operator.Driver.processFor(Driver.java:284)
at io.trino.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:1075)
at io.trino.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:163)
at io.trino.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:484)
at io.trino.$gen.Trino_358____20210615_165930_2.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Elon
06/15/2021, 5:03 PMPedro Silva
06/15/2021, 5:03 PMElon
06/15/2021, 5:04 PMPedro Silva
06/15/2021, 5:04 PMElon
06/15/2021, 5:09 PMElon
06/15/2021, 5:09 PMElon
06/15/2021, 5:10 PMdesc hitexecutionview
from trino cli?Pedro Silva
06/15/2021, 5:12 PMPedro Silva
06/15/2021, 5:12 PMtrino:default> desc hitexecutionview
-> ;
Column | Type | Extra | Comment
----------------------------+---------+-------+---------
jobstatus | bigint | |
gender | varchar | |
rightclickcount | bigint | |
internalcrowdmemberid | bigint | |
externalcrowdmemberid | varchar | |
internalhitexecutionid | bigint | |
accuracy | varchar | |
inputforuicontrols | varchar | |
audiolength | bigint | |
hitstatus | bigint | |
internaljobid | bigint | |
internaljobmemberid | bigint | |
priceperunit | double | |
result | varchar | |
dateofbirthms | bigint | |
baseinternalhitid | bigint | |
dateofevent | bigint | |
beforeinputdelay | bigint | |
jobtypecode | varchar | |
externalhitexecutionid | varchar | |
cancelreason | bigint | |
keyscount | bigint | |
externaljobmemberid | varchar | |
isjobmembervendor | varchar | |
activetime | bigint | |
isrta | varchar | |
fluency | varchar | |
dateofbirth | varchar | |
languagecode | varchar | |
leftclickcount | bigint | |
baseinternalhitexecutionid | bigint | |
source-intelligible | varchar | |
externalprojectid | varchar | |
externaljobid | varchar | |
totaltasktime | bigint | |
translation | varchar | |
isqualification | varchar | |
skipreason | varchar | |
messagetimestamp | varchar | |
externalhitid | varchar | |
hitexecutionstatus | bigint | |
(41 rows)
Query 20210615_171235_00003_ieyau, FINISHED, 2 nodes
<http://localhost:8080/ui/query.html?20210615_171235_00003_ieyau>
Splits: 19 total, 19 done (100.00%)
CPU Time: 0.0s total, 1.32K rows/s, 106KB/s, 55% active
Per Node: 0.0 parallelism, 64 rows/s, 5.18KB/s
Parallelism: 0.1
Peak Memory: 0B
0.32 [41 rows, 3.3KB] [128 rows/s, 10.4KB/s]
Elon
06/15/2021, 5:13 PMElon
06/15/2021, 5:13 PMPedro Silva
06/15/2021, 5:13 PMElon
06/15/2021, 5:15 PMElon
06/15/2021, 5:15 PMPedro Silva
06/15/2021, 5:16 PMPedro Silva
06/15/2021, 5:16 PMElon
06/15/2021, 5:16 PMElon
06/15/2021, 5:17 PMPedro Silva
06/15/2021, 5:17 PMElon
06/15/2021, 5:20 PMPedro Silva
06/15/2021, 5:21 PMPedro Silva
06/15/2021, 5:28 PMPedro Silva
06/15/2021, 5:29 PMElon
06/15/2021, 5:33 PMElon
06/15/2021, 5:33 PMPedro Silva
06/15/2021, 5:36 PMElon
06/15/2021, 5:37 PMElon
06/15/2021, 5:38 PMPedro Silva
06/15/2021, 5:39 PMElon
06/15/2021, 5:59 PMPedro Silva
06/16/2021, 8:50 AMPedro Silva
06/16/2021, 8:50 AMtrino:default> select externalHitExecutionId from hitexecutionview limit 1;
externalHitExecutionId
--------------------------------------
18dc8417-346b-4ff8-a440-0d0b8b6e0e72
(1 row)
Query 20210616_085001_00007_unjsj, FINISHED, 1 node
Splits: 33 total, 33 done (100.00%)
0.44 [16 rows, 576B] [36 rows/s, 1.29KB/s]
Pedro Silva
06/16/2021, 8:51 AMPedro Silva
06/16/2021, 10:45 AMtrino:default> select * from hitexecutionview;
jobstatus | gender | rightclickcount | internalcrowdmemberid | externalcrowdmemberid | internalhitexecutionid | accuracy | inputforuicontrols | audiolength | hitstatus | internaljobid | internaljobmembe
-----------+--------+-----------------+-----------------------+-----------------------+------------------------+----------+--------------------+-------------+-----------+---------------+-----------------
(0 rows)
Query 20210616_104504_00063_unjsj, FINISHED, 1 node
Splits: 32 total, 32 done (100.00%)
0.23 [0 rows, 0B] [0 rows/s, 0B/s]
Elon
06/16/2021, 1:03 PMElon
06/16/2021, 1:08 PMPedro Silva
06/16/2021, 1:11 PMElon
06/16/2021, 1:19 PMElon
06/16/2021, 1:19 PMMayank
Elon
06/16/2021, 1:21 PMElon
06/16/2021, 1:21 PMElon
06/16/2021, 1:30 PMPedro Silva
06/16/2021, 1:31 PMMayank
Elon
06/16/2021, 1:46 PMElon
06/16/2021, 1:46 PMElon
06/16/2021, 1:47 PMselect * from "select ... from pinot_table where ..."
Pedro Silva
06/16/2021, 1:47 PMElon
06/16/2021, 1:47 PMElon
06/16/2021, 1:48 PMElon
06/16/2021, 1:51 PM/version
apiElon
06/16/2021, 1:51 PMMayank
Elon
06/16/2021, 3:26 PMMayank
Pedro Silva
06/16/2021, 3:50 PMMayank