[
https://issues.apache.org/jira/browse/LENS-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arshad Matin closed LENS-348.
-----------------------------
> Lens stop is in hung state when there is ReadTimeoutException with Hive
> Metastore
> ---------------------------------------------------------------------------------
>
> Key: LENS-348
> URL: https://issues.apache.org/jira/browse/LENS-348
> Project: Apache Lens
> Issue Type: Bug
> Components: server
> Reporter: Arshad Matin
> Assignee: Amareshwari Sriramadasu
> Fix For: 2.1
>
> Attachments: LENS-348.patch, stopIssue.txt
>
>
> LensServer.log
> {noformat}
> 25 Feb 2015 06:43:31,219 [Shutdown] INFO org.apache.lens.server.LensServices
> - Persistence File system object close complete
> 25 Feb 2015 06:43:31,219 [Shutdown] INFO
> org.apache.hive.service.AbstractService - Service:quota is stopped.
> 25 Feb 2015 06:43:31,219 [Shutdown] INFO
> org.apache.hive.service.AbstractService - Service:scheduler is stopped.
> 25 Feb 2015 06:43:31,219 [Shutdown] INFO
> org.apache.hive.service.AbstractService - Service:metastore is stopped.
> 25 Feb 2015 06:43:31,219 [Shutdown] INFO
> org.apache.hive.service.AbstractService - Service:query is stopped.
> 25 Feb 2015 06:43:37,609 [QuerySubmitter] ERROR
> org.apache.lens.server.query.QueryExecutionServiceImpl - Error launching
> query dacdd41b-9a39-4e3d-95fa-fe0fae93daa9
> org.apache.lens.api.LensException:
> org.apache.hive.service.cli.HiveSQLException: Unable to connect after 1
> retries
> at
> org.apache.lens.driver.hive.RemoteThriftConnection.getClient(RemoteThriftConnection.java:68)
> at
> org.apache.lens.driver.hive.HiveDriver.getClient(HiveDriver.java:746)
> at
> org.apache.lens.driver.hive.HiveDriver.executeAsync(HiveDriver.java:470)
> at
> org.apache.lens.server.query.QueryExecutionServiceImpl$QuerySubmitter.run(QueryExecutionServiceImpl.java:464)
> at java.lang.Thread.run(Thread.java:701)
> Caused by: org.apache.hive.service.cli.HiveSQLException: Unable to connect
> after 1 retries
> at
> org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.connectWithRetry(RetryingThriftCLIServiceClient.java:241)
> at
> org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.newRetryingCLIServiceClient(RetryingThriftCLIServiceClient.java:227)
> at
> org.apache.lens.driver.hive.RemoteThriftConnection.getClient(RemoteThriftConnection.java:63)
> ... 4 more
> Caused by: org.apache.thrift.transport.TTransportException:
> java.net.SocketTimeoutException: Read timed out
> at
> org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
> at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
> at
> org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
> at
> org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:288)
> at
> org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
> at
> org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.connect(RetryingThriftCLIServiceClient.java:280)
> at
> org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.connectWithRetry(RetryingThriftCLIServiceClient.java:237)
> ... 6 more
> Caused by: java.net.SocketTimeoutException: Read timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:146)
> at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
> at
> org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
> ... 12 more
> 25 Feb 2015 06:53:27,602 [HiveDriver-ConnectionExpiryThread] INFO
> org.apache.lens.driver.hive.HiveDriver - Closed connection:1
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)