Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-35

Queries failing with monthly time range at hourly granularity

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: driver-hive
    • Labels:
      None

      Description

      Queries with monthly time range (or larger) at hourly granularity fail with stack overflow exception:-

      org.apache.lens.api.LensException: Error executing async query
      	at org.apache.lens.driver.hive.HiveDriver.executeAsync(HiveDriver.java:407)
      	at org.apache.lens.server.query.QueryExecutionServiceImpl$QuerySubmitter.run(QueryExecutionServiceImpl.java:416)
      	at java.lang.Thread.run(Thread.java:701)
      Caused by: org.apache.hive.service.cli.HiveSQLException: java.lang.StackOverflowError
      	at org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.checkStatus(ThriftCLIServiceClient.java:52)
      	at org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.executeStatementInternal(ThriftCLIServiceClient.java:151)
      	at org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.executeStatementAsync(ThriftCLIServiceClient.java:139)
      	at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.invokeInternal(RetryingThriftCLIServiceClient.java:301)
      	at org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.invoke(RetryingThriftCLIServiceClient.java:329)
      	at com.sun.proxy.$Proxy58.executeStatementAsync(Unknown Source)
      	at org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient$CLIServiceClientWrapper.executeStatementAsync(RetryingThriftCLIServiceClient.java:118)
      	at org.apache.lens.driver.hive.HiveDriver.executeAsync(HiveDriver.java:398)
      	... 2 more
      
      

        Attachments

        1. lens-35.patch
          8 kB
          Jaideep Dhok

          Issue Links

            Activity

              People

              • Assignee:
                jaideepdhok Jaideep Dhok
                Reporter:
                raghavendra.singh Raghavendra Singh
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: