Description
If the session takes a while to start, the client receives a gateway timeout from the Livy server:
Caused by: java.io.IOException: Gateway Timeout: {"msg":"Gateway timeout"} at com.cloudera.livy.client.http.LivyConnection.sendRequest(LivyConnection.java:193) at com.cloudera.livy.client.http.LivyConnection.sendJSONRequest(LivyConnection.java:169) at com.cloudera.livy.client.http.LivyConnection.post(LivyConnection.java:145) at com.cloudera.livy.client.http.HttpClient.<init>(HttpClient.java:67)
It would be better, instead, if the start of a client session was monitored asynchronously, so that the code is less susceptible to these timeouts. If that's too much work, we need to at least figure out the source of this timeout, since it seems to come from the server and I didn't notice anything wrong in the server output.