[ 
https://issues.apache.org/jira/browse/LENS-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Himanshu Gahlaut updated LENS-190:
----------------------------------
    Status: Patch Available  (was: Open)

> Issue while persisting the Lens session
> ---------------------------------------
>
>                 Key: LENS-190
>                 URL: https://issues.apache.org/jira/browse/LENS-190
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Arshad Matin
>            Assignee: Himanshu Gahlaut
>             Fix For: 2.0
>
>
> If some session is open and some resources have been added to that session. 
> If we remove that resource and try to stop lens server(with session still 
> open) then it will not be able to persist the session and this will create 
> problem in restarting the lens server as server will try to open the 
> persisted session.
> Exception
> {noformat}
> 08 Jan 2015 12:16:11,218 [main] INFO  SessionState  - Added resource: 
> file:///usr/local/lens-internal/lib/jar1.jar
> 08 Jan 2015 12:16:11,219 [main] INFO  
> org.apache.hive.service.cli.operation.Operation  - Putting temp output to 
> file 
> /tmp/dataqa/b6f7eb6f-c761-4344-88d3-6f009892725d5100409087833379690.pipeout
> 08 Jan 2015 12:16:11,220 [main] ERROR SessionState  - 
> file:///usr/local/lens-internal/lib/jar2.jar does not exist
> 08 Jan 2015 12:16:11,458 [main] ERROR 
> org.apache.lens.server.session.HiveSessionService  - Failed to restore 
> resource for session: b6f7eb6f-c761-4344-88d3-6f009892725d resource: type=jar 
> path=file:///usr/local/lens-internal/lib/jar2.jar
> 08 Jan 2015 12:16:11,459 [main] ERROR 
> org.apache.hive.service.CompositeService  - Error starting services 
> lens_services
> java.lang.RuntimeException: javax.ws.rs.WebApplicationException: HTTP 500 
> Internal Server Error
>         at 
> org.apache.lens.server.session.HiveSessionService.start(HiveSessionService.java:295)
>         at 
> org.apache.hive.service.CompositeService.start(CompositeService.java:70)
>         at org.apache.lens.server.LensServices.start(LensServices.java:213)
>         at 
> org.apache.lens.server.LensServer.startServices(LensServer.java:114)
>         at org.apache.lens.server.LensServer.<init>(LensServer.java:73)
>         at org.apache.lens.server.LensServer.main(LensServer.java:168)
> Caused by: javax.ws.rs.WebApplicationException: HTTP 500 Internal Server Error
>         at 
> org.apache.lens.server.session.HiveSessionService.addResource(HiveSessionService.java:106)
>         at 
> org.apache.lens.server.session.HiveSessionService.start(HiveSessionService.java:292)
>         ... 5 more
> Caused by: org.apache.hive.service.cli.HiveSQLException: Error while 
> processing statement: file:///usr/local/lens-internal/lib/jar2.jar does not 
> exist.
>         at 
> org.apache.hive.service.cli.operation.HiveCommandOperation.run(HiveCommandOperation.java:113)
>         at 
> org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:296)
>         at 
> org.apache.hive.service.cli.session.HiveSessionImpl.executeStatement(HiveSessionImpl.java:277)
>         at 
> org.apache.hive.service.cli.CLIService.executeStatement(CLIService.java:238)
>         at 
> org.apache.lens.server.session.HiveSessionService.addResource(HiveSessionService.java:104)
>         ... 6 more
> 08 Jan 2015 12:16:11,461 [main] INFO  org.apache.hive.service.AbstractService 
>  - Service:session is stopped.
> 08 Jan 2015 12:16:11,461 [main] INFO  org.apache.lens.server.EventServiceImpl 
>  - Removed listener 
> org.apache.lens.server.stats.store.log.LogStatisticsStore@3bc1c4a4
> 08 Jan 2015 12:16:11,462 [main] INFO  org.apache.lens.server.EventServiceImpl 
>  - Removed listener 
> org.apache.lens.server.stats.store.log.StatisticsLogPartitionHandler@50eb8271
> 08 Jan 2015 12:16:11,462 [main] INFO  org.apache.hive.service.AbstractService 
>  - Service:stats is stopped.
> 08 Jan 2015 12:16:11,462 [main] INFO  org.apache.lens.server.EventServiceImpl 
>  - Removed listener 
> org.apache.lens.server.MetricsServiceImpl$AsyncQueryStatusListener@6034f7ea
> 08 Jan 2015 12:16:11,462 [main] INFO  
> org.apache.lens.server.api.metrics.MetricsService  - Stopped metrics service
> 08 Jan 2015 12:16:11,462 [main] INFO  org.apache.hive.service.AbstractService 
>  - Service:metrics is stopped.
> 08 Jan 2015 12:16:11,462 [main] INFO  org.apache.lens.server.EventServiceImpl 
>  - Event service stopped
> 08 Jan 2015 12:16:11,463 [main] INFO  org.apache.hive.service.AbstractService 
>  - Service:event is stopped.
> 08 Jan 2015 12:16:11,463 [main] INFO  org.apache.hive.service.AbstractService 
>  - Service:OperationManager is stopped.
> 08 Jan 2015 12:16:11,463 [main] INFO  org.apache.hive.service.AbstractService 
>  - Service:SessionManager is stopped.
> 08 Jan 2015 12:16:11,463 [main] INFO  org.apache.hive.service.AbstractService 
>  - Service:CLIService is stopped.
> 08 Jan 2015 12:16:11,463 [main] FATAL org.apache.lens.server.LensServer  - 
> Error while creating Lens server
> org.apache.hive.service.ServiceException: Failed to Start lens_services
>         at 
> org.apache.hive.service.CompositeService.start(CompositeService.java:80)
>         at org.apache.lens.server.LensServices.start(LensServices.java:213)
>         at 
> org.apache.lens.server.LensServer.startServices(LensServer.java:114)
>         at org.apache.lens.server.LensServer.<init>(LensServer.java:73)
>         at org.apache.lens.server.LensServer.main(LensServer.java:168)
> Caused by: java.lang.RuntimeException: javax.ws.rs.WebApplicationException: 
> HTTP 500 Internal Server Error
>         at 
> org.apache.lens.server.session.HiveSessionService.start(HiveSessionService.java:295)
>         at 
> org.apache.hive.service.CompositeService.start(CompositeService.java:70)
>         ... 4 more
> Caused by: javax.ws.rs.WebApplicationException: HTTP 500 Internal Server Error
>         at 
> org.apache.lens.server.session.HiveSessionService.addResource(HiveSessionService.java:106)
>         at 
> org.apache.lens.server.session.HiveSessionService.start(HiveSessionService.java:292)
>         ... 5 more
> Caused by: org.apache.hive.service.cli.HiveSQLException: Error while 
> processing statement: file:///usr/local/lens-internal/lib/jar2.jar does not 
> exist.
>         at 
> org.apache.hive.service.cli.operation.HiveCommandOperation.run(HiveCommandOperation.java:113)
>         at 
> org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:296)
>         at 
> org.apache.hive.service.cli.session.HiveSessionImpl.executeStatement(HiveSessionImpl.java:277)
>         at 
> org.apache.hive.service.cli.CLIService.executeStatement(CLIService.java:238)
>         at 
> org.apache.lens.server.session.HiveSessionService.addResource(HiveSessionService.java:104)
>         ... 6 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to