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

NPE while setting priority

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1
    • 2.1
    • driver-hive
    • None

    Description

      31 Mar 2015 08:20:06,715 [QuerySubmitter] INFO  org.apache.lens.driver.hive.HiveDriver  - Hive driver query:SELECT sum(( rrcube . total_burn )) FROM mar31.uh1_pie_summary1 rrcube WHERE ((rrcube.pt != 'latest' AND rrcube.et != 'latest') AND (( rrcube . it ) in ( '2014-11-24-20' )))
      31 Mar 2015 08:20:06,715 [QuerySubmitter] INFO  org.apache.lens.driver.hive.HiveDriver  - whetherCalculatePriority: true
      31 Mar 2015 08:20:06,715 [QuerySubmitter] ERROR org.apache.lens.driver.hive.HiveDriver  - could not set priority for lens session id:c1357256-a6fe-4d4e-8143-8aa51003f54bUser query: cube select total_burn from rrcube where time_range_in(request_time,'2014-11-24-20','2014-11-24-21')
      java.lang.NullPointerException
      	at org.apache.lens.driver.hive.priority.DurationBasedQueryPriorityDecider.getTableWeights(DurationBasedQueryPriorityDecider.java:112)
      	at org.apache.lens.driver.hive.priority.DurationBasedQueryPriorityDecider.getDurationCost(DurationBasedQueryPriorityDecider.java:100)
      	at org.apache.lens.driver.hive.priority.DurationBasedQueryPriorityDecider.decidePriority(DurationBasedQueryPriorityDecider.java:74)
      	at org.apache.lens.driver.hive.HiveDriver.executeAsync(HiveDriver.java:503)
      	at org.apache.lens.server.query.QueryExecutionServiceImpl$QuerySubmitter.run(QueryExecutionServiceImpl.java:480)
      	at java.lang.Thread.run(Thread.java:701)
      31 Mar 2015 08:20:06,730 [Grizzly-worker(2)] INFO  org.apache.lens.server.AuthenticationFilter  - Request from user: null, path=/queryapi/queries/9e5ab131-8b70-48e0-a362-91bc6fa87e6c
      31 Mar 2015 08:20:06,731 [Grizzly-worker(2)] INFO  org.apache.lens.server.api.metrics.MethodMetricsFactory  - Creating MethodMetrics of name: org.apache.lens.server.query.QueryServiceResource.getStatus.GET
      
      

      Attachments

        1. LENS-471.patch
          4 kB
          Amareshwari Sriramadasu

        Activity

          People

            amareshwari Amareshwari Sriramadasu
            arshadmatin20 Arshad Matin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: