[jira] [Created] (LENS-1479) Adding tests for 'User Hook', 'Query Timeout' and 'Session Expiry'

2017-09-26 Thread Archana H (JIRA)
Archana H created LENS-1479:
---

 Summary: Adding tests for 'User Hook', 'Query Timeout' and 
'Session Expiry'
 Key: LENS-1479
 URL: https://issues.apache.org/jira/browse/LENS-1479
 Project: Apache Lens
  Issue Type: Test
  Components: regression
Reporter: Archana H
Assignee: Archana H
 Fix For: 2.8


Adding tests for following features
* Adding hook at driver level
* Query Timeout
* Session expiry



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Assigned] (LENS-1422) Verify Lens 2.7 release

2017-09-25 Thread Archana H (JIRA)

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

Archana H reassigned LENS-1422:
---

Assignee: Divakar Tomar  (was: Archana H)

> Verify Lens 2.7 release
> ---
>
> Key: LENS-1422
> URL: https://issues.apache.org/jira/browse/LENS-1422
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Reporter: Raju Bairishetti
>Assignee: Divakar Tomar
> Fix For: 2.7
>
>
> This ticket is for verify all the issues in the 2.7 release. We can start 
> working on this once we prepared a release branch. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (LENS-1472) Populate sample metastore on example db is failing

2017-09-04 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16152594#comment-16152594
 ] 

Archana H commented on LENS-1472:
-

One more error in the same
{CODE}
Exception in thread "main" java.sql.SQLSyntaxErrorException: user lacks 
privilege or object not found: MYDB_SALES_AGGR_CONTINUOUS_FACT
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source)
at 
org.apache.lens.examples.PopulateSampleMetastore.createContinuousFactData(PopulateSampleMetastore.java:122)
at 
org.apache.lens.examples.PopulateSampleMetastore.populateFactTables(PopulateSampleMetastore.java:199)
at 
org.apache.lens.examples.PopulateSampleMetastore.populateAll(PopulateSampleMetastore.java:84)
at 
org.apache.lens.examples.PopulateSampleMetastore.main(PopulateSampleMetastore.java:71)
Caused by: org.hsqldb.HsqlException: user lacks privilege or object not found: 
MYDB_SALES_AGGR_CONTINUOUS_FACT
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.SchemaManager.getTable(Unknown Source)
at org.hsqldb.ParserDQL.readTableName(Unknown Source)
at org.hsqldb.ParserDQL.readRangeVariableForDataChange(Unknown Source)
at org.hsqldb.ParserDML.compileInsertStatement(Unknown Source)
at org.hsqldb.ParserCommand.compilePart(Unknown Source)
at org.hsqldb.ParserCommand.compileStatements(Unknown Source)
at org.hsqldb.Session.executeDirectStatement(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
{CODE}

> Populate sample metastore on example db is failing
> --
>
> Key: LENS-1472
> URL: https://issues.apache.org/jira/browse/LENS-1472
> Project: Apache Lens
>  Issue Type: Bug
>  Components: examples
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Attachments: LENS-1472.01.patch
>
>
> {noformat}
> Error Message: Internal Server Error.: 
> MetaException(message:file:/usr/local/lens/client/examples/data/sales_aggr_fact2_local4
>  is not a directory or unable to create one)
>   at 
> org.apache.lens.client.LensMetadataClient.translate(LensMetadataClient.java:73)
>   at 
> org.apache.lens.client.LensMetadataClient.addPartitionsToFactTable(LensMetadataClient.java:875)
>   at 
> org.apache.lens.examples.PopulateSampleMetastore.createFactPartitions(PopulateSampleMetastore.java:172)
>   at 
> org.apache.lens.examples.PopulateSampleMetastore.populateFactTables(PopulateSampleMetastore.java:196)
>   at 
> org.apache.lens.examples.PopulateSampleMetastore.populateAll(PopulateSampleMetastore.java:84)
>   at 
> org.apache.lens.examples.PopulateSampleMetastore.main(PopulateSampleMetastore.java:71)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1393) Update the javax mail version to current

2017-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1393.
---

> Update the javax mail version to current
> 
>
> Key: LENS-1393
> URL: https://issues.apache.org/jira/browse/LENS-1393
> Project: Apache Lens
>  Issue Type: Task
>  Components: server
>Reporter: Lavkesh Lahngir
>Assignee: Lavkesh Lahngir
> Fix For: 2.7
>
> Attachments: LENS-1393.patch
>
>
> Sending mail with the older version of javax mail was causing threads to 
> stuck because of connection timeout to the mail server was not honored. 
> Updating to the new version solves the problem.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1410) Make the filter while getting a list of partitions mandatory

2017-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1410.
---

> Make the filter while getting a list of partitions mandatory 
> -
>
> Key: LENS-1410
> URL: https://issues.apache.org/jira/browse/LENS-1410
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Lavkesh Lahngir
>Assignee: Lavkesh Lahngir
> Fix For: 2.7
>
> Attachments: 0001-LENS-1410.patch, LENS-1410.1.patch
>
>
> Make the filter while getting a list of partitions mandatory 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1386) Add support for separate tables for update periods in one storage

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1386.
---

> Add support for separate tables for update periods in one storage
> -
>
> Key: LENS-1386
> URL: https://issues.apache.org/jira/browse/LENS-1386
> Project: Apache Lens
>  Issue Type: Task
>  Components: api, cube, server
>Reporter: Lavkesh Lahngir
>Assignee: Lavkesh Lahngir
> Fix For: 2.7
>
> Attachments: LENS-1386.patch
>
>
> Xsd and Metastore changes:
> (1) New Xsd construct
> (2) Create Fact Changes
> (3) CubeMetastoreClient changes for update period table name
> (4) Validation that TableDescription should only be available at either table 
> level or at update period level



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1340) Adding API for data completeness checker

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1340.
---

> Adding API for data completeness checker
> 
>
> Key: LENS-1340
> URL: https://issues.apache.org/jira/browse/LENS-1340
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: cube
>Reporter: Narayan Periwal
>Assignee: Narayan Periwal
> Fix For: 2.7
>
> Attachments: LENS-1340.patch, LENS-1340-v2.patch
>
>
> The data completeness API will take the factTag, startDate, endDate and 
> measure's list as input. 
> It will return the completeness percentage for each of the measures for the 
> given factTag and time range.  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1392) Fix failing TestCases in org.apache.lens.server.query.QueryAPIErrorResponseTest

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1392.
---

> Fix  failing TestCases in 
> org.apache.lens.server.query.QueryAPIErrorResponseTest
> 
>
> Key: LENS-1392
> URL: https://issues.apache.org/jira/browse/LENS-1392
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: server
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.7
>
> Attachments: lens-1392.patch
>
>
> Failed tests:
> QueryAPIErrorResponseTest.testQueryColumnWithBothStartDateAndEndDate:209->testColUnAvailableInTimeRange:297
>  expected [dimfield8d6e29df822945c49ea03d3533806cca can only be queried after 
> Thursday, January 1, 2015 12:00:00 AM UTC and before Friday, January 30, 2015 
> 11:00:00 PM UTC. Please adjust the selected time range accordingly.] but 
> found [No fact table has the queried columns : 
> [dimfield8d6e29df822945c49ea03d3533806cca]]
> QueryAPIErrorResponseTest.testQueryColumnWithBothStartDateAndEndDate:209->testColUnAvailableInTimeRange:297
>  expected [dimfield16cc374b445443a6ae8fce39fad190d1 can only be queried after 
> Thursday, January 1, 2015 12:00:00 AM UTC and before Friday, January 30, 2015 
> 11:00:00 PM UTC. Please adjust the selected time range accordingly.] but 
> found [No fact table has the queried columns : 
> [dimfield16cc374b445443a6ae8fce39fad190d1]]
> QueryAPIErrorResponseTest.testQueryColumnWithOnlyEndDate:245->testColUnAvailableInTimeRange:297
>  expected [dimfieldc7f0b34c257d4fde80dacaaf0d61d600 can only be queried 
> before Friday, January 30, 2015 11:00:00 PM UTC. Please adjust the selected 
> time range accordingly.] but found [No fact table has the queried columns : 
> [dimfieldc7f0b34c257d4fde80dacaaf0d61d600]]
> QueryAPIErrorResponseTest.testQueryColumnWithOnlyEndDate:245->testColUnAvailableInTimeRange:297
>  expected [dimfield3931859c8fdf47a49beaadba222915d6 can only be queried 
> before Friday, January 30, 2015 11:00:00 PM UTC. Please adjust the selected 
> time range accordingly.] but found [No fact table has the queried columns : 
> [dimfield3931859c8fdf47a49beaadba222915d6]]
> QueryAPIErrorResponseTest.testQueryColumnWithOnlyStartDate:227->testColUnAvailableInTimeRange:297
>  expected [dimfield4b536214dcf0413e9bd7190d9efa139b can only be queried after 
> Thursday, January 1, 2015 12:00:00 AM UTC. Please adjust the selected time 
> range accordingly.] but found [No fact table has the queried columns : 
> [dimfield4b536214dcf0413e9bd7190d9efa139b]]
> QueryAPIErrorResponseTest.testQueryColumnWithOnlyStartDate:227->testColUnAvailableInTimeRange:297
>  expected [dimfield85771da365a44789a42fd8f800fbbe50 can only be queried after 
> Thursday, January 1, 2015 12:00:00 AM UTC. Please adjust the selected time 
> range accordingly.] but found [No fact table has the queried columns : 
> [dimfield85771da365a44789a42fd8f800fbbe50]]
> Tests run: 321, Failures: 6, Errors: 0, Skipped: 18



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1304) Log Driver query in lens finished_queries table as well

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1304.
---

> Log Driver query in lens finished_queries table as well
> ---
>
> Key: LENS-1304
> URL: https://issues.apache.org/jira/browse/LENS-1304
> Project: Apache Lens
>  Issue Type: Task
>  Components: server
>Reporter: Raghavendra Singh
>Assignee: Raghavendra Singh
>  Labels: incompatible
> Fix For: 2.7
>
> Attachments: LENS-1304.05.patch
>
>
> Make driver query available in the finished_queries stats for deeper analytics



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1405) Xsd for virtual fact

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1405.
---

> Xsd for virtual fact
> 
>
> Key: LENS-1405
> URL: https://issues.apache.org/jira/browse/LENS-1405
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: cube
>Reporter: Rajitha R
>Assignee: Rajitha R
> Fix For: 2.7
>
> Attachments: lens_latest.patch, Lens-patch
>
>
> To define a xsd for virtual fact.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1319) Lens Client doesn't provide the option to pass query conf while submitting the query

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1319.
---

> Lens Client doesn't provide the option to pass query conf while submitting 
> the query
> 
>
> Key: LENS-1319
> URL: https://issues.apache.org/jira/browse/LENS-1319
> Project: Apache Lens
>  Issue Type: Bug
>Affects Versions: 2.7
>Reporter: Srikanth Sundarrajan
>Assignee: Srikanth Sundarrajan
> Fix For: 2.7
>
> Attachments: LENS-1319.patch
>
>
> Lens Client doesn't provide the option to pass query conf while submitting 
> the query. Lens Server however allow the conf to posted as a form param along 
> with other parameters. Lens Client need to be extended to pass the LensConf 
> along.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-974) Add cube-segmentation for base cube

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-974.
--

> Add cube-segmentation for base cube
> ---
>
> Key: LENS-974
> URL: https://issues.apache.org/jira/browse/LENS-974
> Project: Apache Lens
>  Issue Type: New Feature
>  Components: cube
>Reporter: Sushil Mohanty
>Assignee: Rajat Khandelwal
> Fix For: 2.7
>
> Attachments: e1f17d45.png, LENS-974.17.patch, LENS-974.18.patch, 
> LENS-974.20.patch, LENS-974.21.patch, LENS-974.22.patch, LENS-974.23.patch, 
> LENS-974.24.patch, LENS-974.25.patch
>
>
> With cube segmentation a cube can have multiple cubes and all these child 
> cubes together will make the cube complete. 
> CubeSegmentation and  CubeFactTable will sit together, which means it can 
> belong to only one base cube. A base cube can have one or more cube 
> segmentations. Fields of segmentation will be intersection of all columns of 
> its cubes. Segmentation will have weight to compare with its buddies (facts 
> or other segmentations). Also it can have start and end time defined or it 
> can derive from its underline facts. 
> eg: 
> base_cube
>   |_fact1
>   |_fact2
>   |_cube_segment1
>  |_cube1
> |_fact_11
> |_fact_12
> ... 
>   ...
>   |_cube_segment2
>  |_cube2
> |_fact_21
> |_fact_22
> ... 
>   ...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1381) Support Fact to Fact Union

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1381.
---

> Support Fact to Fact Union
> --
>
> Key: LENS-1381
> URL: https://issues.apache.org/jira/browse/LENS-1381
> Project: Apache Lens
>  Issue Type: New Feature
>Reporter: Puneet Gupta
>Assignee: Sushil Mohanty
> Fix For: 2.7
>
> Attachments: LENS-1381_4.patch, LENS-1381_checkstyle_fix_1.patch, 
> LENS-1381_checkstyle_fix.patch
>
>
> Currently Lens supports Union-ing data across different storages in a single 
> Fact. With this JIRA Lens server will be able to Union Data Across Facts too.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (LENS-1380) Revamp testcase division

2017-08-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1380.
---

> Revamp testcase division
> 
>
> Key: LENS-1380
> URL: https://issues.apache.org/jira/browse/LENS-1380
> Project: Apache Lens
>  Issue Type: Task
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.7
>
> Attachments: LENS-1380.patch
>
>
> Currently multiple testcases are clubbed in the same class file. Separating 
> them to feature wise test class files. Also renaming few test class names to 
> have "IT" in the beginning.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (LENS-1380) Revamp testcase division

2017-02-05 Thread Archana H (JIRA)

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

Archana H updated LENS-1380:

   Resolution: Fixed
Fix Version/s: 2.7
   Status: Resolved  (was: Patch Available)

> Revamp testcase division
> 
>
> Key: LENS-1380
> URL: https://issues.apache.org/jira/browse/LENS-1380
> Project: Apache Lens
>  Issue Type: Task
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.7
>
> Attachments: LENS-1380.patch
>
>
> Currently multiple testcases are clubbed in the same class file. Separating 
> them to feature wise test class files. Also renaming few test class names to 
> have "IT" in the beginning.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (LENS-1380) Revamp testcase division

2017-02-05 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15853638#comment-15853638
 ] 

Archana H commented on LENS-1380:
-

Committed myself.

> Revamp testcase division
> 
>
> Key: LENS-1380
> URL: https://issues.apache.org/jira/browse/LENS-1380
> Project: Apache Lens
>  Issue Type: Task
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.7
>
> Attachments: LENS-1380.patch
>
>
> Currently multiple testcases are clubbed in the same class file. Separating 
> them to feature wise test class files. Also renaming few test class names to 
> have "IT" in the beginning.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Comment Edited] (LENS-1380) Revamp testcase division

2017-02-03 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15851548#comment-15851548
 ] 

Archana H edited comment on LENS-1380 at 2/3/17 2:27 PM:
-

Not much code change, just renamed file and moved test cases to feature wise 
test class files, so attaching patch directly here.


was (Author: archana.h):
Not much code change, just renamed file and moved test cases to feature wise 
test class files, so hatching patch directly here.

> Revamp testcase division
> 
>
> Key: LENS-1380
> URL: https://issues.apache.org/jira/browse/LENS-1380
> Project: Apache Lens
>  Issue Type: Task
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Attachments: LENS-1380.patch
>
>
> Currently multiple testcases are clubbed in the same class file. Separating 
> them to feature wise test class files. Also renaming few test class names to 
> have "IT" in the beginning.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (LENS-1380) Revamp testcase division

2017-02-03 Thread Archana H (JIRA)

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

Archana H updated LENS-1380:

Status: Patch Available  (was: Open)

> Revamp testcase division
> 
>
> Key: LENS-1380
> URL: https://issues.apache.org/jira/browse/LENS-1380
> Project: Apache Lens
>  Issue Type: Task
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Attachments: LENS-1380.patch
>
>
> Currently multiple testcases are clubbed in the same class file. Separating 
> them to feature wise test class files. Also renaming few test class names to 
> have "IT" in the beginning.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (LENS-1380) Revamp testcase division

2017-02-03 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15851548#comment-15851548
 ] 

Archana H commented on LENS-1380:
-

Not much code change, just renamed file and moved test cases to feature wise 
test class files, so hatching patch directly here.

> Revamp testcase division
> 
>
> Key: LENS-1380
> URL: https://issues.apache.org/jira/browse/LENS-1380
> Project: Apache Lens
>  Issue Type: Task
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Attachments: LENS-1380.patch
>
>
> Currently multiple testcases are clubbed in the same class file. Separating 
> them to feature wise test class files. Also renaming few test class names to 
> have "IT" in the beginning.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (LENS-1380) Revamp testcase division

2017-02-03 Thread Archana H (JIRA)

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

Archana H updated LENS-1380:

Attachment: LENS-1380.patch

> Revamp testcase division
> 
>
> Key: LENS-1380
> URL: https://issues.apache.org/jira/browse/LENS-1380
> Project: Apache Lens
>  Issue Type: Task
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Attachments: LENS-1380.patch
>
>
> Currently multiple testcases are clubbed in the same class file. Separating 
> them to feature wise test class files. Also renaming few test class names to 
> have "IT" in the beginning.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Created] (LENS-1380) Revamp testcase division

2016-12-08 Thread Archana H (JIRA)
Archana H created LENS-1380:
---

 Summary: Revamp testcase division
 Key: LENS-1380
 URL: https://issues.apache.org/jira/browse/LENS-1380
 Project: Apache Lens
  Issue Type: Task
  Components: regression
Reporter: Archana H
Assignee: Archana H


Currently multiple testcases are clubbed in the same class file. Separating 
them to feature wise test class files. Also renaming few test class names to 
have "IT" in the beginning.



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


[jira] [Created] (LENS-1369) Druid rewriter is excluding both "from" and "to" date of lens query

2016-10-25 Thread Archana H (JIRA)
Archana H created LENS-1369:
---

 Summary: Druid rewriter is excluding both "from" and "to" date of 
lens query
 Key: LENS-1369
 URL: https://issues.apache.org/jira/browse/LENS-1369
 Project: Apache Lens
  Issue Type: Bug
  Components: driver-jdbc
Reporter: Archana H
Assignee: Rajitha R






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


[jira] [Created] (LENS-1368) Having query is failing for druid driver

2016-10-25 Thread Archana H (JIRA)
Archana H created LENS-1368:
---

 Summary: Having query is failing for druid driver
 Key: LENS-1368
 URL: https://issues.apache.org/jira/browse/LENS-1368
 Project: Apache Lens
  Issue Type: Bug
Reporter: Archana H
Assignee: Rajitha R






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


[jira] [Created] (LENS-1367) Order by queries are failing for druid driver

2016-10-25 Thread Archana H (JIRA)
Archana H created LENS-1367:
---

 Summary: Order by queries are failing for druid driver 
 Key: LENS-1367
 URL: https://issues.apache.org/jira/browse/LENS-1367
 Project: Apache Lens
  Issue Type: Bug
  Components: driver-jdbc
Reporter: Archana H
Assignee: Rajitha R


10 Oct 2016 09:53:48 [d16ec217-620a-44da-8f42-55a2df1a2483] 
[lens-driver-jdbc-10] ERROR org.apache.lens.driver.jdbc.JDBCDriver - Error 
executing SQL query: d16ec217-620a-44da-8f42-55a2df1a2483 reason: Something 
broke
java.sql.SQLException: Something broke
at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:695) 
~[mysql-connector-java-6.0.2.jar:6.0.2]
at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:663) 
~[mysql-connector-java-6.0.2.jar:6.0.2]
at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:653) 
~[mysql-connector-java-6.0.2.jar:6.0.2]
at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:108)
 ~[mysql-connector-java-6.0.2.jar:6.0.2]
at com.mysql.cj.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2061) 
~[mysql-connector-java-6.0.2.jar:6.0.2]
at com.mysql.cj.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2014) 
~[mysql-connector-java-6.0.2.jar:6.0.2]
at 
com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:886) 
~[mysql-connector-java-6.0.2.jar:6.0.2]
at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:785) 
~[mysql-connector-java-6.0.2.jar:6.0.2]
at 
com.mchange.v2.c3p0.impl.NewProxyStatement.execute(NewProxyStatement.java:223) 
~[c3p0-0.9.5.jar:0.9.5]
at 
org.apache.lens.driver.jdbc.JDBCDriver$QueryCallable.call(JDBCDriver.java:291) 
[lens-driver-jdbc-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.driver.jdbc.JDBCDriver$QueryCallable.call(JDBCDriver.java:249) 
[lens-driver-jdbc-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
[na:1.8.0_40]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[na:1.8.0_40]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[na:1.8.0_40]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]



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


[jira] [Updated] (LENS-1250) Error while initializing saved query service on server start

2016-10-24 Thread Archana H (JIRA)

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

Archana H updated LENS-1250:

Assignee: (was: Rajat Khandelwal)

> Error while initializing saved query service on server start
> 
>
> Key: LENS-1250
> URL: https://issues.apache.org/jira/browse/LENS-1250
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Archana H
> Fix For: 2.6
>
> Attachments: LENS-1250.2016-08-02_14:55:02.patch
>
>
> Error:
> {CODE}
> java.lang.RuntimeException: Cannot initialize saved query service
> at 
> org.apache.lens.server.query.save.SavedQueryServiceImpl.init(SavedQueryServiceImpl.java:75)
>  ~[classes/:na]
> at 
> org.apache.hive.service.CompositeService.init(CompositeService.java:59) 
> ~[hive-service-2.1.3-inm-SNAPSHOT.jar:2.1.3-inm-SNAPSHOT]
> at org.apache.lens.server.LensServices.init(LensServices.java:252) 
> ~[classes/:na]
> at 
> org.apache.lens.server.LensServer.startServices(LensServer.java:117) 
> ~[classes/:na]
> at org.apache.lens.server.LensServer.(LensServer.java:84) 
> ~[classes/:na]
> at 
> org.apache.lens.server.LensServer.createLensServer(LensServer.java:73) 
> ~[classes/:na]
> at org.apache.lens.server.LensServer.main(LensServer.java:173) 
> ~[classes/:na]
> Caused by: org.apache.lens.server.api.error.LensException: Error initializing 
> saved query dao
> at 
> org.apache.lens.server.query.save.SavedQueryDao.(SavedQueryDao.java:72) 
> ~[classes/:na]
> at 
> org.apache.lens.server.query.save.SavedQueryServiceImpl.init(SavedQueryServiceImpl.java:72)
>  ~[classes/:na]
> ... 6 common frames omitted
> Caused by: org.apache.lens.server.api.error.LensException: Cannot create 
> saved query table!
> at 
> org.apache.lens.server.query.save.SavedQueryDao.createSavedQueryTableIfNotExists(SavedQueryDao.java:85)
>  ~[classes/:na]
> at 
> org.apache.lens.server.query.save.SavedQueryDao.(SavedQueryDao.java:70) 
> ~[classes/:na]
> ... 7 common frames omitted
> Caused by: java.sql.SQLException: Incorrect table definition; there can be 
> only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE 
> clause Query: CREATE TABLE IF NOT EXISTS saved_query (id int(11) NOT NULL 
> AUTO_INCREMENT,name varchar(255) NOT NULL,description varchar(255) DEFAULT 
> NULL,query longtext,params_json longtext,created_at timestamp DEFAULT 
> CURRENT_TIMESTAMP,updated_at timestamp DEFAULT CURRENT_TIMESTAMP,  PRIMARY 
> KEY (id)) Parameters: []
> at 
> org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:363)
>  ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:490) 
> ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:420) 
> ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.lens.server.query.save.SavedQueryDao.createSavedQueryTableIfNotExists(SavedQueryDao.java:83)
>  ~[classes/:na]
> {CODE}



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


[jira] [Updated] (LENS-1250) Error while initializing saved query service on server start

2016-10-24 Thread Archana H (JIRA)

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

Archana H updated LENS-1250:

Assignee: Rajat Khandelwal

> Error while initializing saved query service on server start
> 
>
> Key: LENS-1250
> URL: https://issues.apache.org/jira/browse/LENS-1250
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Archana H
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1250.2016-08-02_14:55:02.patch
>
>
> Error:
> {CODE}
> java.lang.RuntimeException: Cannot initialize saved query service
> at 
> org.apache.lens.server.query.save.SavedQueryServiceImpl.init(SavedQueryServiceImpl.java:75)
>  ~[classes/:na]
> at 
> org.apache.hive.service.CompositeService.init(CompositeService.java:59) 
> ~[hive-service-2.1.3-inm-SNAPSHOT.jar:2.1.3-inm-SNAPSHOT]
> at org.apache.lens.server.LensServices.init(LensServices.java:252) 
> ~[classes/:na]
> at 
> org.apache.lens.server.LensServer.startServices(LensServer.java:117) 
> ~[classes/:na]
> at org.apache.lens.server.LensServer.(LensServer.java:84) 
> ~[classes/:na]
> at 
> org.apache.lens.server.LensServer.createLensServer(LensServer.java:73) 
> ~[classes/:na]
> at org.apache.lens.server.LensServer.main(LensServer.java:173) 
> ~[classes/:na]
> Caused by: org.apache.lens.server.api.error.LensException: Error initializing 
> saved query dao
> at 
> org.apache.lens.server.query.save.SavedQueryDao.(SavedQueryDao.java:72) 
> ~[classes/:na]
> at 
> org.apache.lens.server.query.save.SavedQueryServiceImpl.init(SavedQueryServiceImpl.java:72)
>  ~[classes/:na]
> ... 6 common frames omitted
> Caused by: org.apache.lens.server.api.error.LensException: Cannot create 
> saved query table!
> at 
> org.apache.lens.server.query.save.SavedQueryDao.createSavedQueryTableIfNotExists(SavedQueryDao.java:85)
>  ~[classes/:na]
> at 
> org.apache.lens.server.query.save.SavedQueryDao.(SavedQueryDao.java:70) 
> ~[classes/:na]
> ... 7 common frames omitted
> Caused by: java.sql.SQLException: Incorrect table definition; there can be 
> only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE 
> clause Query: CREATE TABLE IF NOT EXISTS saved_query (id int(11) NOT NULL 
> AUTO_INCREMENT,name varchar(255) NOT NULL,description varchar(255) DEFAULT 
> NULL,query longtext,params_json longtext,created_at timestamp DEFAULT 
> CURRENT_TIMESTAMP,updated_at timestamp DEFAULT CURRENT_TIMESTAMP,  PRIMARY 
> KEY (id)) Parameters: []
> at 
> org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:363)
>  ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:490) 
> ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:420) 
> ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.lens.server.query.save.SavedQueryDao.createSavedQueryTableIfNotExists(SavedQueryDao.java:83)
>  ~[classes/:na]
> {CODE}



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


[jira] [Created] (LENS-1366) create schema cli command to list all failures at the end

2016-10-24 Thread Archana H (JIRA)
Archana H created LENS-1366:
---

 Summary: create schema cli command to list all failures at the end
 Key: LENS-1366
 URL: https://issues.apache.org/jira/browse/LENS-1366
 Project: Apache Lens
  Issue Type: Improvement
Reporter: Archana H


Currently if any creation/updation fails it prints at the end of same section 
(cube/fact), instead its better to print at the end when all schema creation is 
done.



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


[jira] [Updated] (LENS-1364) CLI create schema command to handle xml syntax errors

2016-10-24 Thread Archana H (JIRA)

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

Archana H updated LENS-1364:

Summary: CLI create schema command to handle xml syntax errors  (was: CLI 
create schema to handle xml syntax errors)

> CLI create schema command to handle xml syntax errors
> -
>
> Key: LENS-1364
> URL: https://issues.apache.org/jira/browse/LENS-1364
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Archana H
>
> create schema --db test --path /tmp/schema
> Command failed Error Code: 500
> Error Message: Internal Server Error.: Database test already exists
> Successfully switched to test
> create storage --path /tmp/schema/storages/storage_1.xml
> failed
> Created storage storage_1



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


[jira] [Created] (LENS-1364) CLI create schema to handle xml syntax errors

2016-10-24 Thread Archana H (JIRA)
Archana H created LENS-1364:
---

 Summary: CLI create schema to handle xml syntax errors
 Key: LENS-1364
 URL: https://issues.apache.org/jira/browse/LENS-1364
 Project: Apache Lens
  Issue Type: Improvement
Reporter: Archana H


create schema --db test --path /tmp/schema
Command failed Error Code: 500
Error Message: Internal Server Error.: Database test already exists
Successfully switched to test
create storage --path /tmp/schema/storages/storage_1.xml
failed
Created storage storage_1




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


[jira] [Created] (LENS-1350) Result formatting is throwing NPE when the result from druid driver is empty

2016-10-05 Thread Archana H (JIRA)
Archana H created LENS-1350:
---

 Summary: Result formatting is throwing NPE when the result from 
druid driver is empty
 Key: LENS-1350
 URL: https://issues.apache.org/jira/browse/LENS-1350
 Project: Apache Lens
  Issue Type: Bug
  Components: driver-jdbc
Reporter: Archana H


Error:
{CODE}
05 Oct 2016 10:55:29 [3f290017-e51d-4183-8f89-0f3045cc52dc] 
[ResultFormatter_AsyncThread-7] INFO  
org.apache.lens.server.api.query.QueryContext - Registering driver resultset 
for query 3f290017-e51d-4183-8f89-0f3045cc52dc
05 Oct 2016 10:55:29 [3f290017-e51d-4183-8f89-0f3045cc52dc] 
[454e896f-65b0-4c9d-b282-190f00affccf grizzly-http-server-19] INFO  
org.apache.hadoop.hive.conf.HiveConf - Using the default value passed in for 
log id: 454e896f-65b0-4c9d-b282-190f00affccf
05 Oct 2016 10:55:29 [3f290017-e51d-4183-8f89-0f3045cc52dc] 
[454e896f-65b0-4c9d-b282-190f00affccf grizzly-http-server-19] INFO  
org.apache.lens.server.query.QueryExecutionServiceImpl - Updating status for 
3f290017-e51d-4183-8f89-0f3045cc52dc
05 Oct 2016 10:55:29 [3f290017-e51d-4183-8f89-0f3045cc52dc] 
[ResultFormatter_AsyncThread-7] ERROR org.apache.lens.driver.jdbc.JDBCResultSet 
- Error getting JDBC type information: null
java.lang.NullPointerException: null
at 
org.apache.lens.driver.jdbc.JDBCResultSet.getRsMetadata(JDBCResultSet.java:87) 
~[lens-driver-jdbc-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.driver.jdbc.JDBCResultSet.getMetadata(JDBCResultSet.java:112) 
~[lens-driver-jdbc-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.api.driver.PartiallyFetchedInMemoryResultSet.(PartiallyFetchedInMemoryResultSet.java:94)
 [lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.api.query.QueryContext.registerDriverResult(QueryContext.java:514)
 [lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.api.driver.AbstractLensDriver.fetchResultSet(AbstractLensDriver.java:69)
 [lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.query.QueryExecutionServiceImpl.getDriverResultset(QueryExecutionServiceImpl.java:1835)
 [classes/:na]
at 
org.apache.lens.server.query.ResultFormatter.formatOutput(ResultFormatter.java:91)
 [classes/:na]
at 
org.apache.lens.server.query.ResultFormatter.process(ResultFormatter.java:73) 
[classes/:na]
at 
org.apache.lens.server.query.ResultFormatter.process(ResultFormatter.java:43) 
[classes/:na]
at 
org.apache.lens.server.api.events.AsyncEventListener$1.run(AsyncEventListener.java:110)
 [lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[na:1.8.0_40]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[na:1.8.0_40]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
05 Oct 2016 10:55:29 [3f290017-e51d-4183-8f89-0f3045cc52dc] 
[ResultFormatter_AsyncThread-7] WARN  
org.apache.lens.server.query.ResultFormatter - Exception while formatting 
result for 3f290017-e51d-4183-8f89-0f3045cc52dc
java.lang.NullPointerException: null
at 
org.apache.lens.driver.jdbc.JDBCResultSet.hasNext(JDBCResultSet.java:306) 
~[lens-driver-jdbc-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.api.driver.PartiallyFetchedInMemoryResultSet.preFetchRows(PartiallyFetchedInMemoryResultSet.java:104)
 ~[lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.api.driver.PartiallyFetchedInMemoryResultSet.(PartiallyFetchedInMemoryResultSet.java:95)
 ~[lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.api.query.QueryContext.registerDriverResult(QueryContext.java:514)
 ~[lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.api.driver.AbstractLensDriver.fetchResultSet(AbstractLensDriver.java:69)
 ~[lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
org.apache.lens.server.query.QueryExecutionServiceImpl.getDriverResultset(QueryExecutionServiceImpl.java:1835)
 ~[classes/:na]
at 
org.apache.lens.server.query.ResultFormatter.formatOutput(ResultFormatter.java:91)
 [classes/:na]
at 
org.apache.lens.server.query.ResultFormatter.process(ResultFormatter.java:73) 
[classes/:na]
at 
org.apache.lens.server.query.ResultFormatter.process(ResultFormatter.java:43) 
[classes/:na]
at 
org.apache.lens.server.api.events.AsyncEventListener$1.run(AsyncEventListener.java:110)
 [lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
[na:1.8.0_40]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
[na:1.8.0_40]
at java.lang.Thread.run(Thread.java:745) 

[jira] [Commented] (LENS-1271) Regression tests for Saved Query and Scheduler feature

2016-10-04 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15544667#comment-15544667
 ] 

Archana H commented on LENS-1271:
-

committed myself

> Regression tests for Saved Query and Scheduler feature
> --
>
> Key: LENS-1271
> URL: https://issues.apache.org/jira/browse/LENS-1271
> Project: Apache Lens
>  Issue Type: Test
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.7
>
> Attachments: LENS-1271_5.patch
>
>




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


[jira] [Updated] (LENS-1271) Regression tests for Saved Query and Scheduler feature

2016-10-04 Thread Archana H (JIRA)

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

Archana H updated LENS-1271:

Fix Version/s: 2.7

> Regression tests for Saved Query and Scheduler feature
> --
>
> Key: LENS-1271
> URL: https://issues.apache.org/jira/browse/LENS-1271
> Project: Apache Lens
>  Issue Type: Test
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.7
>
> Attachments: LENS-1271_5.patch
>
>




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


[jira] [Updated] (LENS-1271) Regression tests for Saved Query and Scheduler feature

2016-10-04 Thread Archana H (JIRA)

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

Archana H updated LENS-1271:

Resolution: Fixed
Status: Resolved  (was: Patch Available)

> Regression tests for Saved Query and Scheduler feature
> --
>
> Key: LENS-1271
> URL: https://issues.apache.org/jira/browse/LENS-1271
> Project: Apache Lens
>  Issue Type: Test
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.7
>
> Attachments: LENS-1271_5.patch
>
>




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


[jira] [Updated] (LENS-1271) Regression tests for Saved Query and Scheduler feature

2016-10-03 Thread Archana H (JIRA)

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

Archana H updated LENS-1271:

Status: Patch Available  (was: Open)

> Regression tests for Saved Query and Scheduler feature
> --
>
> Key: LENS-1271
> URL: https://issues.apache.org/jira/browse/LENS-1271
> Project: Apache Lens
>  Issue Type: Test
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Attachments: LENS-1271_5.patch
>
>




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


[jira] [Updated] (LENS-1271) Regression tests for Saved Query and Scheduler feature

2016-10-03 Thread Archana H (JIRA)

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

Archana H updated LENS-1271:

Status: Open  (was: Patch Available)

> Regression tests for Saved Query and Scheduler feature
> --
>
> Key: LENS-1271
> URL: https://issues.apache.org/jira/browse/LENS-1271
> Project: Apache Lens
>  Issue Type: Test
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Attachments: LENS-1271_5.patch
>
>




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


[jira] [Updated] (LENS-1271) Regression tests for Saved Query and Scheduler feature

2016-10-03 Thread Archana H (JIRA)

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

Archana H updated LENS-1271:

Status: Patch Available  (was: Open)

> Regression tests for Saved Query and Scheduler feature
> --
>
> Key: LENS-1271
> URL: https://issues.apache.org/jira/browse/LENS-1271
> Project: Apache Lens
>  Issue Type: Test
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Attachments: LENS-1271_5.patch
>
>




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


[jira] [Updated] (LENS-1271) Regression tests for Saved Query and Scheduler feature

2016-10-03 Thread Archana H (JIRA)

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

Archana H updated LENS-1271:

Attachment: LENS-1271_5.patch

> Regression tests for Saved Query and Scheduler feature
> --
>
> Key: LENS-1271
> URL: https://issues.apache.org/jira/browse/LENS-1271
> Project: Apache Lens
>  Issue Type: Test
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
> Attachments: LENS-1271_5.patch
>
>




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


[jira] [Created] (LENS-1341) UnmarshalException while reading response of saved query getParameters() call

2016-09-28 Thread Archana H (JIRA)
Archana H created LENS-1341:
---

 Summary: UnmarshalException while reading response of saved query 
getParameters() call
 Key: LENS-1341
 URL: https://issues.apache.org/jira/browse/LENS-1341
 Project: Apache Lens
  Issue Type: Bug
Reporter: Archana H


POST call on "/queryapi/savedqueries/parameters" will throw UnmarshalException 
while reading response, as it expects all members of Parameter object to be non 
null where as in this case only name is getting initialized.



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


[jira] [Updated] (LENS-1331) Remove protobuf dependency from lens

2016-09-21 Thread Archana H (JIRA)

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

Archana H updated LENS-1331:

Resolution: Fixed
Status: Resolved  (was: Patch Available)

committed myself. 

> Remove protobuf dependency from lens
> 
>
> Key: LENS-1331
> URL: https://issues.apache.org/jira/browse/LENS-1331
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build
>Affects Versions: 2.6
>Reporter: Puneet Gupta
>Assignee: Archana H
>Priority: Blocker
> Fix For: 2.6
>
> Attachments: LENS-1331.patch
>
>
> protobuf is not required to be bundled 
> {noformat}
>   
> com.google.protobuf
> protobuf-java
> ${protobuf.version}
>   
> {noformat}



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


[jira] [Updated] (LENS-1331) Remove protobuf dependency from lens

2016-09-21 Thread Archana H (JIRA)

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

Archana H updated LENS-1331:

Status: Patch Available  (was: In Progress)

> Remove protobuf dependency from lens
> 
>
> Key: LENS-1331
> URL: https://issues.apache.org/jira/browse/LENS-1331
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build
>Affects Versions: 2.6
>Reporter: Puneet Gupta
>Assignee: Archana H
>Priority: Blocker
> Fix For: 2.6
>
> Attachments: LENS-1331.patch
>
>
> protobuf is not required to be bundled 
> {noformat}
>   
> com.google.protobuf
> protobuf-java
> ${protobuf.version}
>   
> {noformat}



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


[jira] [Closed] (LENS-1313) Verify Lens 2.6 issues

2016-09-21 Thread Archana H (JIRA)

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

Archana H closed LENS-1313.
---

> Verify Lens 2.6 issues
> --
>
> Key: LENS-1313
> URL: https://issues.apache.org/jira/browse/LENS-1313
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Reporter: Puneet Gupta
>Assignee: Archana H
> Fix For: 2.6
>
>




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


[jira] [Resolved] (LENS-1313) Verify Lens 2.6 issues

2016-09-21 Thread Archana H (JIRA)

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

Archana H resolved LENS-1313.
-
Resolution: Fixed

> Verify Lens 2.6 issues
> --
>
> Key: LENS-1313
> URL: https://issues.apache.org/jira/browse/LENS-1313
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Reporter: Puneet Gupta
>Assignee: Archana H
> Fix For: 2.6
>
>




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


[jira] [Commented] (LENS-1313) Verify Lens 2.6 issues

2016-09-21 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15509355#comment-15509355
 ] 

Archana H commented on LENS-1313:
-

Have verified all the issues which is tagged with 2.6 version and closed the 
jiras after the verification is done.

> Verify Lens 2.6 issues
> --
>
> Key: LENS-1313
> URL: https://issues.apache.org/jira/browse/LENS-1313
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Reporter: Puneet Gupta
>Assignee: Archana H
> Fix For: 2.6
>
>




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


[jira] [Work started] (LENS-1331) Remove protobuf dependency from lens

2016-09-21 Thread Archana H (JIRA)

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

Work on LENS-1331 started by Archana H.
---
> Remove protobuf dependency from lens
> 
>
> Key: LENS-1331
> URL: https://issues.apache.org/jira/browse/LENS-1331
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build
>Affects Versions: 2.6
>Reporter: Puneet Gupta
>Assignee: Archana H
>Priority: Blocker
> Fix For: 2.6
>
> Attachments: LENS-1331.patch
>
>
> protobuf is not required to be bundled 
> {noformat}
>   
> com.google.protobuf
> protobuf-java
> ${protobuf.version}
>   
> {noformat}



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


[jira] [Updated] (LENS-1331) Remove protobuf dependency from lens

2016-09-21 Thread Archana H (JIRA)

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

Archana H updated LENS-1331:

Attachment: LENS-1331.patch

> Remove protobuf dependency from lens
> 
>
> Key: LENS-1331
> URL: https://issues.apache.org/jira/browse/LENS-1331
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build
>Affects Versions: 2.6
>Reporter: Puneet Gupta
>Assignee: Archana H
>Priority: Blocker
> Fix For: 2.6
>
> Attachments: LENS-1331.patch
>
>
> protobuf is not required to be bundled 
> {noformat}
>   
> com.google.protobuf
> protobuf-java
> ${protobuf.version}
>   
> {noformat}



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


[jira] [Commented] (LENS-1331) Remove protobuf dependency from lens

2016-09-21 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15508976#comment-15508976
 ] 

Archana H commented on LENS-1331:
-

Small patch, attaching directly here.

> Remove protobuf dependency from lens
> 
>
> Key: LENS-1331
> URL: https://issues.apache.org/jira/browse/LENS-1331
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build
>Affects Versions: 2.6
>Reporter: Puneet Gupta
>Assignee: Archana H
>Priority: Blocker
> Fix For: 2.6
>
> Attachments: LENS-1331.patch
>
>
> protobuf is not required to be bundled 
> {noformat}
>   
> com.google.protobuf
> protobuf-java
> ${protobuf.version}
>   
> {noformat}



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


[jira] [Updated] (LENS-1313) Verify Lens 2.6 issues

2016-09-09 Thread Archana H (JIRA)

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

Archana H updated LENS-1313:

Fix Version/s: 2.6

> Verify Lens 2.6 issues
> --
>
> Key: LENS-1313
> URL: https://issues.apache.org/jira/browse/LENS-1313
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Reporter: Puneet Gupta
>Assignee: Archana H
> Fix For: 2.6
>
>




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


[jira] [Closed] (LENS-1197) Wrong return type mentioned in REST api doc for "get" call on "/metastore/cubes/{cubeName}/facts"

2016-09-09 Thread Archana H (JIRA)

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

Archana H closed LENS-1197.
---

> Wrong return type mentioned in REST api doc for "get" call on 
> "/metastore/cubes/{cubeName}/facts" 
> --
>
> Key: LENS-1197
> URL: https://issues.apache.org/jira/browse/LENS-1197
> Project: Apache Lens
>  Issue Type: Bug
>  Components: api, docs
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.6
>
> Attachments: LENS-1197.patch
>
>
> "get" on "/metastore/cubes/{cubeName}/facts"
> Actual : stringList of fact names
> 
> 
>3rdpartyenrichmentsummary1
>agg1_demand_fact
> 
> In doc: List of XFactTable objects



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


[jira] [Commented] (LENS-1271) Regression tests for Saved Query and Scheduler feature

2016-09-06 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15467429#comment-15467429
 ] 

Archana H commented on LENS-1271:
-

RB entry : https://reviews.apache.org/r/51652/

> Regression tests for Saved Query and Scheduler feature
> --
>
> Key: LENS-1271
> URL: https://issues.apache.org/jira/browse/LENS-1271
> Project: Apache Lens
>  Issue Type: Test
>  Components: regression
>Reporter: Archana H
>Assignee: Archana H
>




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


[jira] [Updated] (LENS-1197) Wrong return type mentioned in REST api doc for "get" call on "/metastore/cubes/{cubeName}/facts"

2016-09-06 Thread Archana H (JIRA)

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

Archana H updated LENS-1197:

Status: Patch Available  (was: Open)

> Wrong return type mentioned in REST api doc for "get" call on 
> "/metastore/cubes/{cubeName}/facts" 
> --
>
> Key: LENS-1197
> URL: https://issues.apache.org/jira/browse/LENS-1197
> Project: Apache Lens
>  Issue Type: Bug
>  Components: api, docs
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.6
>
> Attachments: LENS-1197.patch
>
>
> "get" on "/metastore/cubes/{cubeName}/facts"
> Actual : stringList of fact names
> 
> 
>3rdpartyenrichmentsummary1
>agg1_demand_fact
> 
> In doc: List of XFactTable objects



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


[jira] [Updated] (LENS-1197) Wrong return type mentioned in REST api doc for "get" call on "/metastore/cubes/{cubeName}/facts"

2016-09-06 Thread Archana H (JIRA)

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

Archana H updated LENS-1197:

Attachment: LENS-1197.patch

> Wrong return type mentioned in REST api doc for "get" call on 
> "/metastore/cubes/{cubeName}/facts" 
> --
>
> Key: LENS-1197
> URL: https://issues.apache.org/jira/browse/LENS-1197
> Project: Apache Lens
>  Issue Type: Bug
>  Components: api, docs
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.6
>
> Attachments: LENS-1197.patch
>
>
> "get" on "/metastore/cubes/{cubeName}/facts"
> Actual : stringList of fact names
> 
> 
>3rdpartyenrichmentsummary1
>agg1_demand_fact
> 
> In doc: List of XFactTable objects



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


[jira] [Closed] (LENS-975) Add cube-segmentation specification

2016-09-06 Thread Archana H (JIRA)

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

Archana H closed LENS-975.
--

> Add cube-segmentation specification
> ---
>
> Key: LENS-975
> URL: https://issues.apache.org/jira/browse/LENS-975
> Project: Apache Lens
>  Issue Type: Task
>  Components: cube
>Reporter: Sushil Mohanty
>Assignee: Sushil Mohanty
> Fix For: 2.6
>
> Attachments: LENS-975-5.patch
>
>
> Cube segmentation will have
> - Attributes like name, base_cube it belongs to, weight to compare with other 
> segmentation or cubefact tables , properties , child cubes it comprised of.
> - Support CRUD operations.



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


[jira] [Closed] (LENS-1187) Refactor exception handling in MetastoreResource

2016-09-06 Thread Archana H (JIRA)

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

Archana H closed LENS-1187.
---

> Refactor exception handling in MetastoreResource
> 
>
> Key: LENS-1187
> URL: https://issues.apache.org/jira/browse/LENS-1187
> Project: Apache Lens
>  Issue Type: Sub-task
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1187.04.patch, LENS-1187.06.patch, 
> LENS-1187.07.patch, LENS-1187.09.patch, LENS-1187.10.patch, LENS-1187.11.patch
>
>




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


[jira] [Closed] (LENS-614) Support single columns as expressions - more like alias

2016-09-02 Thread Archana H (JIRA)

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

Archana H closed LENS-614.
--

> Support single columns as expressions - more like alias
> ---
>
> Key: LENS-614
> URL: https://issues.apache.org/jira/browse/LENS-614
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: cube
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-614.2.patch, LENS-614.3.patch
>
>
> Right now seeing issues with single column expressions.
> It is not putting aggregate around if the column is an expression. Also not 
> replacing alias correctly if an alias is passed.



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


[jira] [Commented] (LENS-614) Support single columns as expressions - more like alias

2016-09-02 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15458397#comment-15458397
 ] 

Archana H commented on LENS-614:


new expression:

  


cube select product_id, store_sales_expr from sales where 
time_range_in(order_time, '2015-04-11-00', '2015-04-13-00')

Final rewritten query for driver: jdbc/jdbc1 is: SELECT (sales.product_id), 
sum((sales.store_sales)) FROM exp_yoda.mydb_sales_aggr_fact2 sales WHERE 
(((sales.order_time) between '2015-04-11 00:00:00' and '2015-04-12 00:00:00')) 
GROUP BY (sales.product_id)


> Support single columns as expressions - more like alias
> ---
>
> Key: LENS-614
> URL: https://issues.apache.org/jira/browse/LENS-614
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: cube
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-614.2.patch, LENS-614.3.patch
>
>
> Right now seeing issues with single column expressions.
> It is not putting aggregate around if the column is an expression. Also not 
> replacing alias correctly if an alias is passed.



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


[jira] [Commented] (LENS-1140) Merging session jar with DB resources fails if session jar is in HDFS

2016-09-02 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15458321#comment-15458321
 ] 

Archana H commented on LENS-1140:
-

Reopening this as issue still persists.

> Merging session jar with DB resources fails if session jar is in HDFS
> -
>
> Key: LENS-1140
> URL: https://issues.apache.org/jira/browse/LENS-1140
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Attachments: LENS-1140.2.patch
>
>
> Scenario :
> DB db1 has DB resources.
> User does the following :
> {code}
> use db1
> add jar hdfs://myhdfs/tmp/mynew.jar
> {code}
> Server fails to add it to classpath. Here is the server log :
> {noformat}
> org.apache.lens.server.AuthenticationFilter - Request from user: null , 
> path=session/resources/add
> lensserver.log.2016-05-05.178:05 May 2016 11:01:41 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> org.apache.hive.service.cli.operation.Operation - Putting temp output to file 
> /tmp/lens/946c79fc-7dea-44e3-8b96-44e4a3acf4897870923792886226589.pipeout
> lensserver.log.2016-05-05.178:05 May 2016 11:01:41 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - converting to local hdfs://myhdfs/tmp/mynew.jar
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - Added 
> /tmp/946c79fc-7dea-44e3-8b96-44e4a3acf489_resources/mynew.jar to class path
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - Added resource: 
> /tmp/946c79fc-7dea-44e3-8b96-44e4a3acf489_resources/mynew.jar
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] ERROR 
> org.apache.lens.server.session.DatabaseResourceService - Invalid URL 
> hdfs://myhdfs/tmp/mynew.jar adding to db db1
> {noformat}



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


[jira] [Updated] (LENS-1140) Merging session jar with DB resources fails if session jar is in HDFS

2016-09-02 Thread Archana H (JIRA)

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

Archana H updated LENS-1140:

Fix Version/s: (was: 2.6)

> Merging session jar with DB resources fails if session jar is in HDFS
> -
>
> Key: LENS-1140
> URL: https://issues.apache.org/jira/browse/LENS-1140
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Attachments: LENS-1140.2.patch
>
>
> Scenario :
> DB db1 has DB resources.
> User does the following :
> {code}
> use db1
> add jar hdfs://myhdfs/tmp/mynew.jar
> {code}
> Server fails to add it to classpath. Here is the server log :
> {noformat}
> org.apache.lens.server.AuthenticationFilter - Request from user: null , 
> path=session/resources/add
> lensserver.log.2016-05-05.178:05 May 2016 11:01:41 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> org.apache.hive.service.cli.operation.Operation - Putting temp output to file 
> /tmp/lens/946c79fc-7dea-44e3-8b96-44e4a3acf4897870923792886226589.pipeout
> lensserver.log.2016-05-05.178:05 May 2016 11:01:41 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - converting to local hdfs://myhdfs/tmp/mynew.jar
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - Added 
> /tmp/946c79fc-7dea-44e3-8b96-44e4a3acf489_resources/mynew.jar to class path
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - Added resource: 
> /tmp/946c79fc-7dea-44e3-8b96-44e4a3acf489_resources/mynew.jar
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] ERROR 
> org.apache.lens.server.session.DatabaseResourceService - Invalid URL 
> hdfs://myhdfs/tmp/mynew.jar adding to db db1
> {noformat}



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


[jira] [Reopened] (LENS-1140) Merging session jar with DB resources fails if session jar is in HDFS

2016-09-02 Thread Archana H (JIRA)

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

Archana H reopened LENS-1140:
-

> Merging session jar with DB resources fails if session jar is in HDFS
> -
>
> Key: LENS-1140
> URL: https://issues.apache.org/jira/browse/LENS-1140
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Attachments: LENS-1140.2.patch
>
>
> Scenario :
> DB db1 has DB resources.
> User does the following :
> {code}
> use db1
> add jar hdfs://myhdfs/tmp/mynew.jar
> {code}
> Server fails to add it to classpath. Here is the server log :
> {noformat}
> org.apache.lens.server.AuthenticationFilter - Request from user: null , 
> path=session/resources/add
> lensserver.log.2016-05-05.178:05 May 2016 11:01:41 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> org.apache.hive.service.cli.operation.Operation - Putting temp output to file 
> /tmp/lens/946c79fc-7dea-44e3-8b96-44e4a3acf4897870923792886226589.pipeout
> lensserver.log.2016-05-05.178:05 May 2016 11:01:41 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - converting to local hdfs://myhdfs/tmp/mynew.jar
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - Added 
> /tmp/946c79fc-7dea-44e3-8b96-44e4a3acf489_resources/mynew.jar to class path
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  
> SessionState - Added resource: 
> /tmp/946c79fc-7dea-44e3-8b96-44e4a3acf489_resources/mynew.jar
> lensserver.log.2016-05-05.178:05 May 2016 11:01:52 
> [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] ERROR 
> org.apache.lens.server.session.DatabaseResourceService - Invalid URL 
> hdfs://myhdfs/tmp/mynew.jar adding to db db1
> {noformat}



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


[jira] [Commented] (LENS-1140) Merging session jar with DB resources fails if session jar is in HDFS

2016-09-02 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-1140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15458319#comment-15458319
 ] 

Archana H commented on LENS-1140:
-

lens-shell>add jar --path hdfs://host:8020//tmp/hiveudftest.jar
Add resource succeeded

But in logs its giving following error
{CODE}
02 Sep 2016 11:56:35 [4e45e1f7-0169-4e58-923f-50f42a3c4291] 
[8656e965-fa93-4caa-b2b4-bc06f37e1502 grizzly-http-server-5] ERROR 
org.apache.lens.server.session.LensSessionImpl - Invalid URL 
hdfs://192.168.138.252:8020/tmp/hiveudftest.jar with location: 
/tmp/8656e965-fa93-4caa-b2b4-bc06f37e1502_resources/hiveudftest.jar adding to 
db exp_yoda
java.net.MalformedURLException: no protocol: 
/tmp/8656e965-fa93-4caa-b2b4-bc06f37e1502_resources/hiveudftest.jar
at java.net.URL.(URL.java:586) ~[na:1.8.0_40]
at java.net.URL.(URL.java:483) ~[na:1.8.0_40]
at java.net.URL.(URL.java:432) ~[na:1.8.0_40]
at 
org.apache.lens.server.session.LensSessionImpl.addResourceToClassLoader(LensSessionImpl.java:390)
 [classes/:na]
at 
org.apache.lens.server.session.LensSessionImpl.addResourceToAllSessionClassLoaders(LensSessionImpl.java:400)
 [classes/:na]
at 
org.apache.lens.server.session.LensSessionImpl.addResource(LensSessionImpl.java:326)
 [classes/:na]
at 
org.apache.lens.server.session.HiveSessionService.addResource(HiveSessionService.java:119)
 [classes/:na]
at 
org.apache.lens.server.session.SessionResource.addResource(SessionResource.java:146)
 [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_40]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_40]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_40]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_40]
at 
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) 
[jersey-server-2.22.1.jar:na]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) 
[jersey-common-2.22.1.jar:na]
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) 
[jersey-common-2.22.1.jar:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:315) 
[jersey-common-2.22.1.jar:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:297) 
[jersey-common-2.22.1.jar:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:267) 
[jersey-common-2.22.1.jar:na]
at 
org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
 [jersey-common-2.22.1.jar:na]
at 
org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) 
[jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
 [jersey-server-2.22.1.jar:na]
at 
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)
 [jersey-container-grizzly2-http-2.22.1.jar:na]
at 
org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) 
[grizzly-http-server-2.3.23.jar:2.3.23]
at 
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
 [grizzly-framework-2.3.23.jar:2.3.23]
at 
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
 [grizzly-framework-2.3.23.jar:2.3.23]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
{CODE}

> Merging session jar with DB resources fails if session 

[jira] [Closed] (LENS-825) Result formatting failure should not be INTERNAL_SERVER_ERROR

2016-09-02 Thread Archana H (JIRA)

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

Archana H closed LENS-825.
--

> Result formatting failure should not be INTERNAL_SERVER_ERROR
> -
>
> Key: LENS-825
> URL: https://issues.apache.org/jira/browse/LENS-825
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-825.2.patch
>
>
> We have seen the following :
> {noformat}
> 15 Oct 2015 04:23:25 [13eb7ad2-b204-4d94-9c7c-8aa69caa1014] 
> [event_processor_thread] WARN  org.apache.lens.server.query.ResultFormatter - 
> Exception while formatting result for 13eb7ad2-b204-4d94-9c7c-8aa69caa1014
> org.apache.lens.server.api.error.LensException: INTERNAL_SERVER_ERROR
> at 
> org.apache.lens.driver.jdbc.JDBCResultSet.next(JDBCResultSet.java:293) 
> ~[lens-driver-jdbc-2.4.1-inm-breakfix2.jar:2.4.1-inm-breakfix2]
> at 
> org.apache.lens.server.query.ResultFormatter.formatOutput(ResultFormatter.java:120)
>  [classes/:na]
> at 
> org.apache.lens.server.query.ResultFormatter.process(ResultFormatter.java:68) 
> [classes/:na]
> at 
> org.apache.lens.server.query.ResultFormatter.process(ResultFormatter.java:43) 
> [classes/:na]
> at 
> org.apache.lens.server.api.events.AsyncEventListener$2.run(AsyncEventListener.java:101)
>  [lens-server-api-2.4.1-inm-breakfix2.jar:2.4.1-inm-breakfix2]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  [na:1.7.0_67]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  [na:1.7.0_67]
> at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
> Caused by: java.sql.SQLException:
> {noformat}



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


[jira] [Closed] (LENS-788) Option to do flattening of columns on bridge tables later

2016-09-02 Thread Archana H (JIRA)

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

Archana H closed LENS-788.
--

> Option to do flattening of columns on bridge tables later
> -
>
> Key: LENS-788
> URL: https://issues.apache.org/jira/browse/LENS-788
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: cube
>Affects Versions: 2.4
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-788.4.patch
>
>
> With support to flatten (aggregate) columns from bridge table joins added in 
> LENS-752, this is enhancement to apply aggregate later to applying filters or 
> expression over the columns.
> For ex :
> With schema example given LENS-752, if user queries revenue with a filter :
> cube select usersport.name, revenue where time_range_in(dt,x,y) and 
> usersport.name in ('Cricket').
> The query should have an option to apply filter before aggregate or not.
> Similarly :
> cube select (case when usersport.name='cricket' then 'CKT' when 
> usersport.name='football' then 'FB' else 'NA' end), revenue where 
> time_range_in(dt,x,y).
> The query should have option to apply expression before aggregate or not.



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


[jira] [Closed] (LENS-771) Multiple chain ref columns having subset chains are not pruned properly

2016-09-02 Thread Archana H (JIRA)

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

Archana H closed LENS-771.
--

> Multiple chain ref columns having subset chains are not pruned properly
> ---
>
> Key: LENS-771
> URL: https://issues.apache.org/jira/browse/LENS-771
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Affects Versions: 2.3
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-771-test.patch, LENS-771.2.patch, LENS-771.patch
>
>
> While debugging LENS-756, i saw this issue and the fix does not seem 
> straightforward.
> The issue is the following :
> If reference column have multiple chains and one of the chain is a subset of 
> the other,
> For ex :
> 
> display_string="Customer City">
>   
> 
>  ref_col="customer_city_name" />
>   
> 
> 



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


[jira] [Closed] (LENS-957) Lens CLI to throw exact caused exception instead of showing generic Lens error

2016-09-02 Thread Archana H (JIRA)

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

Archana H closed LENS-957.
--

> Lens CLI to throw exact caused exception instead of showing generic Lens error
> --
>
> Key: LENS-957
> URL: https://issues.apache.org/jira/browse/LENS-957
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Archana H
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-957.4.patch
>
>
> CLI error:
> Command failed 
> org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: 
> MessageBodyReader not found for media type=text/html; charset=ISO-8859-1, 
> type=class org.apache.lens.api.result.LensAPIResult, genericType=class 
> org.apache.lens.api.result.LensAPIResult.
> Error:
> {CODE}
> ERROR org.apache.lens.server.LensRequestListener - Encountered HTTP exception
> org.glassfish.jersey.server.internal.process.MappableException: 
> java.util.MissingFormatArgumentException: Format specifier '%s'
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.mapTargetToRuntimeEx(AbstractJavaResourceMethodDispatcher.java:190)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.access$200(AbstractJavaResourceMethodDispatcher.java:74)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:160)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:353)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:343)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
>  ~[jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255) 
> ~[jersey-server-2.3.1.jar:na]
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) 
> [jersey-common-2.3.1.jar:na]
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) 
> [jersey-common-2.3.1.jar:na]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:315) 
> [jersey-common-2.3.1.jar:na]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:297) 
> [jersey-common-2.3.1.jar:na]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:267) 
> [jersey-common-2.3.1.jar:na]
> at 
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
>  [jersey-common-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235) 
> [jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983)
>  [jersey-server-2.3.1.jar:na]
> at 
> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:330)
>  [jersey-container-grizzly2-http-2.3.1.jar:na]
> at 
> org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:212) 
> [grizzly-http-server-2.3.6.jar:2.3.6]
> at 
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
>  [grizzly-framework-2.3.6.jar:2.3.6]
> at 
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
>  [grizzly-framework-2.3.6.jar:2.3.6]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
> Caused by: java.util.MissingFormatArgumentException: Format specifier '%s'
> at java.util.Formatter.format(Formatter.java:2519) ~[na:1.8.0_40]
> at java.util.Formatter.format(Formatter.java:2455) ~[na:1.8.0_40]
> at java.lang.String.format(String.java:2928) ~[na:1.8.0_40]
> at 
> org.apache.lens.api.error.LensError.getFormattedErrorMsg(LensError.java:61) 
> ~[lens-api-2.5.3-inm-SNAPSHOT.jar:2.5.3-inm-SNAPSHOT]
> {CODE}



--
This message was sent by Atlassian 

[jira] [Created] (LENS-1305) Literals with double spaces are getting trimmed when queried from CLI

2016-09-01 Thread Archana H (JIRA)
Archana H created LENS-1305:
---

 Summary: Literals with double spaces are getting trimmed when 
queried from CLI
 Key: LENS-1305
 URL: https://issues.apache.org/jira/browse/LENS-1305
 Project: Apache Lens
  Issue Type: Bug
Reporter: Archana H


User Query : cube select id,name from sample_db_dim where name != 'fir  st'

Final rewritten query for driver: jdbc/jdbc1 is: 
SELECT (sample_db_dim.id), (sample_db_dim.name) FROM exp_yoda.mydb_dim_table3 
sample_db_dim WHERE sample_db_dim.name) != 'fir st')))



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


[jira] [Closed] (LENS-1033) Literals with double spaces are losing spaces in HQLParser

2016-09-01 Thread Archana H (JIRA)

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

Archana H closed LENS-1033.
---

> Literals with double spaces are losing spaces in HQLParser
> --
>
> Key: LENS-1033
> URL: https://issues.apache.org/jira/browse/LENS-1033
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-1033.1.patch
>
>
> Literals with more spaces in where clauses (the filter values) are losing 
> spaces, which are resulting in wrong report outputs



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


[jira] [Closed] (LENS-950) Bridge table join should ignore join type config

2016-09-01 Thread Archana H (JIRA)

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

Archana H closed LENS-950.
--

> Bridge table join should ignore join type config
> 
>
> Key: LENS-950
> URL: https://issues.apache.org/jira/browse/LENS-950
> Project: Apache Lens
>  Issue Type: Improvement
>Affects Versions: 2.5
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-950.patch
>
>
> Right now, if user specifies join type config to be left outer join or right 
> outer join, the bridge table joins( i.e. join between dimension tables) 
> should discard this, as bridge table join should be alway inner join. 



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


[jira] [Closed] (LENS-853) Quitting shell(quitshell()) is not closing session some times.

2016-09-01 Thread Archana H (JIRA)

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

Archana H closed LENS-853.
--

> Quitting shell(quitshell()) is not closing session some times.
> --
>
> Key: LENS-853
> URL: https://issues.apache.org/jira/browse/LENS-853
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client
>Reporter: Raju Bairishetti
>Assignee: Raju Bairishetti
>  Labels: newbie
> Fix For: 2.6
>
> Attachments: LENS-853.patch, LENS-853_01.patch
>
>
> Quitting session through programmatically is not closing the session some 
> times. 
> First it checks whether connection to server is active or not to close the 
> session. It is depending on isConnectionActive variable to check the 
> connection is active or not. Right now we are setting isConnectionActive to 
> true only  if user calls  getClient(). isConnectionActive should be set to 
> true when user calls setClient(client). 
> code snippets:
> 
> {code}
>   public LensClient getClient() {
> if (lensClient == null) {
>   setClient(getClientWrapper().getClient());
>   isConnectionActive = true;
> }
> return lensClient;
>   }
> {code}
> {code}
> protected static synchronized void closeClientConnection() {
> if (isConnectionActive) {
>   log.debug("Request for stopping lens cli received");
>   getClientWrapper().getClient().closeConnection();
>   isConnectionActive = false;
> }
>   }
> {code}



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


[jira] [Closed] (LENS-952) Bump up enunciate version to work with java 8

2016-09-01 Thread Archana H (JIRA)

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

Archana H closed LENS-952.
--

> Bump up enunciate version to work with java 8
> -
>
> Key: LENS-952
> URL: https://issues.apache.org/jira/browse/LENS-952
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: build
>Reporter: Amareshwari Sriramadasu
>Assignee: Deepak Barr
> Fix For: 2.6
>
> Attachments: LENS-952.2.patch, LENS-952.3.patch
>
>
> We are depending on 1.28 version of enunciate, which does not work on java 8. 
> We should move to latest version to work fine with java8.



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


[jira] [Updated] (LENS-290) Add doc/run book for failures of lens REST api

2016-09-01 Thread Archana H (JIRA)

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

Archana H updated LENS-290:
---
Fix Version/s: (was: 2.6)

> Add doc/run book for failures of lens REST api
> --
>
> Key: LENS-290
> URL: https://issues.apache.org/jira/browse/LENS-290
> Project: Apache Lens
>  Issue Type: Task
>  Components: docs, operations
>Reporter: Amareshwari Sriramadasu
>
> This doc should capture various responses that could be returned from REST 
> api and debugging steps.
> We can add them in java doc itself, they by goes in REST api generated doc. 
> Thoughts?



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


[jira] [Updated] (LENS-289) Add doc/ run book for debugging query failures

2016-09-01 Thread Archana H (JIRA)

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

Archana H updated LENS-289:
---
Fix Version/s: (was: 2.6)

> Add doc/ run book for debugging query failures
> --
>
> Key: LENS-289
> URL: https://issues.apache.org/jira/browse/LENS-289
> Project: Apache Lens
>  Issue Type: Task
>  Components: docs, operations
>Reporter: Amareshwari Sriramadasu
>
> This doc should capture the various query failure reasons and a way for user 
> to take next step.



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


[jira] [Updated] (LENS-291) Add doc for lens administrator to debug lens server issues

2016-09-01 Thread Archana H (JIRA)

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

Archana H updated LENS-291:
---
Fix Version/s: (was: 2.6)

> Add doc for lens administrator to debug lens server issues 
> ---
>
> Key: LENS-291
> URL: https://issues.apache.org/jira/browse/LENS-291
> Project: Apache Lens
>  Issue Type: Task
>  Components: docs, operations
>Reporter: Amareshwari Sriramadasu
>
> This doc should capture various system errors that lens server could face in 
> production and a guide to administrator to take next steps.
> For example : Email notification failure can say check for smtp host and 
> port, and how to go about the error seen.



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


[jira] [Closed] (LENS-953) Unclosed InputStream in DatabaseUtil#initializeDatabaseStorage()

2016-09-01 Thread Archana H (JIRA)

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

Archana H closed LENS-953.
--

> Unclosed InputStream in DatabaseUtil#initializeDatabaseStorage()
> 
>
> Key: LENS-953
> URL: https://issues.apache.org/jira/browse/LENS-953
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client
>Reporter: Ted Yu
>Assignee: Ajay Yadava
>Priority: Minor
> Fix For: 2.6
>
> Attachments: LENS-953-v1.patch, LENS-953.patch
>
>
> Here is related code:
> {code}
> InputStream file = 
> DatabaseUtil.class.getClassLoader().getResourceAsStream("db-storage-schema.sql");
> BufferedReader reader = new BufferedReader(new InputStreamReader(file, 
> "UTF-8"));
> {code}
> Neither file nor reader is closed upon exit from the method.



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


[jira] [Closed] (LENS-1149) Union queries with dim-attribute expressions are not written properly

2016-09-01 Thread Archana H (JIRA)

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

Archana H closed LENS-1149.
---

> Union queries with dim-attribute expressions are not written properly
> -
>
> Key: LENS-1149
> URL: https://issues.apache.org/jira/browse/LENS-1149
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-1149.patch
>
>
> We are seeing the inner group by and outer group by clause are not correct 
> for union queries involving dim attribute expressions.



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


[jira] [Closed] (LENS-954) await() is not inside loop in FairPriorityBlockingQueue#waitUntilNotEmpty()

2016-09-01 Thread Archana H (JIRA)

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

Archana H closed LENS-954.
--

> await() is not inside loop in FairPriorityBlockingQueue#waitUntilNotEmpty()
> ---
>
> Key: LENS-954
> URL: https://issues.apache.org/jira/browse/LENS-954
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Ted Yu
>Assignee: Ajay Yadava
>Priority: Minor
> Fix For: 2.6
>
> Attachments: LENS-954.patch
>
>
> {code}
>   private void waitUntilNotEmpty() throws InterruptedException {
> conditionalWaitLock.lock();
> try {
>   notEmpty.await();
> } finally {
>   conditionalWaitLock.unlock();
> }
> {code}
> From 
> http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#wait%28long%29
>  :
> A thread can wake up without being notified, interrupted, a so-called 
> spurious wakeup. While this will rarely occur in practice, applications must 
> guard against it by testing for the condition that should have caused the 
> thread to be awakened.



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


[jira] [Closed] (LENS-1168) Isolate submissions for each driver

2016-09-01 Thread Archana H (JIRA)

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

Archana H closed LENS-1168.
---

> Isolate submissions for each driver
> ---
>
> Key: LENS-1168
> URL: https://issues.apache.org/jira/browse/LENS-1168
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-1168.4.patch, LENS-1168.5.patch
>
>
> We need to isolate query submitters for each driver to be different. We have 
> seen scenarios where hive submission takes time and other interactive queries 
> on jdbc are queued because querysubmitter was busy. 
> Also, each driver can have a pool of submitters - which should benefit 
> interactive queries with immediate submissions, especially the ones submitted 
> on EXECUTE_WITH_TIMEOUT



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


[jira] [Commented] (LENS-778) Killing JDBC Query is not closing the connection

2016-08-31 Thread Archana H (JIRA)

[ 
https://issues.apache.org/jira/browse/LENS-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15452169#comment-15452169
 ] 

Archana H commented on LENS-778:


Not seeing this issue now.

> Killing JDBC Query is not closing the connection
> 
>
> Key: LENS-778
> URL: https://issues.apache.org/jira/browse/LENS-778
> Project: Apache Lens
>  Issue Type: Bug
>  Components: driver-jdbc
>Reporter: Arshad Matin
>Assignee: Archana H
> Fix For: 2.6
>
>
> Use Case
> ===
> Set max connection pool to 1.
> Ran a query and killed it.
> Ran another query and it failed throwing following exception
> {noformat}
> 18 Sep 2015 07:18:51 [15e7cb89-5f0c-4741-8da6-69384c94cd01] 
> [lens-driver-jdbc-2] ERROR org.apache.lens.driver.jdbc.JDBCDriver - Error 
> executing SQL query: 15e7cb89-5f0c-4741-8da6-69384c94cd01 reason: Streaming 
> result set com.mysql.jdbc.RowDataDynamic@4651e5c3 is still active. No 
> statements may be issued when any streaming result sets are open and in use 
> on a given connection. Ensure that you have called .close() on any active 
> streaming result sets before attempting more queries.
> java.sql.SQLException: Streaming result set 
> com.mysql.jdbc.RowDataDynamic@4651e5c3 is still active. No statements may be 
> issued when any streaming result sets are open and in use on a given 
> connection. Ensure that you have called .close() on any active streaming 
> result sets before attempting more queries.
>   at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:914) 
> ~[mysql-connector-java-5.0.8-bin.jar:na]
>   at 
> com.mysql.jdbc.MysqlIO.checkForOutstandingStreamingData(MysqlIO.java:2181) 
> ~[mysql-connector-java-5.0.8-bin.jar:na]
>   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1542) 
> ~[mysql-connector-java-5.0.8-bin.jar:na]
>   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723) 
> ~[mysql-connector-java-5.0.8-bin.jar:na]
>   at com.mysql.jdbc.Connection.execSQL(Connection.java:3277) 
> ~[mysql-connector-java-5.0.8-bin.jar:na]
>   at com.mysql.jdbc.Connection.execSQL(Connection.java:3206) 
> ~[mysql-connector-java-5.0.8-bin.jar:na]
>   at com.mysql.jdbc.Statement.execute(Statement.java:727) 
> ~[mysql-connector-java-5.0.8-bin.jar:na]
>   at 
> com.mchange.v2.c3p0.impl.NewProxyStatement.execute(NewProxyStatement.java:223)
>  ~[c3p0-0.9.5.jar:0.9.5]
>   at 
> org.apache.lens.driver.jdbc.JDBCDriver$QueryCallable.call(JDBCDriver.java:327)
>  [lens-driver-jdbc-2.4.0-inm.jar:2.4.0-inm]
>   at 
> org.apache.lens.driver.jdbc.JDBCDriver$QueryCallable.call(JDBCDriver.java:282)
>  [lens-driver-jdbc-2.4.0-inm.jar:2.4.0-inm]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
> [na:1.8.0_40]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [na:1.8.0_40]
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  [na:1.8.0_40]
>   at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
> {noformat}



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


[jira] [Closed] (LENS-886) Queued JDBC queries are failing upon lens server restart

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-886.
--

> Queued JDBC queries are failing upon lens server restart
> 
>
> Key: LENS-886
> URL: https://issues.apache.org/jira/browse/LENS-886
> Project: Apache Lens
>  Issue Type: Bug
>  Components: driver-jdbc
>Reporter: Amareshwari Sriramadasu
>Assignee: Archana H
> Fix For: 2.6
>
>
> Queued queries are failing upon restart with connection timeout.
> {noformat}
> Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out 
> while waiting to acquire a resource from 
> com.mchange.v2.resourcepool.BasicResourcePool@629a3da7 -- timeout at 
> awaitAvailable()
> at 
> com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1461)
>  ~[c3p0-0.9.5.jar:0.9.5]
> at 
> com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:639)
>  ~[c3p0-0.9.5.jar:0.9.5]
> at 
> com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:549)
>  ~[c3p0-0.9.5.jar:0.9.5]
> at 
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:756)
>  ~[c3p0-0.9.5.jar:0.9.5]
> at 
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:683)
>  ~[c3p0-0.9.5.jar:0.9.5]
> ... 9 common frames omitted
> {noformat}



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


[jira] [Resolved] (LENS-886) Queued JDBC queries are failing upon lens server restart

2016-08-31 Thread Archana H (JIRA)

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

Archana H resolved LENS-886.

Resolution: Not A Problem

> Queued JDBC queries are failing upon lens server restart
> 
>
> Key: LENS-886
> URL: https://issues.apache.org/jira/browse/LENS-886
> Project: Apache Lens
>  Issue Type: Bug
>  Components: driver-jdbc
>Reporter: Amareshwari Sriramadasu
>Assignee: Archana H
> Fix For: 2.6
>
>
> Queued queries are failing upon restart with connection timeout.
> {noformat}
> Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out 
> while waiting to acquire a resource from 
> com.mchange.v2.resourcepool.BasicResourcePool@629a3da7 -- timeout at 
> awaitAvailable()
> at 
> com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1461)
>  ~[c3p0-0.9.5.jar:0.9.5]
> at 
> com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:639)
>  ~[c3p0-0.9.5.jar:0.9.5]
> at 
> com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:549)
>  ~[c3p0-0.9.5.jar:0.9.5]
> at 
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:756)
>  ~[c3p0-0.9.5.jar:0.9.5]
> at 
> com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:683)
>  ~[c3p0-0.9.5.jar:0.9.5]
> ... 9 common frames omitted
> {noformat}



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


[jira] [Closed] (LENS-1040) cubesegmentation commands are conflicting with cube commands

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-1040.
---

> cubesegmentation commands are conflicting with cube commands
> 
>
> Key: LENS-1040
> URL: https://issues.apache.org/jira/browse/LENS-1040
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client
>Affects Versions: 2.6
>Reporter: Amareshwari Sriramadasu
>Assignee: Sushil Mohanty
> Fix For: 2.6
>
> Attachments: LENS-1040-1.patch
>
>
> Since cubesegmentation commands have prefix as cube, the auto completion and 
> help for cube commands is not working.
> We need to change the command word from cubesegmentation to something else.
> Shall we change to just segmentation ?



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


[jira] [Closed] (LENS-1207) Lens UI enhancements

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-1207.
---

> Lens UI enhancements
> 
>
> Key: LENS-1207
> URL: https://issues.apache.org/jira/browse/LENS-1207
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: UI
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1207.01.patch, LENS-1207.03.patch, 
> LENS-1207.07.patch, LENS-1207.2016-06-29_17:22:51.patch
>
>
> Following changes are done :
> * Make password optional in login
> * Add db as login parameter, just like java/python clients
> * By default only show base cubes. Can be configured to show all.
> * Modified start/stop scripts so that start is npm start and stop is npm stop
> * Lens server url and ui port is configurable by .npmrc now.
> * URLs changed. Now db is not part of the url, it's a session property, and 
> is also cached in the client state
> * Reduced width of sidebar and increased width of main content
> * Corrected content in cube schema view. Now it shows joinchains and 
> expressions too. Also, changed columns being displayed in measure and 
> dimtable list.
> * Some bugfixes in error json parsing.



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


[jira] [Closed] (LENS-918) Query Priority is not getting logged in query logs

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-918.
--

> Query Priority is not getting logged in query logs
> --
>
> Key: LENS-918
> URL: https://issues.apache.org/jira/browse/LENS-918
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Puneet Gupta
>Assignee: Ajay Yadava
>Priority: Minor
> Fix For: 2.6
>
> Attachments: LENS-918-v1.patch, LENS-918.patch
>
>
> Logs pertaining to query priority missing from Query Logs.  Its logged in 
> server logs only (but query handle is not logged)



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


[jira] [Closed] (LENS-730) Issues with column aliases in multifact query

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-730.
--

> Issues with column aliases in multifact query
> -
>
> Key: LENS-730
> URL: https://issues.apache.org/jira/browse/LENS-730
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-730.2.patch
>
>
> We saw couple of issues with aliases in multi fact queries.
> * cube select func1(col1), func2(col1), m1,m2 from cube where 
> time_range_in(dt, now.day - 2days, now) writes the query as follows :
> select COALESCE(mq1.col1, mq2.col1) col1, COALESCE(mq1.col1, mq2.col1) col1, 
> mq1.m1, mq2.m2 from
> (select func1(col1) col1, func2(col1) col1, m1 from fact1 where ...) mq1
> full outer join
> (select func1(col1) col1, func2(col1) col1, m2 from fact2 where ...) mq2
> on 
> mq1.col1 <=> mq2.col1 and mq1.col1 <=>mq2.col1
> * Another was the case of the alias of the column is same as the field 
> selected.



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


[jira] [Closed] (LENS-39) Add tags to cube column

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-39.
-

> Add tags to cube column
> ---
>
> Key: LENS-39
> URL: https://issues.apache.org/jira/browse/LENS-39
> Project: Apache Lens
>  Issue Type: Task
>  Components: cube
>Reporter: Amareshwari Sriramadasu
>Assignee: Sushil Mohanty
>  Labels: newbie
> Fix For: 2.6
>
> Attachments: LENS-39-1.patch
>
>
> This is to add a key, value holder for keeping tags associated with a cube 
> column.
> We can add Map as one more class level field in CubeColumn and 
> expose it through jaxb as well.



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


[jira] [Closed] (LENS-529) Add Developer documentation for adding new errors to code

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-529.
--

> Add Developer documentation for adding new errors to code
> -
>
> Key: LENS-529
> URL: https://issues.apache.org/jira/browse/LENS-529
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: docs
>Reporter: Himanshu Gahlaut
>Assignee: Ajay Yadava
> Fix For: 2.6
>
> Attachments: LENS-529-v0.patch
>
>




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


[jira] [Closed] (LENS-1199) NPE while closing session

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-1199.
---

> NPE while closing session
> -
>
> Key: LENS-1199
> URL: https://issues.apache.org/jira/browse/LENS-1199
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Affects Versions: 2.6
>Reporter: Amareshwari Sriramadasu
>Assignee: Raju Bairishetti
> Fix For: 2.6
>
> Attachments: LENS-1199.patch
>
>
> Close session fails with 500.
> Seeing the following in server logs :
> {noformat}
> 23 Jun 2016 05:55:01 [9217270f-8cf1-43dd-add4-64d604bebb65] 
> [e319efea-fd05-401a-91c9-c94ee8409dcf grizzly-http-server-1] INFO  
> org.apache.lens.server.BaseLensService - Closed session  encoding="UTF-8" 
> standalone="yes"?>e319efea-fd05-401a-91c9-c94ee8409dcf76942b08-b549-430f-834b-ae39514c6a91
>  for anonymous user
> 23 Jun 2016 05:55:01 [9217270f-8cf1-43dd-add4-64d604bebb65] 
> [e319efea-fd05-401a-91c9-c94ee8409dcf grizzly-http-server-1] ERROR 
> org.apache.lens.server.LensRequestListener - Encountered HTTP exception
> org.glassfish.jersey.server.internal.process.MappableException: 
> java.lang.NullPointerException
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.mapTargetToRuntimeEx(AbstractJavaResourceMethodDispatcher.java:179)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.access$200(AbstractJavaResourceMethodDispatcher.java:72)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:149)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
>  ~[jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) 
> ~[jersey-server-2.22.1.jar:na]
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) 
> [jersey-common-2.22.1.jar:na]
> at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) 
> [jersey-common-2.22.1.jar:na]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:315) 
> [jersey-common-2.22.1.jar:na]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:297) 
> [jersey-common-2.22.1.jar:na]
> at org.glassfish.jersey.internal.Errors.process(Errors.java:267) 
> [jersey-common-2.22.1.jar:na]
> at 
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
>  [jersey-common-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) 
> [jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
>  [jersey-server-2.22.1.jar:na]
> at 
> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)
>  [jersey-container-grizzly2-http-2.22.1.jar:na]
> at 
> org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) 
> [grizzly-http-server-2.3.23.jar:2.3.23]
> at 
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
>  [grizzly-framework-2.3.23.jar:2.3.23]
> at 
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
>  [grizzly-framework-2.3.23.jar:2.3.23]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66]
> Caused by: java.lang.NullPointerException: null
> at 
> org.apache.lens.server.BaseLensService.decrementSessionCountForUser(BaseLensService.java:329)
>  ~[classes/:na]
> at 
> org.apache.lens.server.BaseLensService.closeSession(BaseLensService.java:307) 
> ~[classes/:na]
> at 
> 

[jira] [Closed] (LENS-893) Query Service should not mark queries failed in case driver is not responding in a timely manner

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-893.
--

> Query Service should not mark queries failed in case driver is not responding 
> in a timely manner
> 
>
> Key: LENS-893
> URL: https://issues.apache.org/jira/browse/LENS-893
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Rajat Khandelwal
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-893.4.patch, LENS-893.5.patch
>
>
> Exponential backoff can be done in update status. 



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


[jira] [Closed] (LENS-1208) Missing join condition for multi fact query for expression attributes

2016-08-31 Thread Archana H (JIRA)

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

Archana H closed LENS-1208.
---

> Missing join condition for multi fact query for expression attributes
> -
>
> Key: LENS-1208
> URL: https://issues.apache.org/jira/browse/LENS-1208
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
>Priority: Critical
> Fix For: 2.6
>
> Attachments: LENS-1208.2.patch, LENS-1208.patch
>
>
> We noticed that the join condition is missing for full outer join queries for 
> multi fact queries when one of the field chosen is an expression attribute. 



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


[jira] [Closed] (LENS-1241) Fix tests failures with setup and teardown issues

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-1241.
---

> Fix tests failures with setup and teardown issues
> -
>
> Key: LENS-1241
> URL: https://issues.apache.org/jira/browse/LENS-1241
> Project: Apache Lens
>  Issue Type: Bug
>  Components: test
>Reporter: Amareshwari Sriramadasu
>Assignee: Sushil Mohanty
> Fix For: 2.6
>
> Attachments: LENS-1241-1.patch
>
>
> We are seeing failures like 
> https://builds.apache.org/job/PreCommit-Lens-Build/752/testReport/junit/org.apache.lens.server.query/QueryAPIErrorResponseTest/tearDown/
> Shall we move all session creation and drop; table creation, loading and drop 
> to \@beforeclass and \@afterclass  annotations?



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


[jira] [Closed] (LENS-1268) Lens build on dev enviornment is failing

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-1268.
---

> Lens build on dev enviornment is failing 
> -
>
> Key: LENS-1268
> URL: https://issues.apache.org/jira/browse/LENS-1268
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Praveen Adlakha
>Assignee: Praveen Adlakha
> Fix For: 2.6
>
> Attachments: LENS-1268.patch
>
>
> Hi All,
> Lens build is failing in dev enviornment with error :
> {code}
> [INFO] Building Lens API for server and extensions 2.7.0-SNAPSHOT
> [INFO] 
> 
> Downloading: 
> http://repo1.maven.org/maven2/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom
> Downloading: 
> https://repository.cloudera.com/artifactory/cloudera-repos/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom
> Downloading: 
> https://repository.apache.org/content/groups/public/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom
> Downloading: 
> http://projectlombok.org/mavenrepo/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom
> Downloading: 
> http://repo.springsource.org/simple/ext-release-local/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.pom
> [WARNING] The POM for 
> org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde is missing, no 
> dependency information available
> Downloading: 
> http://repo1.maven.org/maven2/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
> Downloading: 
> https://repository.cloudera.com/artifactory/cloudera-repos/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
> Downloading: 
> https://repository.apache.org/content/groups/public/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
> Downloading: 
> http://projectlombok.org/mavenrepo/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
> Downloading: 
> http://repo.springsource.org/simple/ext-release-local/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Lens Checkstyle Rules .. SUCCESS [  1.158 
> s]
> [INFO] Lens ... SUCCESS [  4.648 
> s]
> [INFO] Lens API ... SUCCESS [ 13.168 
> s]
> [INFO] Lens API for server and extensions . FAILURE [ 13.287 
> s]
> [INFO] Lens Cube .. SKIPPED
> [INFO] Lens DB storage  SKIPPED
> [INFO] Lens Query Library . SKIPPED
> [INFO] Lens Hive Driver ... SKIPPED
> [INFO] Lens Driver for JDBC ... SKIPPED
> [INFO] Lens Elastic Search Driver . SKIPPED
> [INFO] Lens Server  SKIPPED
> [INFO] Lens client  SKIPPED
> [INFO] Lens CLI ... SKIPPED
> [INFO] Lens Examples .. SKIPPED
> [INFO] Lens Ship Jars to Distributed Cache  SKIPPED
> [INFO] Lens Distribution .. SKIPPED
> [INFO] Lens ML Lib  SKIPPED
> [INFO] Lens ML Ext Distribution ... SKIPPED
> [INFO] Lens Regression  SKIPPED
> [INFO] Lens UI  SKIPPED
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 32.630 s
> [INFO] Finished at: 2016-08-08T15:13:49+05:30
> [INFO] Final Memory: 74M/995M
> [INFO] 
> 
> [ERROR] Failed to execute goal on project lens-server-api: Could not resolve 
> dependencies for project org.apache.lens:lens-server-api:jar:2.7.0-SNAPSHOT: 
> Could not find artifact 
> org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde in central 
> (http://repo1.maven.org/maven2) -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using 

[jira] [Closed] (LENS-1281) Minor Licensing issue

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-1281.
---

> Minor Licensing issue
> -
>
> Key: LENS-1281
> URL: https://issues.apache.org/jira/browse/LENS-1281
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Ajay Yadava
>Assignee: Ajay Yadava
> Fix For: 2.6
>
> Attachments: LENS-1281-v1.patch, LENS-1281.patch
>
>
> Quartz library is used by Lens for scheduling purposes. Quartz has a 
> dependency on c3p0 which is LGPL and not Apache License compatible. Good news 
> is we don't need it as we are not using the persistence features of quartz, 
> so it can be excluded.



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


[jira] [Closed] (LENS-1209) Remove toString warnings from debug log

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-1209.
---

> Remove toString warnings from debug log
> ---
>
> Key: LENS-1209
> URL: https://issues.apache.org/jira/browse/LENS-1209
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: api
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1209.2016-07-04_16:30:06.patch
>
>
> This is the repeated trace coming in debug logs: 
> {noformat}
> 04 Jul 2016 14:21:31 [db48587d-c70a-484f-a337-e0e9361406c9] 
> [addbb2dd-2093-4ac2-980d-aacfe1932536 grizzly-http-server-17] DEBUG 
> org.apache.lens.api.jaxb.YAMLToStringStrategy - getter access failed for 
> java.lang.Double#getValue. Going the usual way
> java.lang.NoSuchMethodException: java.lang.Double.getValue()
> at java.lang.Class.getDeclaredMethod(Class.java:2130) ~[na:1.8.0_72]
> at 
> org.apache.lens.api.jaxb.YAMLToStringStrategy.appendInternal(YAMLToStringStrategy.java:324)
>  ~[lens-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT]
> at 
> org.jvnet.jaxb2_commons.lang.DefaultToStringStrategy.append(DefaultToStringStrategy.java:475)
>  [jaxb2-basics-runtime-0.9.5.jar:na]
> at 
> org.jvnet.jaxb2_commons.lang.DefaultToStringStrategy.appendField(DefaultToStringStrategy.java:302)
>  [jaxb2-basics-runtime-0.9.5.jar:na]
> at 
> org.apache.lens.api.ToYAMLString.appendFields(ToYAMLString.java:87) 
> [lens-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT]
> at org.apache.lens.api.ToYAMLString.append(ToYAMLString.java:58) 
> [lens-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT]
> at org.apache.lens.api.ToYAMLString.toString(ToYAMLString.java:47) 
> [lens-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT]
> at 
> org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:305)
>  [slf4j-api-1.7.6.jar:1.7.6]
> at 
> org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:277)
>  [slf4j-api-1.7.6.jar:1.7.6]
> at 
> org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:231) 
> [slf4j-api-1.7.6.jar:1.7.6]
> at 
> ch.qos.logback.classic.spi.LoggingEvent.getFormattedMessage(LoggingEvent.java:298)
>  [logback-classic-1.1.3.jar:na]
> at 
> ch.qos.logback.classic.spi.LoggingEvent.prepareForDeferredProcessing(LoggingEvent.java:208)
>  [logback-classic-1.1.3.jar:na]
> at 
> ch.qos.logback.core.OutputStreamAppender.subAppend(OutputStreamAppender.java:212)
>  [logback-core-1.1.3.jar:na]
> at 
> ch.qos.logback.core.rolling.RollingFileAppender.subAppend(RollingFileAppender.java:182)
>  [logback-core-1.1.3.jar:na]
> at 
> ch.qos.logback.core.OutputStreamAppender.append(OutputStreamAppender.java:103)
>  [logback-core-1.1.3.jar:na]
> at 
> ch.qos.logback.core.UnsynchronizedAppenderBase.doAppend(UnsynchronizedAppenderBase.java:88)
>  [logback-core-1.1.3.jar:na]
> at 
> ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:48)
>  [logback-core-1.1.3.jar:na]
> at 
> ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:273) 
> [logback-classic-1.1.3.jar:na]
> at ch.qos.logback.classic.Logger.callAppenders(Logger.java:260) 
> [logback-classic-1.1.3.jar:na]
> at 
> ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:442) 
> [logback-classic-1.1.3.jar:na]
> at 
> ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:396) 
> [logback-classic-1.1.3.jar:na]
> at ch.qos.logback.classic.Logger.info(Logger.java:612) 
> [logback-classic-1.1.3.jar:na]
> at 
> org.apache.lens.server.api.query.QueryContext.setStatus(QueryContext.java:367)
>  [lens-server-api-2.6.0-beta-SNAPSHOT.jar:2.6.0-beta-SNAPSHOT]
> at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.submitQuery(QueryExecutionServiceImpl.java:1833)
>  [classes/:na]
> at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.executeAsyncInternal(QueryExecutionServiceImpl.java:1827)
>  [classes/:na]
> at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.executeAsync(QueryExecutionServiceImpl.java:1775)
>  [classes/:na]
> at 
> org.apache.lens.server.query.QueryServiceResource.query(QueryServiceResource.java:228)
>  [classes/:na]
> at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source) 
> ~[na:na]
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[na:1.8.0_72]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
> at 
> 

[jira] [Closed] (LENS-991) Seeing multiple close calls and failures of connection after LENS-853

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-991.
--

> Seeing multiple close calls and failures of connection after LENS-853
> -
>
> Key: LENS-991
> URL: https://issues.apache.org/jira/browse/LENS-991
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client
>Affects Versions: 2.6
>Reporter: Amareshwari Sriramadasu
>Assignee: Raju Bairishetti
> Fix For: 2.6
>
> Attachments: LENS-991.patch, LENS-991_01.patch
>
>
> Seeing the following whenever we exit lens-cli :
> {noformat}
> Exception in thread "Thread-4" Exception in thread "Thread-10" 
> java.lang.IllegalStateException: Unable to close lens connection with params 
> LensConnectionParams{dbName='default', baseUrl='http://0.0.0.0:/lensapi', 
> user=anonymous, lensConfs={}, lensVars={}, sessionVars={}}
>   at org.apache.lens.client.LensConnection.close(LensConnection.java:206)
>   at 
> org.apache.lens.client.LensClient.closeConnection(LensClient.java:326)
>   at 
> org.apache.lens.cli.commands.BaseLensCommand.closeClientConnection(BaseLensCommand.java:92)
>   at 
> org.apache.lens.cli.commands.BaseLensCommand$2.run(BaseLensCommand.java:81)
> java.lang.IllegalStateException: Unable to close lens connection with params 
> LensConnectionParams{dbName='default', baseUrl='http://0.0.0.0:/lensapi', 
> user=anonymous, lensConfs={}, lensVars={}, sessionVars={}}
>   at org.apache.lens.client.LensConnection.close(LensConnection.java:206)
>   at 
> org.apache.lens.client.LensClient.closeConnection(LensClient.java:326)
>   at 
> org.apache.lens.cli.commands.BaseLensCommand.closeClientConnection(BaseLensCommand.java:92)
>   at 
> org.apache.lens.cli.commands.BaseLensCommand$2.run(BaseLensCommand.java:81)
> {noformat}



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


[jira] [Closed] (LENS-1201) [Code cleanup] Move API classes to correct place.

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-1201.
---

> [Code cleanup] Move API classes to correct place. 
> --
>
> Key: LENS-1201
> URL: https://issues.apache.org/jira/browse/LENS-1201
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: server
>Reporter: Lavkesh Lahngir
>Assignee: Lavkesh Lahngir
> Fix For: 2.6
>
> Attachments: code_cleanup.patch
>
>




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


[jira] [Closed] (LENS-892) Log lens Session details in Query Logs

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-892.
--

> Log  lens Session details in Query Logs
> ---
>
> Key: LENS-892
> URL: https://issues.apache.org/jira/browse/LENS-892
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Puneet Gupta
>Assignee: Amareshwari Sriramadasu
>Priority: Trivial
>  Labels: newbie
> Fix For: 2.6
>
> Attachments: LENS-892.patch
>
>
> As of now its not easy to map Lens Queries to Lens Sessions . 
> It can be made trivial if the session details are logged in query logs .
> This can be required in many scenarios. 
> One such scenario : attribute a lens session close (say a user issued a query 
> via CLI and then exited the CLI before query was scheduled for a run on lens 
> server)  as a reason for  failure/cancellation of queries triggered via that 
> session . 



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


[jira] [Closed] (LENS-1245) Lens client gives null error message when a query fails.

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-1245.
---

> Lens client gives null error message when a query fails.
> 
>
> Key: LENS-1245
> URL: https://issues.apache.org/jira/browse/LENS-1245
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-1245.patch
>
>
> We are seeing LensClient throws NPE whenever there is a query failure.



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


[jira] [Closed] (LENS-993) Estimate thread pool does not grow beyond minimum pool size.

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-993.
--

> Estimate thread pool does not grow beyond minimum pool size.
> 
>
> Key: LENS-993
> URL: https://issues.apache.org/jira/browse/LENS-993
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-993.2.patch, LENS-993.3.patch
>
>
> We noticed that there are only 3 threads (the min pool size) on the server 
> and not growing. And 3 threads are blocked on JDBC connection and all 
> subsequent estimate calls timeout as there are no threads.



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


[jira] [Closed] (LENS-980) Creating examples is failing on master

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-980.
--

> Creating examples is failing on master
> --
>
> Key: LENS-980
> URL: https://issues.apache.org/jira/browse/LENS-980
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client
>Affects Versions: 2.6
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
>Priority: Blocker
> Fix For: 2.6
>
> Attachments: LENS-980.patch
>
>
> Seeing the following :
> 
> $ bin/run-examples.sh sample-metastore -db ex1
> Creating storage from:local-storage.xml failed, reason:File not 
> found:local-storage.xml
> Creating storage from:local-cluster-storage.xml failed, reason:File not 
> found:local-cluster-storage.xml
> 



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


[jira] [Closed] (LENS-1030) Query log is having other request logs

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-1030.
---

> Query log is having other request logs
> --
>
> Key: LENS-1030
> URL: https://issues.apache.org/jira/browse/LENS-1030
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Affects Versions: 2.6
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
>Priority: Minor
> Fix For: 2.6
>
> Attachments: LENS-1030.2.patch, LENS-1030.3.patch, LENS-1030.patch
>
>
> Query log file has the following lines :
> {noformat}
> 3 May 2016 08:19:20 [c8d77c9d-481b-4b50-92b4-742cb4b3baf5] 
> [grizzly-http-server-4] INFO  
> org.apache.lens.server.query.QueryExecutionServiceImpl - Returning handle 
> c8d77c9d-481b-4b50-92b4-742cb4b3baf5
> 03 May 2016 08:19:20 [c8d77c9d-481b-4b50-92b4-742cb4b3baf5] [QuerySubmitter] 
> INFO  org.apache.lens.server.query.QueryExecutionServiceImpl - Processing 
> query:cube select 
> 03 May 2016 08:19:20 [c8d77c9d-481b-4b50-92b4-742cb4b3baf5] [QuerySubmitter] 
> INFO  org.apache.lens.server.query.QueryExecutionServiceImpl - Added to 
> waiting queries. QueryId:c8d77c9d-481b-4b50-92b4-742cb4b3baf5
> 03 May 2016 08:20:21 [0a5c1066-8927-4ed9-8f29-f89943d089e2] 
> [grizzly-http-server-4] INFO  org.apache.lens.server.AuthenticationFilter - 
> Request from user: null , path=metastore/cubes/rrcube/latestdate
> {noformat}



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


[jira] [Closed] (LENS-963) Priority calculation is not looking up table weights correctly.

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-963.
--

> Priority calculation is not looking up table weights correctly.
> ---
>
> Key: LENS-963
> URL: https://issues.apache.org/jira/browse/LENS-963
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-963.patch
>
>
> FactPartition.getTableWeights() is looking up map in which table weights are 
> stored with dbName.tableName as key, but looking up through tableName.



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


[jira] [Closed] (LENS-1016) QueryPriorityComparator fails JDBCDriver queries

2016-08-30 Thread Archana H (JIRA)

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

Archana H closed LENS-1016.
---

> QueryPriorityComparator fails JDBCDriver queries
> 
>
> Key: LENS-1016
> URL: https://issues.apache.org/jira/browse/LENS-1016
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Affects Versions: 2.6
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
>Priority: Critical
> Fix For: 2.6
>
> Attachments: LENS-1016.3.patch
>
>
> We are seeing the following with current code :
> {noformat}
> 25 Apr 2016 07:30:35 [2612abc7-fa34-40aa-a711-b3c3ae8c7be8] [QuerySubmitter] 
> ERROR org.apache.lens.server.query.QueryExecutionServiceImpl - Error 
> launching query: 2612abc7-fa34-40aa-a711-b3c3ae8c7be8
> java.lang.NullPointerException: null
>at 
> org.apache.lens.server.query.QueryPriorityComparator.compare(QueryPriorityComparator.java:32)
>  ~[classes/:na]
>at 
> org.apache.lens.server.query.QueryPriorityComparator.compare(QueryPriorityComparator.java:24)
>  ~[classes/:na]
>at java.util.TreeMap.put(TreeMap.java:552) ~[na:1.8.0_72]
>at java.util.TreeSet.add(TreeSet.java:255) ~[na:1.8.0_72]
>at 
> org.apache.lens.server.query.collect.DefaultQueryCollection.add(DefaultQueryCollection.java:66)
>  ~[classes/:na]
> {noformat}



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


  1   2   3   4   >