Hi guys
I have run more complex queries and also longer running times (about 5 minutes) but this query keeps failing at about 4min 34sec
After this error , I cannot run Presto unless I restart the Presto server and Discovery.
Presto is running on a 2 node cluster with CDH4.7.0 (64GB per node)
I restarted the servers and Presto is back but this query just cripples Presto
The query is a SELECT query from one table
SELECT COL1, COL2....................,COL64, MIN(COL65) from MYTABLE GROUP BY COL1, COL2....................,COL64
Any clues ?
presto069 --debug -f ./foofla.hql --output-format TSV > ./foofla.hql.out
2014-06-02T16:54:28.895-0700 INFO main io.airlift.log.Logging Logging to stderr
2014-06-02T16:54:29.410-0700 INFO main org.eclipse.jetty.util.log Logging initialized @1019ms
java.lang.RuntimeException: Error fetching next
at com.facebook.presto.client.StatementClient.advance(StatementClient.java:209)
at com.facebook.presto.cli.Query.waitForData(Query.java:140)
at com.facebook.presto.cli.Query.renderQueryOutput(Query.java:100)
at com.facebook.presto.cli.Query.renderOutput(Query.java:82)
at com.facebook.presto.cli.Console.process(Console.java:223)
at com.facebook.presto.cli.Console.executeCommand(Console.java:216)
at com.facebook.presto.cli.Console.run(Console.java:91)
at com.facebook.presto.cli.Presto.main(Presto.java:31)
Caused by: java.lang.RuntimeException: java.util.concurrent.TimeoutException
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at io.airlift.http.client.ResponseHandlerUtils.propagate(ResponseHandlerUtils.java:22)
at io.airlift.http.client.FullJsonResponseHandler.handleException(FullJsonResponseHandler.java:53)
at io.airlift.http.client.FullJsonResponseHandler.handleException(FullJsonResponseHandler.java:33)
at io.airlift.http.client.jetty.JettyHttpClient.execute(JettyHttpClient.java:205)
at com.facebook.presto.client.StatementClient.advance(StatementClient.java:182)
... 7 more
Caused by: java.util.concurrent.TimeoutException
at org.eclipse.jetty.client.util.InputStreamResponseListener.get(InputStreamResponseListener.java:208)
at io.airlift.http.client.jetty.JettyHttpClient.execute(JettyHttpClient.java:198)
... 8 more
Running the same query inside CLI
Query 20140602_234045_00005_cjapn, RUNNING, 2 nodes, 328 splits
Splits: 200 queued, 128 running, 0 done
CPU Time: 122.6s total, 1.46K rows/s, 3.99MB/s, 3% active
Per Node: 0.4 parallelism, 552 rows/s, 1.5MB/s
Parallelism: 0.8
2:43 [ 180K rows, 489MB] [ 1.1K rows/s, 3.01MB/s] [ <=> ]
STAGES ROWS ROWS/s BYTES BYTES/s QUEUED RUN DONE
0.........R 0 0 0B 0B 0 1 0
1.......R 0 0 0B 0B 0 4 0
2.....S 180K 1.1K 489M 3.01M 200 123 0
2014-06-02T16:45:28.849-0700 DEBUG main com.facebook.presto.cli.StatusPrinter error printing status
java.lang.RuntimeException: Error fetching next
at com.facebook.presto.client.StatementClient.advance(StatementClient.java:209) ~[presto:0.69]
at com.facebook.presto.cli.StatusPrinter.printInitialStatusUpdates(StatusPrinter.java:94) ~[presto:0.69]
at com.facebook.presto.cli.Query.renderQueryOutput(Query.java:97) [presto:0.69]
at com.facebook.presto.cli.Query.renderOutput(Query.java:82) [presto:0.69]
at com.facebook.presto.cli.Console.process(Console.java:223) [presto:0.69]
at com.facebook.presto.cli.Console.runConsole(Console.java:165) [presto:0.69]
at com.facebook.presto.cli.Console.run(Console.java:94) [presto:0.69]
Query 20140602_234045_00005_cjapn, RUNNING, 2 nodes
Splits: 328 total, 0 done (0.00%)
CPU Time: 122.6s total, 1.46K rows/s, 3.99MB/s, 3% active
Per Node: 0.2 parallelism, 317 rows/s, 885KB/s
Parallelism: 0.4
4:43 [180K rows, 489MB] [634 rows/s, 1.73MB/s]
Query is gone (server restarted?)