[ANNOUNCE] Apache Lens 2.6.1 release

2016-10-25 Thread Puneet Gupta
Hi All,

The Apache Lens team is proud to announce the release of Apache Lens 2.6.1.
This is the first GA release which supports Hive 2.

Apache Lens provides an Unified Analytics interface. Lens aims to cut the
Data Analytics silos by providing a single view of data across multiple
tiered data stores and optimal execution environment for the analytical
query. It seamlessly integrates Hadoop with traditional data warehouses to
appear like one.


More details on Apache Lens can be found at
http://lens.apache.org/

Getting started available at
http://lens.apache.org/lenshome/quick-start.html

For quick ramp-up, you can watch a video at
http://cwiki.apache.org/confluence/display/LENS/2015/07/13/20+Minute+video+demo+of+Apache+Lens+through+examples

How to for Contributors available at
http://lens.apache.org/developer/contribute.html

The release artifacts are downloadable from
http://lens.apache.org/releases/download.html

Maven jar artifacts have also been made available on
https://repository.apache.org/content/repositories/releases/org/apache/lens

Release notes available at
https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12333846&styleName=&projectId=12315923

We would like to thank all the contributors who made this release possible.


Regards,
Puneet Gupta


[jira] [Updated] (LENS-1363) Error While building Lens Site

2016-10-24 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1363:
---
Description: 
1. The output of enunciate had changed after upgrading it. 
Need to update tools/scripts/generate-site-public.sh accordingly. 

2. Download links are pointing to lens 2.6. Need to change to point to 2.6.1

3. Roles need to be updated in pom.xml for two team members 

  was:
The output of enunciate had changed after upgrading it. 
Need to update tools/scripts/generate-site-public.sh accordingly. 


> Error While building Lens Site
> --
>
> Key: LENS-1363
> URL: https://issues.apache.org/jira/browse/LENS-1363
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1363.patch
>
>
> 1. The output of enunciate had changed after upgrading it. 
> Need to update tools/scripts/generate-site-public.sh accordingly. 
> 2. Download links are pointing to lens 2.6. Need to change to point to 2.6.1
> 3. Roles need to be updated in pom.xml for two team members 



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


[jira] [Updated] (LENS-1363) Error While building Lens Site

2016-10-24 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1363:
---
Status: Patch Available  (was: Open)

Small Change. Attaching patch directly for review

> Error While building Lens Site
> --
>
> Key: LENS-1363
> URL: https://issues.apache.org/jira/browse/LENS-1363
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1363.patch
>
>
> The output of enunciate had changed after upgrading it. 
> Need to update tools/scripts/generate-site-public.sh accordingly. 



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


[jira] [Updated] (LENS-1363) Error While building Lens Site

2016-10-24 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1363:
---
Attachment: lens-1363.patch

> Error While building Lens Site
> --
>
> Key: LENS-1363
> URL: https://issues.apache.org/jira/browse/LENS-1363
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1363.patch
>
>
> The output of enunciate had changed after upgrading it. 
> Need to update tools/scripts/generate-site-public.sh accordingly. 



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


[jira] [Updated] (LENS-1365) REST Api docs generated via enunciate plugin 2.5 has two entries for JSON data type

2016-10-24 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1365:
---
Description: See attached images

> REST Api docs generated via enunciate plugin 2.5 has two entries for JSON 
> data type
> ---
>
> Key: LENS-1365
> URL: https://issues.apache.org/jira/browse/LENS-1365
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
> Attachments: screenshot-1.png, screenshot-2.png
>
>
> See attached images



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


[jira] [Updated] (LENS-1365) REST Api docs generated via enunciate plugin 2.5 has two entries for JSON data type

2016-10-24 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1365:
---
Attachment: screenshot-2.png

> REST Api docs generated via enunciate plugin 2.5 has two entries for JSON 
> data type
> ---
>
> Key: LENS-1365
> URL: https://issues.apache.org/jira/browse/LENS-1365
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
> Attachments: screenshot-1.png, screenshot-2.png
>
>




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


[jira] [Updated] (LENS-1365) REST Api docs generated via enunciate plugin 2.5 has two entries for JSON data type

2016-10-24 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1365:
---
Attachment: screenshot-1.png

> REST Api docs generated via enunciate plugin 2.5 has two entries for JSON 
> data type
> ---
>
> Key: LENS-1365
> URL: https://issues.apache.org/jira/browse/LENS-1365
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
> Attachments: screenshot-1.png, screenshot-2.png
>
>




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


[jira] [Created] (LENS-1365) REST Api docs generated via enunciate plugin 2.5 has two entries for JSON data type

2016-10-24 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1365:
--

 Summary: REST Api docs generated via enunciate plugin 2.5 has two 
entries for JSON data type
 Key: LENS-1365
 URL: https://issues.apache.org/jira/browse/LENS-1365
 Project: Apache Lens
  Issue Type: Bug
Reporter: Puneet Gupta






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


[jira] [Created] (LENS-1363) Error While building Lens Site

2016-10-24 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1363:
--

 Summary: Error While building Lens Site
 Key: LENS-1363
 URL: https://issues.apache.org/jira/browse/LENS-1363
 Project: Apache Lens
  Issue Type: Sub-task
Reporter: Puneet Gupta
Assignee: Puneet Gupta


The output of enunciate had changed after upgrading it. 
Need to update tools/scripts/generate-site-public.sh accordingly. 



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


Re: Review Request 52924: LENS-1359: Add driver hooks for user based filtering of queries

2016-10-21 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52924/#review153518
---


Ship it!




Ship It!

- Puneet Gupta


On Oct. 19, 2016, 12:06 p.m., Rajat Khandelwal wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52924/
> ---
> 
> (Updated Oct. 19, 2016, 12:06 p.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1359
> https://issues.apache.org/jira/browse/LENS-1359
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> 
> Diffs
> -
> 
>   lens-api/src/main/java/org/apache/lens/api/parse/Parser.java PRE-CREATION 
>   lens-driver-hive/src/main/resources/hivedriver-default.xml 
> f5fd3bb20b9d6b82292c4483d860ea14c8104c5c 
>   
> lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java
>  43b33f331f4d9017d76bccbe0f6936aaeb184f8f 
>   
> lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java
>  961ec4ec781d3d7fd0f28edc4f23e9b39549592f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/LensConfConstants.java
>  3ae59c6ca126f0a3535974352adf97e7a495838f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/AbstractLensDriver.java
>  8f30aa06ab234cedb53acb17544210ba4190ab53 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverConfiguration.java
>  69a1a0b7ce57c24602a17ea7c97c0664a77c6568 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverQueryHook.java
>  f8a9ee07d8c8b737a41de339ab44ca7752c90748 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/LensDriver.java
>  146223942d05cfd952599297144e2a6bc02df273 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/NoOpDriverQueryHook.java
>  4f1f2eb99ed0bec8e6e471a9723a6b002a092202 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/ChainedDriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/DriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/NoOpDriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/QueryCostBasedQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/query/cost/FactPartitionBasedQueryCost.java
>  476855021288ff0d91762d240cb04c8aea9d302b 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/query/cost/QueryCost.java
>  4712f11e94f93d34b71f4f3ddb7c19af003d9fca 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/DriverConfigurationTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/ChainedDriverQueryHookTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/QueryCostBasedQueryHookTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHookTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/user/MockDriverQueryHook.java
>  f70979abf7c44d3b4ed3588628de5a7517adfa81 
>   lens-server/src/main/resources/lensserver-default.xml 
> 8e5fe8a2b7f9ddfcadef104189b89c40ca1b3df6 
>   pom.xml 4928c1fa840fc51e4383ed4803f94102aa833221 
>   src/site/apt/admin/config.apt f22fc0c36f53fa7227dc990c58a079e66630a2a1 
>   src/site/apt/admin/hivedriver-config.apt 
> b1a25c3b5bb58fc2d0773dc168c110ee5e60c635 
> 
> Diff: https://reviews.apache.org/r/52924/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Rajat Khandelwal
> 
>



[RESULT][VOTE] Release of Apache Lens 2.6.1

2016-10-20 Thread Puneet Gupta
Hi all,

Thanks for taking time to validate the release candidate and
vote. Voting is closed now.

Vote has passed with 4 [+1] votes and no [0] or [-1] votes.

+1 votes:
Raju Bairishetti
Amareshwari Sriramadasu
Puneet Gupta
Rajat Khandelwal

Archana H(non-binding)


+0 No votes

-1 No votes

Vote thread:
http://mail-archives.apache.org/mod_mbox/lens-dev/201609.mbox/%3cCAFNbQoWXa7xbBinLWXZcSAziRU0a=49rk_tp+_yjookvkot...@mail.gmail.com%3e


I will proceed to next set of steps for the release.


Regards,
Puneet Gupta


Re: [VOTE] Release of Apache Lens 2.6.1

2016-10-20 Thread Puneet Gupta
Was able to run all 151 the examples with apache-hive-2.1.0 (HIVE_HOME//lib/*
jars were linked to HADOOP_HOME/share/hadoop/common/lib)

Successful queries 151 out of 151queries
Total time for running examples(in millis) :945103



On Thu, Sep 29, 2016 at 7:17 PM, archana h  wrote:

> Build  : Successful.
> Example queries : Successful queries 47 out of 151 queries.
> Regression tests had all passed. (apart from few known bugs)
>
>  +1 from my side for release.
>
>
> On Thu, Sep 29, 2016 at 6:18 PM, Rajat Khandelwal 
> wrote:
>
> > Build passed.
> > Tried running examples, and got errors as Amareshwari mentioned.
> >
> > Won't block release for this, +1 from my side for releasing.
> >
>


Re: Review Request 52924: LENS-1359: Add driver hooks for user based filtering of queries

2016-10-19 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52924/#review153254
---




lens-driver-hive/src/main/resources/hivedriver-default.xml (line 38)
<https://reviews.apache.org/r/52924/#comment222531>





lens-driver-hive/src/main/resources/hivedriver-default.xml (line 38)
<https://reviews.apache.org/r/52924/#comment222532>

We can stop supporting the old property "lens.driver.hive.query.hook.class" 
since we are chnaging the package anyway (incomptible change)



lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/DriverQueryHook.java
 (line 22)
<https://reviews.apache.org/r/52924/#comment222536>

Package change is an incompatible change for people implementing their 
hooks. Can we leave and comment of JIRA and also tag it incompatible



lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/QueryCostBasedQueryHook.java
 (line 36)
<https://reviews.apache.org/r/52924/#comment222537>

Comment needs update.



lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/QueryCostBasedQueryHook.java
 (line 131)
<https://reviews.apache.org/r/52924/#comment222540>

This  should be the driver that created this hook (and not selected driver)



lens-server-api/src/main/java/org/apache/lens/server/api/query/cost/FactPartitionBasedQueryCost.java
 (line 74)
<https://reviews.apache.org/r/52924/#comment222545>

Can we move the  parser to non error package ?


- Puneet Gupta


On Oct. 18, 2016, 2:35 p.m., Rajat Khandelwal wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52924/
> ---
> 
> (Updated Oct. 18, 2016, 2:35 p.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1359
> https://issues.apache.org/jira/browse/LENS-1359
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> 
> Diffs
> -
> 
>   lens-api/src/main/java/org/apache/lens/api/error/parse/Parser.java 
> PRE-CREATION 
>   lens-driver-hive/src/main/resources/hivedriver-default.xml 
> f5fd3bb20b9d6b82292c4483d860ea14c8104c5c 
>   
> lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java
>  43b33f331f4d9017d76bccbe0f6936aaeb184f8f 
>   
> lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java
>  961ec4ec781d3d7fd0f28edc4f23e9b39549592f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/LensConfConstants.java
>  3ae59c6ca126f0a3535974352adf97e7a495838f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/AbstractLensDriver.java
>  8f30aa06ab234cedb53acb17544210ba4190ab53 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverConfiguration.java
>  69a1a0b7ce57c24602a17ea7c97c0664a77c6568 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverQueryHook.java
>  f8a9ee07d8c8b737a41de339ab44ca7752c90748 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/LensDriver.java
>  146223942d05cfd952599297144e2a6bc02df273 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/NoOpDriverQueryHook.java
>  4f1f2eb99ed0bec8e6e471a9723a6b002a092202 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/ChainedDriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/DriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/NoOpDriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/QueryCostBasedQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/query/cost/FactPartitionBasedQueryCost.java
>  476855021288ff0d91762d240cb04c8aea9d302b 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/query/cost/QueryCost.java
>  4712f11e94f93d34b71f4f3ddb7c19af003d9fca 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/DriverConfigurationTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/ChainedDriverQueryHookTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/QueryCostBasedQueryHookTest.java
>  PRE-CREATION 
>   
> lens-se

[jira] [Updated] (LENS-1325) Support encoded urls for query HTTP notifications

2016-10-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1325:
---
Status: Patch Available  (was: In Progress)

> Support encoded urls for query HTTP notifications
> -
>
> Key: LENS-1325
> URL: https://issues.apache.org/jira/browse/LENS-1325
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.7
>
> Attachments: lens-1325.v2.patch
>
>
> This notification url is working : 
> http://x:8000/v1/data/?access_token=ABC123
> This is giving 400 bad request : 
> http://:8000/v1/data/?access_token=ABC123&abs=xyz
> Please check.



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


[jira] [Updated] (LENS-1325) Support encoded urls for query HTTP notifications

2016-10-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1325:
---
Attachment: lens-1325.v2.patch

> Support encoded urls for query HTTP notifications
> -
>
> Key: LENS-1325
> URL: https://issues.apache.org/jira/browse/LENS-1325
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.7
>
> Attachments: lens-1325.v2.patch
>
>
> This notification url is working : 
> http://x:8000/v1/data/?access_token=ABC123
> This is giving 400 bad request : 
> http://:8000/v1/data/?access_token=ABC123&abs=xyz
> Please check.



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


[jira] [Commented] (LENS-1325) Support encoded urls for query HTTP notifications

2016-10-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1325:


https://reviews.apache.org/r/52341

> Support encoded urls for query HTTP notifications
> -
>
> Key: LENS-1325
> URL: https://issues.apache.org/jira/browse/LENS-1325
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.7
>
>
> This notification url is working : 
> http://x:8000/v1/data/?access_token=ABC123
> This is giving 400 bad request : 
> http://:8000/v1/data/?access_token=ABC123&abs=xyz
> Please check.



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


Re: Review Request 52341: LENS-1325: Support encoded urls for query HTTP notifications

2016-10-19 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52341/
---

(Updated Oct. 19, 2016, 9:50 a.m.)


Review request for lens.


Changes
---

- Fixed Review comment 
- Merged with master again


Bugs: lens-1325
https://issues.apache.org/jira/browse/lens-1325


Repository: lens


Description
---

1. Added test cases to test multiple query parsms 
2. Test with complex param value that requires encoding at the time of 
submission


Diffs (updated)
-

  
lens-server/src/main/java/org/apache/lens/server/query/QueryEventHttpNotifier.java
 1760bec 
  lens-server/src/main/resources/lenssession-default.xml b6bfa2e 
  
lens-server/src/test/java/org/apache/lens/server/query/TestQueryNotifictaionResource.java
 6a57b20 
  lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
415f56f 
  src/site/apt/admin/session-config.apt c4b3c04 

Diff: https://reviews.apache.org/r/52341/diff/


Testing
---

mvn  test 
-Dtest="org.apache.lens.server.query.TestQueryService#testFinishedNotifictaion" 
-pl lens-server


 T E S T S
---
Running org.apache.lens.server.query.TestQueryService
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 55.449 sec - in 
org.apache.lens.server.query.TestQueryService

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0


**Logs form TestQueryNotifictaionResource show params access_token and data are 
recived correctly** 

lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt:
 Received Finished Event for queryid: e16f40de-57cc-4d53-86f6-54dac397b04a 
queryname:testHttpNotifictaionQuery user:foo status:Progress: 1.0
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status:
 SUCCESSFUL
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status
 Message: Query is successful!
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Is
 Result Set Available: true
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-
 eventtype:FINISHED access_token:ABC123 data:null
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Sep
 28, 2016 4:35:05 PM org.glassfish.jersey.filter.LoggingFilter log
--
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt:
 Received Finished Event for queryid: e16f40de-57cc-4d53-86f6-54dac397b04a 
queryname:testHttpNotifictaionQuery user:foo status:Progress: 1.0
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status:
 SUCCESSFUL
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status
 Message: Query is successful!
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Is
 Result Set Available: true
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-
 eventtype:FINISHED access_token:ABC123 data:x<>yz,"abc
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Sep
 28, 2016 4:35:05 PM org.glassfish.jersey.filter.LoggingFilter log


**Logs from lens server show succes for both the urls**

puneet.gupta$ grep "QueryEventHttpNotifier - FINISHED HTTP Notification sent 
successfully" lens-server/target/test.log
28 Sep 2016 11:05:05 e16f40de-57cc-4d53-86f6-54dac397b04a 
[QueryEndHttpNotifier_AsyncThread-2] INFO  
org.apache.lens.server.query.QueryEventHttpNotifier - FINISHED HTTP 
Notification sent successfully for query e16f40de-57cc-4d53-86f6-54dac397b04a 
to 
http://localhost:49847/lens-server/queryapi/notifictaion/finished?access_token=ABC123.
 Response code 204
28 Sep 2016 11:05:05 e16f40de-57cc-4d53-86f6-54dac397b04a 
[QueryEndHttpNotifier_AsyncThread-2] INFO  
org.apache.lens.server.query.QueryEventHttpNotifier - FINISHED HTTP 
Notification sent successfully for query e16f40de-57cc-4d53-86f6-54dac397b04a 
to 
http://localhost:49847/lens-server/queryapi/notifictaion/finished?access_token=ABC123&data=x%3C%3Eyz%2C%22abc.
 Response code 204


Thanks,

Puneet Gupta



Re: Review Request 51964: LENS-317: Server side calls for updating database jars

2016-10-17 Thread Puneet Gupta
er/metastore/MetastoreResource.java
 (line 1581)
<https://reviews.apache.org/r/51964/#comment32>

This file size is passed by the client and can be dummy size. Do we need to 
reconfirm theactual size on server (This can be done while copying jar to 
local)?



lens-server/src/main/java/org/apache/lens/server/metastore/MetastoreResource.java
 (lines 1582 - 1584)
<https://reviews.apache.org/r/51964/#comment31>

Space required before FileSize and AllowedSize



lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (line 51)
<https://reviews.apache.org/r/51964/#comment221940>

can we update the variable name to match the ds



lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (line 84)
<https://reviews.apache.org/r/51964/#comment221943>





lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (line 91)
<https://reviews.apache.org/r/51964/#comment221947>

should we call this in the end ? I feel, the INITED state can be flagged 
after local initialization.



lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (lines 113 - 116)
<https://reviews.apache.org/r/51964/#comment221950>

else part can be skipped. resTopDir is already initialized. If it makes 
sense , we can move this initialization (resTopDir = 
getHiveConf().get(LensConfConstants.DATABASE_RESOURCE_DIR...)) to init() method 
also.



lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (line 121)
<https://reviews.apache.org/r/51964/#comment221977>

Should we change this to "DB resources base location does not exist" ?



lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (line 125)
<https://reviews.apache.org/r/51964/#comment221978>

Should we chnage the message to "Error locating DB resources base 
directory" ?



lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (line 192)
<https://reviews.apache.org/r/51964/#comment222001>

can we log "dbResEntryMap.get(dbname)" instaed



lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (line 295)
<https://reviews.apache.org/r/51964/#comment222037>

can we also add DB name in error message



lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
 (line 415)
<https://reviews.apache.org/r/51964/#comment23>

Should we remove Map from method name



lens-server/src/main/java/org/apache/lens/server/session/LensSessionImpl.java 
(line 429)
<https://reviews.apache.org/r/51964/#comment22>

When is readClassLoaderFromCache false ?


- Puneet Gupta


On Oct. 14, 2016, 8:29 a.m., Sushil Mohanty wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51964/
> ---
> 
> (Updated Oct. 14, 2016, 8:29 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-317
> https://issues.apache.org/jira/browse/LENS-317
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> Server side api call to update database jar without restarting lens server. 
> More details can be found in LENS-317.
> 
> 
> Diffs
> -
> 
>   
> lens-cli/src/main/java/org/apache/lens/cli/commands/LensDatabaseCommands.java 
> c6ae02b 
>   lens-client/src/main/java/org/apache/lens/client/LensClient.java e936798 
>   lens-client/src/main/java/org/apache/lens/client/LensConnection.java 
> bb15b23 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/LensConfConstants.java
>  8cf617b 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/metastore/CubeMetastoreService.java
>  28b9d22 
>   lens-server/pom.xml 6dea9a7 
>   
> lens-server/src/main/java/org/apache/lens/server/metastore/CubeMetastoreServiceImpl.java
>  8b10d1d 
>   
> lens-server/src/main/java/org/apache/lens/server/metastore/MetastoreResource.java
>  9d823da 
>   
> lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
>  511e4cf 
>   
> lens-server/src/main/java/org/apache/lens/server/session/LensSessionImpl.java 
> 34c901c 
>   lens-server/src/main/java/org/apache/lens/server/util/ScannedPaths.java 
> e48eab4 
>   lens-server/src/test/java/org/apache/lens/server/LensJerseyTest.java 
> 7cccf30 
>   lens-server/src/test/java/org/apache/lens/server/LensServerTestUtil.java 
> 67cee57 
>   
> lens-server/src/test/java/org/apache/lens/server/metastore/TestDatabaseService.java
>  PRE-CREATION 
>   
> lens-server/src/test/java/

Re: Review Request 52924: LENS-1359: Add driver hooks for user based filtering of queries

2016-10-17 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52924/#review152869
---




lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/PriorityBasedQueryHook.java
 (line 42)
<https://reviews.apache.org/r/52924/#comment222034>

This needs to be done based on cost in post estimate.


- Puneet Gupta


On Oct. 17, 2016, 12:08 p.m., Rajat Khandelwal wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52924/
> ---
> 
> (Updated Oct. 17, 2016, 12:08 p.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1359
> https://issues.apache.org/jira/browse/LENS-1359
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> 
> Diffs
> -
> 
>   lens-driver-hive/src/main/resources/hivedriver-default.xml 
> f5fd3bb20b9d6b82292c4483d860ea14c8104c5c 
>   
> lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java
>  43b33f331f4d9017d76bccbe0f6936aaeb184f8f 
>   
> lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java
>  961ec4ec781d3d7fd0f28edc4f23e9b39549592f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/LensConfConstants.java
>  3ae59c6ca126f0a3535974352adf97e7a495838f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/AbstractLensDriver.java
>  8f30aa06ab234cedb53acb17544210ba4190ab53 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverConfiguration.java
>  69a1a0b7ce57c24602a17ea7c97c0664a77c6568 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverQueryHook.java
>  f8a9ee07d8c8b737a41de339ab44ca7752c90748 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/LensDriver.java
>  146223942d05cfd952599297144e2a6bc02df273 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/NoOpDriverQueryHook.java
>  4f1f2eb99ed0bec8e6e471a9723a6b002a092202 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/ChainedDriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/DriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/NoOpDriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/PriorityBasedQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/DriverConfigurationTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/ChainedDriverQueryHookTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/PriorityBasedQueryHookTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHookTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/user/MockDriverQueryHook.java
>  f70979abf7c44d3b4ed3588628de5a7517adfa81 
>   src/site/apt/admin/hivedriver-config.apt 
> b1a25c3b5bb58fc2d0773dc168c110ee5e60c635 
> 
> Diff: https://reviews.apache.org/r/52924/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Rajat Khandelwal
> 
>



Re: Review Request 52924: LENS-1359: Add driver hooks for user based filtering of queries

2016-10-17 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52924/#review152845
---




lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/ChainedDriverQueryHook.java
 (line 38)
<https://reviews.apache.org/r/52924/#comment222011>

Can we add a  simple test case for this? To keep it simple we can use 
mutiple usser hooks in the chain and test pre rewrite.



lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHook.java
 (line 28)
<https://reviews.apache.org/r/52924/#comment222007>

Should we add class level documentation expaling when this will be useful ?



lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHook.java
 (lines 31 - 32)
<https://reviews.apache.org/r/52924/#comment222009>

Can we use a Set instead for faster search/conatins opeartion ?


- Puneet Gupta


On Oct. 17, 2016, 10:25 a.m., Rajat Khandelwal wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52924/
> ---
> 
> (Updated Oct. 17, 2016, 10:25 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1359
> https://issues.apache.org/jira/browse/LENS-1359
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> 
> Diffs
> -
> 
>   lens-driver-hive/src/main/resources/hivedriver-default.xml 
> f5fd3bb20b9d6b82292c4483d860ea14c8104c5c 
>   
> lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java
>  43b33f331f4d9017d76bccbe0f6936aaeb184f8f 
>   
> lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java
>  961ec4ec781d3d7fd0f28edc4f23e9b39549592f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/LensConfConstants.java
>  3ae59c6ca126f0a3535974352adf97e7a495838f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/AbstractLensDriver.java
>  8f30aa06ab234cedb53acb17544210ba4190ab53 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverConfiguration.java
>  69a1a0b7ce57c24602a17ea7c97c0664a77c6568 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverQueryHook.java
>  f8a9ee07d8c8b737a41de339ab44ca7752c90748 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/LensDriver.java
>  146223942d05cfd952599297144e2a6bc02df273 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/NoOpDriverQueryHook.java
>  4f1f2eb99ed0bec8e6e471a9723a6b002a092202 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/ChainedDriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/DriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/NoOpDriverQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHook.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/DriverConfigurationTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/driver/hooks/UserBasedQueryHookTest.java
>  PRE-CREATION 
>   
> lens-server-api/src/test/java/org/apache/lens/server/api/user/MockDriverQueryHook.java
>  f70979abf7c44d3b4ed3588628de5a7517adfa81 
>   src/site/apt/admin/hivedriver-config.apt 
> b1a25c3b5bb58fc2d0773dc168c110ee5e60c635 
> 
> Diff: https://reviews.apache.org/r/52924/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Rajat Khandelwal
> 
>



[jira] [Commented] (LENS-1342) Unclosed InputStreamReader in PropertyBasedUserConfigLoader

2016-10-14 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1342:


[~yuzhih...@gmail.com] can you post a patch for this ?

> Unclosed InputStreamReader in PropertyBasedUserConfigLoader
> ---
>
> Key: LENS-1342
> URL: https://issues.apache.org/jira/browse/LENS-1342
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Ted Yu
>Priority: Minor
>
> {code}
> try {
>   properties.load(new InputStreamReader(new FileInputStream(new 
> File(filename)), "UTF-8"));
> } catch (IOException e) {
>   throw new UserConfigLoaderException("property file not found. Provided 
> path was: " + filename);
> }
> {code}
> The InputStreamReader should be closed upon return from the method.



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


Re: Review Request 52341: LENS-1325: Support encoded urls for query HTTP notifications

2016-10-02 Thread Puneet Gupta


> On Sept. 29, 2016, 9:59 a.m., Amareshwari Sriramadasu wrote:
> > lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java,
> >  line 1910
> > <https://reviews.apache.org/r/52341/diff/1/?file=1511960#file1511960line1910>
> >
> > Should we encode the full url, instead of only values passed?

lens server is posting notification on the received url as such without 
modifying it. To do this the base path should not be encoded. only parameter 
values need to be encoded incase they have special characters. if the parameter 
values have no special character, encoding is not required.


- Puneet


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52341/#review150831
---


On Sept. 28, 2016, 11:18 a.m., Puneet Gupta wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52341/
> ---
> 
> (Updated Sept. 28, 2016, 11:18 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: lens-1325
> https://issues.apache.org/jira/browse/lens-1325
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> 1. Added test cases to test multiple query parsms 
> 2. Test with complex param value that requires encoding at the time of 
> submission
> 
> 
> Diffs
> -
> 
>   
> lens-server/src/main/java/org/apache/lens/server/query/QueryEventHttpNotifier.java
>  f264603c03f3444d2d38e17be9f6b1fcd708d0bf 
>   
> lens-server/src/test/java/org/apache/lens/server/query/TestQueryNotifictaionResource.java
>  3a3f2f150505e43a9f8c3f9f0ec9d7b431f1c0d0 
>   
> lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
> f755508529f6745caadd8eee0f63e81e1f14ed75 
> 
> Diff: https://reviews.apache.org/r/52341/diff/
> 
> 
> Testing
> ---
> 
> mvn  test 
> -Dtest="org.apache.lens.server.query.TestQueryService#testFinishedNotifictaion"
>  -pl lens-server
> 
> 
>  T E S T S
> ---
> Running org.apache.lens.server.query.TestQueryService
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 55.449 sec - 
> in org.apache.lens.server.query.TestQueryService
> 
> Results :
> 
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
> 
> 
> **Logs form TestQueryNotifictaionResource show params access_token and data 
> are recived correctly** 
> 
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt:
>  Received Finished Event for queryid: e16f40de-57cc-4d53-86f6-54dac397b04a 
> queryname:testHttpNotifictaionQuery user:foo status:Progress: 1.0
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status:
>  SUCCESSFUL
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status
>  Message: Query is successful!
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Is
>  Result Set Available: true
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-
>  eventtype:FINISHED access_token:ABC123 data:null
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Sep
>  28, 2016 4:35:05 PM org.glassfish.jersey.filter.LoggingFilter log
> --
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt:
>  Received Finished Event for queryid: e16f40de-57cc-4d53-86f6-54dac397b04a 
> queryname:testHttpNotifictaionQuery user:foo status:Progress: 1.0
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status:
>  SUCCESSFUL
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status
>  Message: Query is successful!
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Is
>  Result Set Available: true
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-
>  eventtype:FINISHED access_token:ABC123 data:x<>yz,"abc
> lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Sep
>  28, 2016 4:35:05 PM org.glassfish.jersey.filter.LoggingFilter log
> 
> 
> **Logs from lens server show succes for both the urls**
> 
> puneet.gupta$ grep "QueryEventHttpNotifier - FINISHED HTTP N

Re: Review Request 52341: LENS-1325: Support encoded urls for query HTTP notifications

2016-09-28 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52341/
---

(Updated Sept. 28, 2016, 11:18 a.m.)


Review request for lens.


Changes
---

Updated testing messages


Bugs: lens-1325
https://issues.apache.org/jira/browse/lens-1325


Repository: lens


Description
---

1. Added test cases to test multiple query parsms 
2. Test with complex param value that requires encoding at the time of 
submission


Diffs
-

  
lens-server/src/main/java/org/apache/lens/server/query/QueryEventHttpNotifier.java
 f264603c03f3444d2d38e17be9f6b1fcd708d0bf 
  
lens-server/src/test/java/org/apache/lens/server/query/TestQueryNotifictaionResource.java
 3a3f2f150505e43a9f8c3f9f0ec9d7b431f1c0d0 
  lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
f755508529f6745caadd8eee0f63e81e1f14ed75 

Diff: https://reviews.apache.org/r/52341/diff/


Testing (updated)
---

mvn  test 
-Dtest="org.apache.lens.server.query.TestQueryService#testFinishedNotifictaion" 
-pl lens-server


 T E S T S
---
Running org.apache.lens.server.query.TestQueryService
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 55.449 sec - in 
org.apache.lens.server.query.TestQueryService

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0


**Logs form TestQueryNotifictaionResource show params access_token and data are 
recived correctly** 

lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt:
 Received Finished Event for queryid: e16f40de-57cc-4d53-86f6-54dac397b04a 
queryname:testHttpNotifictaionQuery user:foo status:Progress: 1.0
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status:
 SUCCESSFUL
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status
 Message: Query is successful!
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Is
 Result Set Available: true
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-
 eventtype:FINISHED access_token:ABC123 data:null
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Sep
 28, 2016 4:35:05 PM org.glassfish.jersey.filter.LoggingFilter log
--
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt:
 Received Finished Event for queryid: e16f40de-57cc-4d53-86f6-54dac397b04a 
queryname:testHttpNotifictaionQuery user:foo status:Progress: 1.0
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status:
 SUCCESSFUL
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status
 Message: Query is successful!
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Is
 Result Set Available: true
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-
 eventtype:FINISHED access_token:ABC123 data:x<>yz,"abc
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Sep
 28, 2016 4:35:05 PM org.glassfish.jersey.filter.LoggingFilter log


**Logs from lens server show succes for both the urls**

puneet.gupta$ grep "QueryEventHttpNotifier - FINISHED HTTP Notification sent 
successfully" lens-server/target/test.log
28 Sep 2016 11:05:05 e16f40de-57cc-4d53-86f6-54dac397b04a 
[QueryEndHttpNotifier_AsyncThread-2] INFO  
org.apache.lens.server.query.QueryEventHttpNotifier - FINISHED HTTP 
Notification sent successfully for query e16f40de-57cc-4d53-86f6-54dac397b04a 
to 
http://localhost:49847/lens-server/queryapi/notifictaion/finished?access_token=ABC123.
 Response code 204
28 Sep 2016 11:05:05 e16f40de-57cc-4d53-86f6-54dac397b04a 
[QueryEndHttpNotifier_AsyncThread-2] INFO  
org.apache.lens.server.query.QueryEventHttpNotifier - FINISHED HTTP 
Notification sent successfully for query e16f40de-57cc-4d53-86f6-54dac397b04a 
to 
http://localhost:49847/lens-server/queryapi/notifictaion/finished?access_token=ABC123&data=x%3C%3Eyz%2C%22abc.
 Response code 204


Thanks,

Puneet Gupta



Review Request 52341: LENS-1325: Support encoded urls for query HTTP notifications

2016-09-28 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52341/
---

Review request for lens.


Bugs: lens-1325
https://issues.apache.org/jira/browse/lens-1325


Repository: lens


Description
---

1. Added test cases to test multiple query parsms 
2. Test with complex param value that requires encoding at the time of 
submission


Diffs
-

  
lens-server/src/main/java/org/apache/lens/server/query/QueryEventHttpNotifier.java
 f264603c03f3444d2d38e17be9f6b1fcd708d0bf 
  
lens-server/src/test/java/org/apache/lens/server/query/TestQueryNotifictaionResource.java
 3a3f2f150505e43a9f8c3f9f0ec9d7b431f1c0d0 
  lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
f755508529f6745caadd8eee0f63e81e1f14ed75 

Diff: https://reviews.apache.org/r/52341/diff/


Testing
---

mvn  test 
-Dtest="org.apache.lens.server.query.TestQueryService#testFinishedNotifictaion" 
-pl lens-server


 T E S T S
---
Running org.apache.lens.server.query.TestQueryService
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 55.449 sec - in 
org.apache.lens.server.query.TestQueryService

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0


**Logs form TestQueryNotifictaionResource show params access_token and data are 
recived correctly 

lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt:
 Received Finished Event for queryid: e16f40de-57cc-4d53-86f6-54dac397b04a 
queryname:testHttpNotifictaionQuery user:foo status:Progress: 1.0
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status:
 SUCCESSFUL
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status
 Message: Query is successful!
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Is
 Result Set Available: true
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-
 eventtype:FINISHED access_token:ABC123 data:null
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Sep
 28, 2016 4:35:05 PM org.glassfish.jersey.filter.LoggingFilter log
--
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt:
 Received Finished Event for queryid: e16f40de-57cc-4d53-86f6-54dac397b04a 
queryname:testHttpNotifictaionQuery user:foo status:Progress: 1.0
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status:
 SUCCESSFUL
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Status
 Message: Query is successful!
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Is
 Result Set Available: true
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-
 eventtype:FINISHED access_token:ABC123 data:x<>yz,"abc
lens-server/target/surefire-reports/org.apache.lens.server.query.TestQueryService-output.txt-Sep
 28, 2016 4:35:05 PM org.glassfish.jersey.filter.LoggingFilter log


Thanks,

Puneet Gupta



[jira] [Work started] (LENS-1325) Support encoded urls for query HTTP notifications

2016-09-28 Thread Puneet Gupta (JIRA)

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

Work on LENS-1325 started by Puneet Gupta.
--
> Support encoded urls for query HTTP notifications
> -
>
> Key: LENS-1325
> URL: https://issues.apache.org/jira/browse/LENS-1325
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.7
>
>
> This notification url is working : 
> http://x:8000/v1/data/?access_token=ABC123
> This is giving 400 bad request : 
> http://:8000/v1/data/?access_token=ABC123&abs=xyz
> Please check.



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


Re: [VOTE] Release of Apache Lens 2.6.1

2016-09-28 Thread Puneet Gupta
Guys, I will be traveling. Will be back after a week.
In my absence Rajat Khandelwal will take care of 2.6.1 release

Thanks,
Puneet Gupta

On Wed, Sep 28, 2016 at 2:24 PM, Amareshwari Sriramdasu <
amareshw...@apache.org> wrote:

> +1 to release the candidate. But found a couple of issues with release
> which are noted down.
>
> Verified the following :
> + Jars in Nexus repo  : Good.
> + Signatures : Good
> + Checksums : Good
> + No unexpected binaries found in the source release.
> + NOTICE is good.
> + Building from source : Successful
> - LICENSE issues : found an issue with one of the files
> : ./lens-ui/app/dispatcher/AppDispatcher.js
> The file is having copyright from Facebook and text says the license is BSD
> style which is in root directory of the source. But I don't see any
> corresponding license in root directory of the source. Seems the file is
> added in 2.5 release itself, but we need to put its corresponding license
> to top level LICENSE file. I'm fine fixing it in next release.
> - Ran examples from binary distribution : Seeing all cube queries are
> failing. Not sure if the issue is only with examples.
>
> 
>
> Successful queries 14 out of 151queries
>
> Total time for running examples(in millis) :39462
>
> ---
>
> Thanks
> Amareshwari
>
> On Tue, Sep 27, 2016 at 7:43 PM, Puneet Gupta 
> wrote:
>
> > Hi everyone,
> >
> > I propose the following RC to be released as official Apache Lens 2.6.1
> > release.
> >
> > The commit id is 7224d832de56ac7a22a06bb285808cfac33f32f2:
> > http://git-wip-us.apache.org/repos/asf/lens/commit/7224d832d
> >
> > This corresponds to the tag: apache-lens-2.6.1:
> > https://git-wip-us.apache.org/repos/asf?p=lens.git;a=tag;h=r
> > efs/tags/apache-lens-2.6.1
> >
> > Release archives (tar.gz/.zip), signature, and checksums are here:
> > https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.1-rc0/
> >
> > You can find the KEYS file here:
> > https://dist.apache.org/repos/dist/release/lens/KEYS
> >
> > The release candidate consists of the following source distribution
> archive
> > apache-lens-2.6.1-source-release.zip:
> > https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.
> > 1-rc0/apache-lens-2.6.1-source-release.zip
> >
> > In addition, the following supplementary binary distributions are
> provided
> > for user convenience at the same location:apache-lens-2.6.1-bin.tar.gz:
> > https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.
> > 1-rc0/apache-lens-2.6.1-bin.tar.gz
> >
> > The licensing of bundled bits in the archives are documented at
> > https://cwiki.apache.org/confluence/display/LENS/
> Licensing+in+Apache+Lens
> >
> > Nexus staging url:
> > https://repository.apache.org/content/repositories/orgapachelens-1010/
> >
> > Release notes available at
> > https://issues.apache.org/jira/secure/ReleaseNote.jspa?proje
> > ctId=12315923&version=12333846
> >
> >
> > Vote will be open for at least 72 hours
> >
> > [ ] +1 approve
> > [ ] 0 no opinion
> > [ ] -1 disapprove (and reason why)
> >
> > +1 from my side for the release.
> >
> > For folks not familiar with vetting a release, please refer to
> >
> > http://incubator.apache.org/guides/releasemanagement.html#check-list
> >
>


Re: Review Request 52337: LENS-1324: Support more hooks in DriverQueryHook

2016-09-28 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52337/
---

(Updated Sept. 28, 2016, 7:04 a.m.)


Review request for lens.


Changes
---

Fixed Checkstyle


Bugs: lens-1324
https://issues.apache.org/jira/browse/lens-1324


Repository: lens


Description
---

Currently we have two hooks 
1. preLaunch
2. postDriverSelection

Need to add some hooks that can hook into rewrite and estimate flow also. 
1.preRewrite, postRewrite
2.preEstimate,postEstimate

NoOpDriverQueryHook will have default empty implementation for these new 
methods .

Also added  void setDriver(LensDriver driver) in Driver Hook to pass the driver 
information.


Diffs (updated)
-

  lens-driver-hive/src/main/java/org/apache/lens/driver/hive/HiveDriver.java 
84d9933 
  lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/JDBCDriver.java 
3bf5e8f 
  
lens-server-api/src/main/java/org/apache/lens/server/api/driver/AbstractLensDriver.java
 03079e2 
  
lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverQueryHook.java
 da125bd 
  
lens-server-api/src/main/java/org/apache/lens/server/api/driver/NoOpDriverQueryHook.java
 8cd03cb 
  
lens-server-api/src/main/java/org/apache/lens/server/api/query/cost/FactPartitionBasedQueryCost.java
 792508b 
  
lens-server-api/src/test/java/org/apache/lens/server/api/driver/MockDriver.java 
168b3cc 
  
lens-server-api/src/test/java/org/apache/lens/server/api/user/MockDriverQueryHook.java
 0c4a3f0 
  
lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
 0bb106e 
  lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
f755508 

Diff: https://reviews.apache.org/r/52337/diff/


Testing
---

---
 T E S T S
---
Running org.apache.lens.server.query.TestQueryService
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 84.906 sec - in 
org.apache.lens.server.query.TestQueryService

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 04:41 min
[INFO] Finished at: 2016-09-28T11:47:07+05:30
[INFO] Final Memory: 133M/1482M
[INFO] 


Thanks,

Puneet Gupta



Re: Review Request 52028: LENS-1308: User config loader database calls not inserting entries

2016-09-27 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52028/#review150689
---


Fix it, then Ship it!




Ship It!


lens-server/src/main/java/org/apache/lens/server/query/LensServerDAO.java (line 
84)
<https://reviews.apache.org/r/52028/#comment218727>

Can we confirm that before this patch createFinishedQueriesTable() was not 
creating a table for a non in-memory database since there is no explicit commit 
statement and auto commit was turned off ?

Test cases seem to pass, but then we use in-memory dbs for test cases.


- Puneet Gupta


On Sept. 19, 2016, 11:35 a.m., Rajat Khandelwal wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52028/
> ---
> 
> (Updated Sept. 19, 2016, 11:35 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1308
> https://issues.apache.org/jira/browse/LENS-1308
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> 
> Diffs
> -
> 
>   lens-server/src/main/java/org/apache/lens/server/query/LensServerDAO.java 
> 2ec938e951522b3026f6485ff900268d6e0039cd 
>   lens-server/src/main/java/org/apache/lens/server/util/UtilityMethods.java 
> 90226d121b5a1ca50e3fcb786437a9198d97a692 
> 
> Diff: https://reviews.apache.org/r/52028/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Rajat Khandelwal
> 
>



[jira] [Commented] (LENS-1324) Support more hooks in DriverQueryHook

2016-09-27 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1324:


https://reviews.apache.org/r/52337/

> Support more hooks in DriverQueryHook
> -
>
> Key: LENS-1324
> URL: https://issues.apache.org/jira/browse/LENS-1324
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.7
>
>
> Currently we have two hooks 
> 1. preLaunch
> 2. postDriverSelection
> Need to add some hooks that can hook into rewrite and estimate flow also. 
> 1.preRewrite, postRewrite
> 2.preEstimate,postEstimate
> NoOpDriverQueryHook will have default empty implementation for these new 
> methods .



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


Review Request 52337: LENS-1324: Support more hooks in DriverQueryHook

2016-09-27 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52337/
---

Review request for lens.


Bugs: lens-1324
https://issues.apache.org/jira/browse/lens-1324


Repository: lens


Description
---

Currently we have two hooks 
1. preLaunch
2. postDriverSelection

Need to add some hooks that can hook into rewrite and estimate flow also. 
1.preRewrite, postRewrite
2.preEstimate,postEstimate

NoOpDriverQueryHook will have default empty implementation for these new 
methods .

Also added  void setDriver(LensDriver driver) in Driver Hook to pass the driver 
information.


Diffs
-

  lens-driver-hive/src/main/java/org/apache/lens/driver/hive/HiveDriver.java 
84d9933da506e3f1bff2d3e0ea403ed1edf0fe35 
  lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/JDBCDriver.java 
3bf5e8f7dc9d032e46d06c3245048096acb4572e 
  
lens-server-api/src/main/java/org/apache/lens/server/api/driver/AbstractLensDriver.java
 03079e2dc353fa028f3c5d5a03a8ae2dbf728004 
  
lens-server-api/src/main/java/org/apache/lens/server/api/driver/DriverQueryHook.java
 da125bd920aea82dc910fad92290d07fcc2a2387 
  
lens-server-api/src/main/java/org/apache/lens/server/api/driver/NoOpDriverQueryHook.java
 8cd03cb11ae88413973a9fc384fd828014b1aa0c 
  
lens-server-api/src/main/java/org/apache/lens/server/api/query/cost/FactPartitionBasedQueryCost.java
 792508b14b9228ff20437d03f78e38165d920798 
  
lens-server-api/src/test/java/org/apache/lens/server/api/driver/MockDriver.java 
168b3cc8a2e32e4fddb66f480af38e77adef62c2 
  
lens-server-api/src/test/java/org/apache/lens/server/api/user/MockDriverQueryHook.java
 0c4a3f05ce752091d2187badf2054c3926c7c9f6 
  
lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
 0bb106ed77306094710c126fc652d5c56a908d85 
  lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 
f755508529f6745caadd8eee0f63e81e1f14ed75 

Diff: https://reviews.apache.org/r/52337/diff/


Testing
---

---
 T E S T S
---
Running org.apache.lens.server.query.TestQueryService
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 84.906 sec - in 
org.apache.lens.server.query.TestQueryService

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 04:41 min
[INFO] Finished at: 2016-09-28T11:47:07+05:30
[INFO] Final Memory: 133M/1482M
[INFO] 


Thanks,

Puneet Gupta



[jira] [Work started] (LENS-1324) Support more hooks in DriverQueryHook

2016-09-27 Thread Puneet Gupta (JIRA)

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

Work on LENS-1324 started by Puneet Gupta.
--
> Support more hooks in DriverQueryHook
> -
>
> Key: LENS-1324
> URL: https://issues.apache.org/jira/browse/LENS-1324
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.7
>
>
> Currently we have two hooks 
> 1. preLaunch
> 2. postDriverSelection
> Need to add some hooks that can hook into rewrite and estimate flow also. 
> 1.preRewrite, postRewrite
> 2.preEstimate,postEstimate
> NoOpDriverQueryHook will have default empty implementation for these new 
> methods .



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


[jira] [Commented] (LENS-743) Query failure retries for transient errors

2016-09-27 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-743:
---

[~prongs] Thanks for documenting this one in such detail. +1 for dual re-policy 
(driver+server)

I had one doubt. Suppose we have 3 drivers (d1,d,2,d3).
Query was run on d1 and failed twice and d1's policy confirmed a no-retry. The 
server policy said try on d2,d3 and d2 was chosen based on cost. Then 2 tries 
were done on d2 and they failed too and d2's policy confirmed a no-retry. 
Will the server policy now try on d3 alone now or d1 and d3? 



> Query failure retries for transient errors
> --
>
> Key: LENS-743
> URL: https://issues.apache.org/jira/browse/LENS-743
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Rajat Khandelwal
>  Labels: gsoc2016, java
>
> There have to be retries for query failures for transient errors like network 
> errors (Hive server not reachable/ Metastore not reachable/ DB not 
> reachable). Retries should be available for each phase - submission, 
> execution, updating status, fetching results and formatting.
> Right now, any such failure results in marking query as failed.



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


[VOTE] Release of Apache Lens 2.6.1

2016-09-27 Thread Puneet Gupta
Hi everyone,

I propose the following RC to be released as official Apache Lens 2.6.1
release.

The commit id is 7224d832de56ac7a22a06bb285808cfac33f32f2:
http://git-wip-us.apache.org/repos/asf/lens/commit/7224d832d

This corresponds to the tag: apache-lens-2.6.1:
https://git-wip-us.apache.org/repos/asf?p=lens.git;a=tag;h=refs/tags/apache-lens-2.6.1

Release archives (tar.gz/.zip), signature, and checksums are here:
https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.1-rc0/

You can find the KEYS file here:
https://dist.apache.org/repos/dist/release/lens/KEYS

The release candidate consists of the following source distribution archive
apache-lens-2.6.1-source-release.zip:
https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.1-rc0/apache-lens-2.6.1-source-release.zip

In addition, the following supplementary binary distributions are provided
for user convenience at the same location:apache-lens-2.6.1-bin.tar.gz:
https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.1-rc0/apache-lens-2.6.1-bin.tar.gz

The licensing of bundled bits in the archives are documented at
https://cwiki.apache.org/confluence/display/LENS/Licensing+in+Apache+Lens

Nexus staging url:
https://repository.apache.org/content/repositories/orgapachelens-1010/

Release notes available at
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12315923&version=12333846


Vote will be open for at least 72 hours

[ ] +1 approve
[ ] 0 no opinion
[ ] -1 disapprove (and reason why)

+1 from my side for the release.

For folks not familiar with vetting a release, please refer to

http://incubator.apache.org/guides/releasemanagement.html#check-list


Re: Review Request 52297: LENS-1336: lens/contrib is not included in modules

2016-09-27 Thread Puneet Gupta

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/52297/#review150535
---


Ship it!




Ship It!

- Puneet Gupta


On Sept. 27, 2016, 8:17 a.m., Rajat Khandelwal wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/52297/
> ---
> 
> (Updated Sept. 27, 2016, 8:17 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1336
> https://issues.apache.org/jira/browse/LENS-1336
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> 
> Diffs
> -
> 
>   contrib/clients/python/README.md 93a19c998f7fb4b98c8f0d8f641c729a1391d24d 
>   contrib/clients/python/pom.xml a849038ba4c6b52fc898e3a7ae41c604e9452de1 
> 
> Diff: https://reviews.apache.org/r/52297/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Rajat Khandelwal
> 
>



[jira] [Updated] (LENS-1337) Update Release documentation for lens 2.6.1

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1337:
---
Attachment: lens-1337.v2.patch

"updated 2.6.x docs link to 2.6.1" in release-history.apt

> Update Release documentation for lens 2.6.1
> ---
>
> Key: LENS-1337
> URL: https://issues.apache.org/jira/browse/LENS-1337
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Affects Versions: 2.6
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
> Attachments: lens-1337.patch, lens-1337.v2.patch
>
>




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


[jira] [Assigned] (LENS-1337) Update Release documentation for lens 2.6.1

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta reassigned LENS-1337:
--

Assignee: Puneet Gupta

> Update Release documentation for lens 2.6.1
> ---
>
> Key: LENS-1337
> URL: https://issues.apache.org/jira/browse/LENS-1337
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1337.patch
>
>




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


[jira] [Comment Edited] (LENS-1337) Update Release documentation for lens 2.6.1

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta edited comment on LENS-1337 at 9/23/16 3:05 PM:
-

[~amareshwari] can you check the doc changes 


was (Author: puneet884):
@Amareshwari can you check the doc changes 

> Update Release documentation for lens 2.6.1
> ---
>
> Key: LENS-1337
> URL: https://issues.apache.org/jira/browse/LENS-1337
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1337.patch
>
>




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


[jira] [Commented] (LENS-1337) Update Release documentation for lens 2.6.1

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1337:


@Amareshwari can you check the doc changes 

> Update Release documentation for lens 2.6.1
> ---
>
> Key: LENS-1337
> URL: https://issues.apache.org/jira/browse/LENS-1337
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1337.patch
>
>




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


[jira] [Updated] (LENS-1337) Update Release documentation for lens 2.6.1

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1337:
---
Attachment: lens-1337.patch

> Update Release documentation for lens 2.6.1
> ---
>
> Key: LENS-1337
> URL: https://issues.apache.org/jira/browse/LENS-1337
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
> Attachments: lens-1337.patch
>
>




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


[jira] [Commented] (LENS-1337) Update Release documentation for lens 2.6.1

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1337:


Looks like only release-history.apt needs version change.  The download.apt 
should not require change in download link.

> Update Release documentation for lens 2.6.1
> ---
>
> Key: LENS-1337
> URL: https://issues.apache.org/jira/browse/LENS-1337
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>




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


[jira] [Issue Comment Deleted] (LENS-1336) lens/contrib is not included in modules

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1336:
---
Comment: was deleted

(was: Simple patch attaching directly .)

> lens/contrib is not included in modules 
> 
>
> Key: LENS-1336
> URL: https://issues.apache.org/jira/browse/LENS-1336
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
>Priority: Blocker
> Fix For: 2.6
>
>




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


[jira] [Updated] (LENS-1336) lens/contrib is not included in modules

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1336:
---
Attachment: (was: lens-1336.patch)

> lens/contrib is not included in modules 
> 
>
> Key: LENS-1336
> URL: https://issues.apache.org/jira/browse/LENS-1336
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
>Priority: Blocker
> Fix For: 2.6
>
>




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


[jira] [Updated] (LENS-1336) lens/contrib is not included in modules

2016-09-23 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1336:
---
Attachment: lens-1336.patch

Simple patch attaching directly .

> lens/contrib is not included in modules 
> 
>
> Key: LENS-1336
> URL: https://issues.apache.org/jira/browse/LENS-1336
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
>Priority: Blocker
> Fix For: 2.6
>
>




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


[jira] [Created] (LENS-1337) Update Release documentation for lens 2.6.1

2016-09-23 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1337:
--

 Summary: Update Release documentation for lens 2.6.1
 Key: LENS-1337
 URL: https://issues.apache.org/jira/browse/LENS-1337
 Project: Apache Lens
  Issue Type: Sub-task
Reporter: Puneet Gupta






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


Re: [VOTE] Release of Apache Lens 2.6.0

2016-09-23 Thread Puneet Gupta
Canceling the vote . LENS-1336 needs to be fixed to include lens contrib
module


Thanks,
Puneet Gupta

On Fri, Sep 23, 2016 at 5:59 PM, Raju Bairishetti  wrote:

> -1 from my side.
>
>   Looks like you need to manually update the version in contrib module
> after*
> release:prepare step* as version changes are done by release:prepare step.
>
> On Fri, Sep 23, 2016 at 5:02 PM, Raju Bairishetti  wrote:
>
> > Hi Puneet,
> >
> >Release version was not updated to 2.6.0 in *contrib* module(i.e.
> > python-lens-client) contrib-pom.xml
> > <https://github.com/apache/lens/blob/apache-lens-2.6.0/contrib/pom.xml>.
> > *contrib *module is not part of modules section.  So updating version
> > through `*mvn versions:set`*  command won't update the versions in the
> > contrib module. We need to update the release version manually :).
> >
> >  Can you update the release process about this issue on the  cwiki as
> well?
> >
> >  I have not verified release fully. I will post my vote after verifying
> > the release fully.
> >
> >
> > On Thu, Sep 22, 2016 at 10:34 PM, Puneet Gupta 
> > wrote:
> >
> >> Hi everyone,
> >>
> >> I propose the following RC to be released as official Apache Lens 2.6.0
> >> release.
> >>
> >> The commit id is 925094f44923b33767a9d1d4bc9ea6b2bb3fe229:
> >> http://git-wip-us.apache.org/repos/asf/lens/commit/925094f44
> >>
> >> This corresponds to the tag: apache-lens-2.6.0:
> >> https://git-wip-us.apache.org/repos/asf?p=lens.git;a=tag;h=r
> >> efs/tags/apache-lens-2.6.0
> >>
> >> Release archives (tar.gz/.zip), signature, and checksums are here:
> >> https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.0-rc0/
> >>
> >> You can find the KEYS file here:
> >> https://dist.apache.org/repos/dist/release/lens/KEYS
> >>
> >> The release candidate consists of the following source distribution
> >> archive
> >> apache-lens-2.6.0-source-release.zip:
> >> https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.
> >> 0-rc0/apache-lens-2.6.0-source-release.zip
> >>
> >> In addition, the following supplementary binary distributions are
> provided
> >> for user convenience at the same location:apache-lens-2.6.0-bin.tar.gz:
> >> https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.
> >> 0-rc0/apache-lens-2.6.0-bin.tar.gz
> >>
> >> The licensing of bundled bits in the archives are documented at
> >> https://cwiki.apache.org/confluence/display/LENS/Licensing+
> in+Apache+Lens
> >>
> >> Nexus staging url:
> >> https://repository.apache.org/content/repositories/orgapachelens-1009/
> >>
> >> Release notes available at
> >> https://issues.apache.org/jira/secure/ReleaseNote.jspa?proje
> >> ctId=12315923&version=12333846
> >>
> >>
> >> Vote will be open for at least 72 hours
> >>
> >> [ ] +1 approve
> >> [ ] 0 no opinion
> >> [ ] -1 disapprove (and reason why)
> >>
> >> +1 from my side for the release.
> >>
> >> For folks not familiar with vetting a release, please refer to
> >>
> >> http://incubator.apache.org/guides/releasemanagement.html#check-list
> >>
> >
> >
> >
> > --
> >
> > --
> > Thanks,
> > Raju Bairishetti,
> > www.lazada.com
> >
>
>
>
> --
>
> --
> Thanks,
> Raju Bairishetti,
> www.lazada.com
>

-- 
_
The information contained in this communication is intended solely for the 
use of the individual or entity to whom it is addressed and others 
authorized to receive it. It may contain confidential or legally privileged 
information. If you are not the intended recipient you are hereby notified 
that any disclosure, copying, distribution or taking any action in reliance 
on the contents of this information is strictly prohibited and may be 
unlawful. If you have received this communication in error, please notify 
us immediately by responding to this email and then delete it from your 
system. The firm is neither liable for the proper and complete transmission 
of the information contained in this communication nor for any delay in its 
receipt.


[jira] [Created] (LENS-1336) lens/contrib is not included in modules

2016-09-23 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1336:
--

 Summary: lens/contrib is not included in modules 
 Key: LENS-1336
 URL: https://issues.apache.org/jira/browse/LENS-1336
 Project: Apache Lens
  Issue Type: Bug
Reporter: Puneet Gupta
Priority: Blocker
 Fix For: 2.6






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


Re: Tableau with Lens

2016-09-22 Thread Puneet Gupta
+Deepak

Thanks,
Puneet Gupta

On Wed, Sep 21, 2016 at 7:53 PM, Pawan Malwal 
wrote:

> I followed the same document and tried it. But I did not use these
> parameters
>
> ? delimited by ;>#
>
> in my URL and also I am not sure if it is mandatory to put
> *lens-client-site.xml* in LENSCPPATH. I think it would  consider all the
> default values. Please let me know if you think I have missed something.
>
>
>
> Thanks
>
> Pawan Malwal
>
>
>
>
>
>
>
> *From:* amareshwarisr . [mailto:amareshw...@gmail.com]
> *Sent:* 21 September 2016 16:17
> *To:* dev ; Piyush Mukati 
> *Cc:* u...@lens.apache.org; Sharanabasappa G Keriwaddi 
> *Subject:* Re: Tableau with Lens
>
>
>
> AFAIK, JDBC client should automatically connect with correct url and
> configuration as documented at http://lens.apache.org/user/jd
> bc-client.html.
>
>
>
>
>
>
>
> On Wed, Sep 21, 2016 at 3:58 PM, Puneet Gupta 
> wrote:
>
> Can someone have a look at this feature.
> Jaideep, Amruth, Amareshwari ?
>
> Thanks,
> Puneet Gupta
>
> -- Forwarded message --
> From: Pawan Malwal 
> Date: Wed, Sep 21, 2016 at 11:24 AM
> Subject: RE: Tableau with Lens
> To: "u...@lens.apache.org" 
> Cc: Sharanabasappa G Keriwaddi 
>
>
> Hi Puneet,
>
>
>
> I tried using this JDBC driver “org.apache.lens.client.jdbc.L
> ensJdbcDriver”
> but it is throwing “No suitable driver found for jdbc”.
>
>
>
> I checked the code of LensJdbcDriver class and found that connect method is
> not implemented and it just returns null. Not sure if I have done it right.
> Please have a look at it and let me know your views.
>
>
>
> https://github.com/apache/lens/blob/master/lens-client/src/
> main/java/org/apache/lens/client/jdbc/LensJdbcDriver.java
>
>
>
>   *public* Connection connect(String s, Properties properties) *throws*
> SQLException {
>
> *return* *null*;
>
>   }
>
>
>
>
>
> Regards
>
> Pawan Malwal
>
>
>
> *From:* Puneet Gupta [mailto:puneet.gu...@inmobi.com]
> *Sent:* 19 September 2016 21:15
> *To:* u...@lens.apache.org
> *Subject:* Re: Tableau with Lens
>
>
>
>
> Hi Pawan,
>
>
>
> There is a JDBC driver . I think this will be the right place to look at to
> integrate with tableau.
>
> Also please note, there might be holes in JDBC driver implementation as its
> not tested throughly. Do give it a try. Making minor modifications should
> be easy.
>
>
>
> Code Path : lens-client/src/main/java/org/apache/lens/client/jdbc/
>
>
>
> Thanks,
>
> Puneet Gupta
>
>
>
> On Mon, Sep 19, 2016 at 6:20 PM, Pawan Malwal 
> wrote:
>
> Hi Lens Developers,
>
>
>
> I am trying to use Tableau with Lens. Not sure how it should be
> configured.? Is there any plugin or something.? Could you please let me
> know how can this be done or direct me to any link or documentation.
>
>
>
> Regards
>
> Pawan Malwal
>
>
>
>
>
>
>
>
>
>
>
>
>
> _
>
> The information contained in this communication is intended solely for the
> use of the individual or entity to whom it is addressed and others
> authorized to receive it. It may contain confidential or legally privileged
> information. If you are not the intended recipient you are hereby notified
> that any disclosure, copying, distribution or taking any action in reliance
> on the contents of this information is strictly prohibited and may be
> unlawful. If you have received this communication in error, please notify
> us immediately by responding to this email and then delete it from your
> system. The firm is neither liable for the proper and complete transmission
> of the information contained in this communication nor for any delay in its
> receipt.
>
> --
>
> _
> The information contained in this communication is intended solely for the
> use of the individual or entity to whom it is addressed and others
> authorized to receive it. It may contain confidential or legally privileged
> information. If you are not the intended recipient you are hereby notified
> that any disclosure, copying, distribution or taking any action in reliance
> on the contents of this information is strictly prohibited and may be
> unlawful. If you have received this communication in error, please notify
> us immediately by responding to this email and then delete it from your
> system. The firm is neither liable for the proper and complete transmission
> of the information contained in this communicat

[VOTE] Release of Apache Lens 2.6.0

2016-09-22 Thread Puneet Gupta
Hi everyone,

I propose the following RC to be released as official Apache Lens 2.6.0
release.

The commit id is 925094f44923b33767a9d1d4bc9ea6b2bb3fe229:
http://git-wip-us.apache.org/repos/asf/lens/commit/925094f44

This corresponds to the tag: apache-lens-2.6.0:
https://git-wip-us.apache.org/repos/asf?p=lens.git;a=tag;h=refs/tags/apache-lens-2.6.0

Release archives (tar.gz/.zip), signature, and checksums are here:
https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.0-rc0/

You can find the KEYS file here:
https://dist.apache.org/repos/dist/release/lens/KEYS

The release candidate consists of the following source distribution archive
apache-lens-2.6.0-source-release.zip:
https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.0-rc0/apache-lens-2.6.0-source-release.zip

In addition, the following supplementary binary distributions are provided
for user convenience at the same location:apache-lens-2.6.0-bin.tar.gz:
https://dist.apache.org/repos/dist/dev/lens/apache-lens-2.6.0-rc0/apache-lens-2.6.0-bin.tar.gz

The licensing of bundled bits in the archives are documented at
https://cwiki.apache.org/confluence/display/LENS/Licensing+in+Apache+Lens

Nexus staging url:
https://repository.apache.org/content/repositories/orgapachelens-1009/

Release notes available at
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12315923&version=12333846


Vote will be open for at least 72 hours

[ ] +1 approve
[ ] 0 no opinion
[ ] -1 disapprove (and reason why)

+1 from my side for the release.

For folks not familiar with vetting a release, please refer to

http://incubator.apache.org/guides/releasemanagement.html#check-list


[jira] [Commented] (LENS-1315) Update gpg keys in dist repo

2016-09-22 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1315:


Added here too 
https://dist.apache.org/repos/dist/release/lens/KEYS

> Update gpg keys in dist repo
> 
>
> Key: LENS-1315
> URL: https://issues.apache.org/jira/browse/LENS-1315
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
>




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


[jira] [Resolved] (LENS-1328) RAT Check for new files

2016-09-22 Thread Puneet Gupta (JIRA)

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

Puneet Gupta resolved LENS-1328.

   Resolution: Fixed
Fix Version/s: 2.6

> RAT Check for new files
> ---
>
> Key: LENS-1328
> URL: https://issues.apache.org/jira/browse/LENS-1328
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
>
> Check if any new files are added which are without Apache license notice. 
> Decide whether to add such files a part of rat check exclusion list in 
> POM.xml or not. 
> Steps: 
> - 'git tag' can give you all tags,  pick last release tag name 
> - git diff . In the less view, search for "\-\-\- 
> /dev/null" for finding files added. Search for "+++ /dev/null" for files 
> deleted. 
> One can also get list of added files  using : git dif  
> --summary | grep create . Example git diff apache-lens-2.5.0-beta --summary | 
> grep create 



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


[jira] [Resolved] (LENS-1329) Validate license for new dependencies

2016-09-22 Thread Puneet Gupta (JIRA)

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

Puneet Gupta resolved LENS-1329.

   Resolution: Fixed
Fix Version/s: 2.6

> Validate license for new dependencies
> -
>
> Key: LENS-1329
> URL: https://issues.apache.org/jira/browse/LENS-1329
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
>
> - Run "git diff  -- pom.xml"
> Example git diff apache-lens-2.5.0-beta -- pom.xml
> - Check the license for new dependencies and make sure its compatible with 
> apache licensing scheme https://www.apache.org/legal/resolved.html
> - If any of the new dependencies added  are not apache licensed, and are 
> getting bundled in binary distribution, LICENSE and NOTICE should be updated 
> in bin-dist-files/



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


[jira] [Commented] (LENS-1290) Number of open sessions for a user are going beyond his max defined limit

2016-09-22 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1290:


[~raju.bairishetti] Agree with your suggestion but we should not penalize the 
user for the session that is marked for close as from user's perspective its 
closed (the server needs it for some book keeping until the query fired from 
the session reached finished state) 

One more issue here that we found was such sessions were not expiring even 
though last access time was very old and the session should qualify for expiry. 
 We need to look at this flow too. 

> Number of open sessions for a user are going beyond his max defined limit
> -
>
> Key: LENS-1290
> URL: https://issues.apache.org/jira/browse/LENS-1290
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: open sessions.png
>
>
> Max Sessions for a user is configured as 100 . Seeing 200+  open sessions for 
> a user. Same is happing for other users too which 100+ open sessions. 
>  
> lens.server.max.sessions.per.user
> 100
>  



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


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

2016-09-21 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1331:


+1

> 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)


Fwd: Tableau with Lens

2016-09-21 Thread Puneet Gupta
Can someone have a look at this feature.
Jaideep, Amruth, Amareshwari ?

Thanks,
Puneet Gupta

-- Forwarded message --
From: Pawan Malwal 
Date: Wed, Sep 21, 2016 at 11:24 AM
Subject: RE: Tableau with Lens
To: "u...@lens.apache.org" 
Cc: Sharanabasappa G Keriwaddi 


Hi Puneet,



I tried using this JDBC driver “org.apache.lens.client.jdbc.LensJdbcDriver”
but it is throwing “No suitable driver found for jdbc”.



I checked the code of LensJdbcDriver class and found that connect method is
not implemented and it just returns null. Not sure if I have done it right.
Please have a look at it and let me know your views.



https://github.com/apache/lens/blob/master/lens-client/src/
main/java/org/apache/lens/client/jdbc/LensJdbcDriver.java



  *public* Connection connect(String s, Properties properties) *throws*
SQLException {

*return* *null*;

  }





Regards

Pawan Malwal



*From:* Puneet Gupta [mailto:puneet.gu...@inmobi.com]
*Sent:* 19 September 2016 21:15
*To:* u...@lens.apache.org
*Subject:* Re: Tableau with Lens



Hi Pawan,



There is a JDBC driver . I think this will be the right place to look at to
integrate with tableau.

Also please note, there might be holes in JDBC driver implementation as its
not tested throughly. Do give it a try. Making minor modifications should
be easy.



Code Path : lens-client/src/main/java/org/apache/lens/client/jdbc/



Thanks,

Puneet Gupta



On Mon, Sep 19, 2016 at 6:20 PM, Pawan Malwal 
wrote:

Hi Lens Developers,



I am trying to use Tableau with Lens. Not sure how it should be
configured.? Is there any plugin or something.? Could you please let me
know how can this be done or direct me to any link or documentation.



Regards

Pawan Malwal













_

The information contained in this communication is intended solely for the
use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally privileged
information. If you are not the intended recipient you are hereby notified
that any disclosure, copying, distribution or taking any action in reliance
on the contents of this information is strictly prohibited and may be
unlawful. If you have received this communication in error, please notify
us immediately by responding to this email and then delete it from your
system. The firm is neither liable for the proper and complete transmission
of the information contained in this communication nor for any delay in its
receipt.

-- 
_
The information contained in this communication is intended solely for the 
use of the individual or entity to whom it is addressed and others 
authorized to receive it. It may contain confidential or legally privileged 
information. If you are not the intended recipient you are hereby notified 
that any disclosure, copying, distribution or taking any action in reliance 
on the contents of this information is strictly prohibited and may be 
unlawful. If you have received this communication in error, please notify 
us immediately by responding to this email and then delete it from your 
system. The firm is neither liable for the proper and complete transmission 
of the information contained in this communication nor for any delay in its 
receipt.


[jira] [Updated] (LENS-1321) Add License message for properties files

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1321:
---
Resolution: Fixed
Status: Resolved  (was: Patch Available)

> Add License message for properties files
> 
>
> Key: LENS-1321
> URL: https://issues.apache.org/jira/browse/LENS-1321
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build, ml, regression
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6, 2.7
>
> Attachments: lens-1321.patch
>
>
> IM1995-X0:lens puneet.gupta$ git status
> On branch current-release-line
> Your branch is up-to-date with 'origin/current-release-line'.
> nothing to commit, working directory clean
> IM1995-X0:lens puneet.gupta$ git diff apache-lens-2.5.0-beta  --summary | 
> grep create | grep -v ".java" | grep -v ".yaml" | grep -v ".py"|grep -v 
> ".xml"|grep -v "control$"|grep -v ".data"
>  create mode 100644 lens-regression/src/main/resources/queries.properties
>  create mode 100644 
> lens-regression/src/main/resources/template.lens.properties



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


[jira] [Commented] (LENS-1321) Add License message for properties files

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1321:


Committed myself.

> Add License message for properties files
> 
>
> Key: LENS-1321
> URL: https://issues.apache.org/jira/browse/LENS-1321
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build, ml, regression
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6, 2.7
>
> Attachments: lens-1321.patch
>
>
> IM1995-X0:lens puneet.gupta$ git status
> On branch current-release-line
> Your branch is up-to-date with 'origin/current-release-line'.
> nothing to commit, working directory clean
> IM1995-X0:lens puneet.gupta$ git diff apache-lens-2.5.0-beta  --summary | 
> grep create | grep -v ".java" | grep -v ".yaml" | grep -v ".py"|grep -v 
> ".xml"|grep -v "control$"|grep -v ".data"
>  create mode 100644 lens-regression/src/main/resources/queries.properties
>  create mode 100644 
> lens-regression/src/main/resources/template.lens.properties



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


[jira] [Updated] (LENS-1321) Add License message for properties files

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1321:
---
Fix Version/s: 2.7

> Add License message for properties files
> 
>
> Key: LENS-1321
> URL: https://issues.apache.org/jira/browse/LENS-1321
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build, ml, regression
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6, 2.7
>
> Attachments: lens-1321.patch
>
>
> IM1995-X0:lens puneet.gupta$ git status
> On branch current-release-line
> Your branch is up-to-date with 'origin/current-release-line'.
> nothing to commit, working directory clean
> IM1995-X0:lens puneet.gupta$ git diff apache-lens-2.5.0-beta  --summary | 
> grep create | grep -v ".java" | grep -v ".yaml" | grep -v ".py"|grep -v 
> ".xml"|grep -v "control$"|grep -v ".data"
>  create mode 100644 lens-regression/src/main/resources/queries.properties
>  create mode 100644 
> lens-regression/src/main/resources/template.lens.properties



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


[jira] [Commented] (LENS-1332) Fetching large set of queries from Lens state store shouldn't allowed

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1332:


Can we cap the number of rows returned by this REST API.
If the cap is 1000 rows, we can add 1001 as limit in the SQL query and If we 
indeed get 1001 rows we can either fail this REST call with appropriate message 
or we can choose to return 1000 rows and indicate partial result.


> Fetching large set of queries from Lens state store shouldn't allowed
> -
>
> Key: LENS-1332
> URL: https://issues.apache.org/jira/browse/LENS-1332
> Project: Apache Lens
>  Issue Type: Improvement
>Affects Versions: 2.7
>Reporter: Srikanth Sundarrajan
>Assignee: Srikanth Sundarrajan
> Fix For: 2.7
>
>
> Currently when we query the Lens server to get a list of queries, it can 
> result in a deluge of results if appropriate and sane filters aren't applied 
> (particularly for finished queries). The proposal is to apply restrictions on 
> the filter conditions being used.
> For ex:
> * One of user name, query name should be present if time & status filters 
> aren't applied
> * If only time filter is present, it can't exceed (say 3 months)
> * If status before queried is exclusively unfinished queries, these 
> restrictions need not apply



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


[jira] [Resolved] (LENS-1330) Remove protobuf dependency from lens

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta resolved LENS-1330.

Resolution: Duplicate

> Remove protobuf dependency from lens
> 
>
> Key: LENS-1330
> URL: https://issues.apache.org/jira/browse/LENS-1330
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
>    Assignee: Puneet Gupta
>
> 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] [Assigned] (LENS-1330) Remove protobuf dependency from lens

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta reassigned LENS-1330:
--

Assignee: Puneet Gupta  (was: Archana H)

> Remove protobuf dependency from lens
> 
>
> Key: LENS-1330
> URL: https://issues.apache.org/jira/browse/LENS-1330
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
>    Assignee: Puneet Gupta
>
> 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-1314) Update 2.6 release documentation

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1314:
---
Fix Version/s: 2.6
   Status: Patch Available  (was: Open)

> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
> Attachments: lens-1314.v2.patch
>
>




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


[jira] [Updated] (LENS-1314) Update 2.6 release documentation

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1314:
---
Attachment: lens-1314.v2.patch

Updated patch . removed Lens 518 form incompatibility list (since its covered 
by  LENS-1198)

> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1314.v2.patch
>
>




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


[jira] [Updated] (LENS-1314) Update 2.6 release documentation

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1314:
---
Attachment: (was: lens-1314.patch)

> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1314.v2.patch
>
>




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


[jira] [Updated] (LENS-1013) DriverQueryHook should support postSelect option also.

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1013:
---
Labels: incompatible  (was: )

> DriverQueryHook should support postSelect option also.
> --
>
> Key: LENS-1013
> URL: https://issues.apache.org/jira/browse/LENS-1013
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>  Labels: incompatible
> Fix For: 2.6
>
> Attachments: lens-1013.v7.patch
>
>
> as of now DriverQueryHook has a preLaunch() method which is called just 
> before launching the query . 
> We should also have an option to interact with hook on postSelect() which 
> will be called once query has been accepted by lens server and appropriate 
> driver has been selected for it.
> Also as of now, the preLaunch() is called by individual driver. This should 
> be moved to server and drivers should not manage this operation. 



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


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

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1187:
---
Labels: incompatible  (was: )

> 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
>  Labels: incompatible
> 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] [Updated] (LENS-909) We should avoid sending email notification with inmemory results

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-909:
--
Labels: incompatible  (was: )

> We should avoid sending email notification with inmemory results
> 
>
> Key: LENS-909
> URL: https://issues.apache.org/jira/browse/LENS-909
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Puneet Gupta
>  Labels: incompatible
> Fix For: 2.6
>
> Attachments: lens-909.v8.patch
>
>
> Right now, when result is not persisted , result will be available in memory. 
> And user would fetch the results inmemory.
> With email notification being sent, only of them will be able to fetch 
> results.
> If email notifier already reads the results, then client cannot fetch and 
> vice versa.
> {noformat}
> 22 Dec 2015 05:23:55 [3afde72b-05ba-4979-91d0-185984e25a40] 
> [event_processor_thread] ERROR org.apache.lens.server.query.QueryEndNotifier 
> - Error retrieving result of query handle 
> 3afde72b-05ba-4979-91d0-185984e25a40 for sending e-mail
> org.apache.lens.server.api.error.LensException: INTERNAL_SERVER_ERROR
> at 
> org.apache.lens.driver.jdbc.JDBCResultSet.hasNext(JDBCResultSet.java:323) 
> ~[lens-driver-jdbc-2.5.1-inm.jar:2.5.1-inm]
> at 
> org.apache.lens.server.api.driver.InMemoryResultSet.toQueryResult(InMemoryResultSet.java:80)
>  ~[lens-server-api-2.5.1-inm.jar:2.5.1-inm]
> at 
> org.apache.lens.server.api.driver.InMemoryResultSet.toQueryResult(InMemoryResultSet.java:33)
>  ~[lens-server-api-2.5.1-inm.jar:2.5.1-inm]
> at 
> org.apache.lens.server.query.QueryEndNotifier.getResultMessage(QueryEndNotifier.java:163)
>  [classes/:na]
> at 
> org.apache.lens.server.query.QueryEndNotifier.createMailMessage(QueryEndNotifier.java:143)
>  [classes/:na]
> at 
> org.apache.lens.server.query.QueryEndNotifier.process(QueryEndNotifier.java:125)
>  [classes/:na]
> at 
> org.apache.lens.server.query.QueryEndNotifier.process(QueryEndNotifier.java:54)
>  [classes/:na]
> at 
> org.apache.lens.server.api.events.AsyncEventListener$2.run(AsyncEventListener.java:101)
>  [lens-server-api-2.5.1-inm.jar:2.5.1-inm]
> 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: You can't operate on a closed ResultSet!!!
> at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118) 
> ~[mchange-commons-java-0.2.9.jar:0.2.9]
> at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:77) 
> ~[mchange-commons-java-0.2.9.jar:0.2.9]
> at 
> com.mchange.v2.c3p0.impl.NewProxyResultSet.next(NewProxyResultSet.java:690) 
> ~[c3p0-0.9.5.jar:0.9.5]
> at 
> org.apache.lens.driver.jdbc.JDBCResultSet.hasNext(JDBCResultSet.java:317) 
> ~[lens-driver-jdbc-2.5.1-inm.jar:2.5.1-inm]
> at 
> org.apache.lens.driver.jdbc.JDBCResultSet.hasNext(JDBCResultSet.java:317) 
> ~[lens-driver-jdbc-2.5.1-inm.jar:2.5.1-inm]
> ... 10 common frames omitted
> Caused by: java.lang.NullPointerException: null
> at 
> com.mchange.v2.c3p0.impl.NewProxyResultSet.next(NewProxyResultSet.java:684) 
> ~[c3p0-0.9.5.jar:0.9.5]
> ... 11 common frames omitted
> {noformat}



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


[jira] [Updated] (LENS-1244) Mark 2.6.x release as GA and remove beta

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1244:
---
Labels: incompatible  (was: )

> Mark 2.6.x release as GA and remove beta 
> -
>
> Key: LENS-1244
> URL: https://issues.apache.org/jira/browse/LENS-1244
> Project: Apache Lens
>  Issue Type: Task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>Priority: Blocker
>  Labels: incompatible
> Fix For: 2.6
>
>
> Creating this issue to decide on whether we want to call current release 
> planned as GA release.
> Please see LENS-344 for the previous discussion on marking release as beta 



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


[jira] [Updated] (LENS-833) Limit number of open sessions per user on session service

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-833:
--
Labels: incompatible  (was: )

> Limit number of open sessions per user on session service
> -
>
> Key: LENS-833
> URL: https://issues.apache.org/jira/browse/LENS-833
> Project: Apache Lens
>  Issue Type: New Feature
>  Components: server
>Reporter: Amareshwari Sriramadasu
>Assignee: Raju Bairishetti
>  Labels: incompatible
> Fix For: 2.6
>
> Attachments: LENS-833.patch
>
>
> We should fail open session if user creates more sessions than configured 
> limit.



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


[jira] [Updated] (LENS-1215) Move cluster user determination to cli from client

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1215:
---
Labels: incompatible  (was: )

> Move cluster user determination to cli from client
> --
>
> Key: LENS-1215
> URL: https://issues.apache.org/jira/browse/LENS-1215
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
>  Labels: incompatible
> Fix For: 2.6
>
> Attachments: LENS-1215.2016-07-14_17:44:23.patch
>
>




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


[jira] [Updated] (LENS-1217) Remove old java ui server

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1217:
---
Labels: incompatible  (was: )

> Remove old java ui server
> -
>
> Key: LENS-1217
> URL: https://issues.apache.org/jira/browse/LENS-1217
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: docs, server
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
>  Labels: incompatible
> Fix For: 2.6
>
> Attachments: LENS-1217.03.patch, LENS-1217.05.patch
>
>




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


[jira] [Updated] (LENS-1212) Enable saved queries by default

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1212:
---
Labels: incompatible  (was: )

> Enable saved queries by default
> ---
>
> Key: LENS-1212
> URL: https://issues.apache.org/jira/browse/LENS-1212
> Project: Apache Lens
>  Issue Type: Task
>  Components: server
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
>  Labels: incompatible
> Fix For: 2.6
>
> Attachments: LENS-1212.2016-07-12_16:39:59.patch
>
>




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


[jira] [Updated] (LENS-1198) Update hive dependency to apache hive 2.1.0

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1198:
---
Labels: incompatible  (was: )

> Update hive dependency to apache hive 2.1.0
> ---
>
> Key: LENS-1198
> URL: https://issues.apache.org/jira/browse/LENS-1198
> Project: Apache Lens
>  Issue Type: Task
>  Components: build
>Reporter: Amareshwari Sriramadasu
>Assignee: Rajat Khandelwal
>Priority: Critical
>  Labels: incompatible
> Fix For: 2.6
>
> Attachments: LENS-1198.01.patch, LENS-1198.03.patch, 
> LENS-1198.2016-07-19_16:40:13.patch
>
>
> Now that hive 2.1.0 release is available - 
> http://mail-archives.apache.org/mod_mbox/hive-dev/201606.mbox/%3C7194557D-CB5E-45B7-B905-82F27B7CB33F%40apache.org%3E.
> We should change the dependency to apache hive 2.1.0 and remove 
> github.com/Inmobi/mvn-repo from repositories to look up.
> Also update documentation - install and run doc,  build from source doc to 
> use apache hive everywhere.



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


[jira] [Updated] (LENS-919) Persist Query Priority in Lens DB

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-919:
--
Labels: incompatible  (was: )

> Persist Query Priority in Lens DB 
> --
>
> Key: LENS-919
> URL: https://issues.apache.org/jira/browse/LENS-919
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>Priority: Minor
>  Labels: incompatible
> Fix For: 2.6
>
> Attachments: lens-919.03.patch, lens-919.patch
>
>
> As of now Query Priority is not persisted. The query details API shows query 
> priority only until query is in memory. Once purged this info is not 
> available .



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


[jira] [Commented] (LENS-1314) Update 2.6 release documentation

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1314:


1. Will update 
2. Was already done as part of Lens-1029 ( updated doc will not reflect on 
webpage until 2.6 release)


> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1314.patch
>
>




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


Re: [ANNOUNCE] New Apache Lens PMC member : Puneet Gupta

2016-09-20 Thread Puneet Gupta
Thank you guys :-)

Regards,
Puneet Gupta

On Tue, Sep 20, 2016 at 12:54 PM, archana h  wrote:

> Congrats Puneet..!! :)
>
> On Tue, Sep 20, 2016 at 11:37 AM, Raju Bairishetti 
> wrote:
>
> > Congratulations Puneet :)
> >
> > On Tue, Sep 20, 2016 at 1:43 PM, Raghavendra Singh <
> > raghavendra.si...@inmobi.com> wrote:
> >
> > > Congrats Puneet!!
> > >
> > > On Sep 20, 2016 10:50 AM, "Srikanth Sundarrajan" 
> > > wrote:
> > >
> > > > Congrats Puneet.
> > > > RegardsSrikanth Sundarrajan
> > > >
> > > > > From: amareshw...@apache.org
> > > > > Date: Tue, 20 Sep 2016 09:58:54 +0530
> > > > > Subject: [ANNOUNCE] New Apache Lens PMC member : Puneet Gupta
> > > > > To: dev@lens.apache.org; u...@lens.apache.org
> > > > >
> > > > > The Apache Lens PMC has asked Puneet Gupta to join Lens PMC. We are
> > > > pleased
> > > > > to announce that he has accepted.
> > > > >
> > > > > Being a PMC member enables Puneet to guide the direction of the
> > > project.
> > > > >
> > > > > Join me in Congratulating Puneet !
> > > > >
> > > > > Congratulations, Puneet! Looking forward for more of your
> > contributions
> > > > in
> > > > > Apache Lens.
> > > > >
> > > > > Thanks
> > > >
> > >
> > > --
> > > _
> > > The information contained in this communication is intended solely for
> > the
> > > use of the individual or entity to whom it is addressed and others
> > > authorized to receive it. It may contain confidential or legally
> > privileged
> > > information. If you are not the intended recipient you are hereby
> > notified
> > > that any disclosure, copying, distribution or taking any action in
> > reliance
> > > on the contents of this information is strictly prohibited and may be
> > > unlawful. If you have received this communication in error, please
> notify
> > > us immediately by responding to this email and then delete it from your
> > > system. The firm is neither liable for the proper and complete
> > transmission
> > > of the information contained in this communication nor for any delay in
> > its
> > > receipt.
> > >
> >
> >
> >
> > --
> >
> > --
> > Thanks,
> > Raju Bairishetti,
> > www.lazada.com
> >
>

-- 
_
The information contained in this communication is intended solely for the 
use of the individual or entity to whom it is addressed and others 
authorized to receive it. It may contain confidential or legally privileged 
information. If you are not the intended recipient you are hereby notified 
that any disclosure, copying, distribution or taking any action in reliance 
on the contents of this information is strictly prohibited and may be 
unlawful. If you have received this communication in error, please notify 
us immediately by responding to this email and then delete it from your 
system. The firm is neither liable for the proper and complete transmission 
of the information contained in this communication nor for any delay in its 
receipt.


[jira] [Commented] (LENS-1329) Validate license for new dependencies

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1329:


New Dependencies 
{noformat}
2.2.2
2.5.0 - TO be removed LENS-1331
{noformat}

New TEST scope dependencies (All have Apache license)
{noformat}
10.11.1.1
4.2.1
3.2.0-m3
4.1.7
{noformat}


> Validate license for new dependencies
> -
>
> Key: LENS-1329
> URL: https://issues.apache.org/jira/browse/LENS-1329
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>
> - Run "git diff  -- pom.xml"
> Example git diff apache-lens-2.5.0-beta -- pom.xml
> - Check the license for new dependencies and make sure its compatible with 
> apache licensing scheme https://www.apache.org/legal/resolved.html
> - If any of the new dependencies added  are not apache licensed, and are 
> getting bundled in binary distribution, LICENSE and NOTICE should be updated 
> in bin-dist-files/



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


[jira] [Commented] (LENS-1328) RAT Check for new files

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1328:


New Dependencies 
{noformat}
2.2.2
2.5.0 - TO be removed LENS-1331
{noformat}

New TEST scope dependencies (Apache license)
{noformat}
10.11.1.1
4.2.1
3.2.0-m3
4.1.7
{noformat}


> RAT Check for new files
> ---
>
> Key: LENS-1328
> URL: https://issues.apache.org/jira/browse/LENS-1328
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>
> Check if any new files are added which are without Apache license notice. 
> Decide whether to add such files a part of rat check exclusion list in 
> POM.xml or not. 
> Steps: 
> - 'git tag' can give you all tags,  pick last release tag name 
> - git diff . In the less view, search for "\-\-\- 
> /dev/null" for finding files added. Search for "+++ /dev/null" for files 
> deleted. 
> One can also get list of added files  using : git dif  
> --summary | grep create . Example git diff apache-lens-2.5.0-beta --summary | 
> grep create 



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


[jira] [Issue Comment Deleted] (LENS-1328) RAT Check for new files

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1328:
---
Comment: was deleted

(was: New Dependencies 
{noformat}
2.2.2
2.5.0 - TO be removed LENS-1331
{noformat}

New TEST scope dependencies (Apache license)
{noformat}
10.11.1.1
4.2.1
3.2.0-m3
4.1.7
{noformat}
)

> RAT Check for new files
> ---
>
> Key: LENS-1328
> URL: https://issues.apache.org/jira/browse/LENS-1328
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>
> Check if any new files are added which are without Apache license notice. 
> Decide whether to add such files a part of rat check exclusion list in 
> POM.xml or not. 
> Steps: 
> - 'git tag' can give you all tags,  pick last release tag name 
> - git diff . In the less view, search for "\-\-\- 
> /dev/null" for finding files added. Search for "+++ /dev/null" for files 
> deleted. 
> One can also get list of added files  using : git dif  
> --summary | grep create . Example git diff apache-lens-2.5.0-beta --summary | 
> grep create 



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


[jira] [Created] (LENS-1330) Remove protobuf dependency from lens

2016-09-20 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1330:
--

 Summary: Remove protobuf dependency from lens
 Key: LENS-1330
 URL: https://issues.apache.org/jira/browse/LENS-1330
 Project: Apache Lens
  Issue Type: Bug
Reporter: Puneet Gupta
Assignee: Archana H


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] [Created] (LENS-1331) Remove protobuf dependency from lens

2016-09-20 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1331:
--

 Summary: Remove protobuf dependency from lens
 Key: LENS-1331
 URL: https://issues.apache.org/jira/browse/LENS-1331
 Project: Apache Lens
  Issue Type: Bug
Reporter: Puneet Gupta
Assignee: Archana H


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] [Created] (LENS-1329) Validate license for new dependencies

2016-09-20 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1329:
--

 Summary: Validate license for new dependencies
 Key: LENS-1329
 URL: https://issues.apache.org/jira/browse/LENS-1329
 Project: Apache Lens
  Issue Type: Sub-task
Reporter: Puneet Gupta
Assignee: Puneet Gupta


- Run "git diff  -- pom.xml"
Example git diff apache-lens-2.5.0-beta -- pom.xml

- Check the license for new dependencies and make sure its compatible with 
apache licensing scheme https://www.apache.org/legal/resolved.html

- If any of the new dependencies added  are not apache licensed, and are 
getting bundled in binary distribution, LICENSE and NOTICE should be updated in 
bin-dist-files/



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


[jira] [Updated] (LENS-1328) RAT Check for new files

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1328:
---
Description: 
Check if any new files are added which are without Apache license notice. 
Decide whether to add such files a part of rat check exclusion list in POM.xml 
or not. 

Steps: 
- 'git tag' can give you all tags,  pick last release tag name 
- git diff . In the less view, search for "\-\-\- /dev/null" 
for finding files added. Search for "+++ /dev/null" for files deleted. 
One can also get list of added files  using : git dif  
--summary | grep creat . Example git diff apache-lens-2.5.0-beta --summary | 
grep create 



  was:
Check if any new files are added which are without Apache license. Decide 
whether to add such files a part of rat check exclusion list in POM.xml or not. 

Steps: 
- 'git tag' can give you all tags,  pick last release tag name 
- git diff . In the less view, search for "\-\-\- /dev/null" 
for finding files added. Search for "+++ /dev/null" for files deleted. 
One can also get list of added files  using : git dif  
--summary | grep creat . Example git diff apache-lens-2.5.0-beta --summary | 
grep create 




> RAT Check for new files
> ---
>
> Key: LENS-1328
> URL: https://issues.apache.org/jira/browse/LENS-1328
> Project: Apache Lens
>      Issue Type: Sub-task
>      Components: build
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>
> Check if any new files are added which are without Apache license notice. 
> Decide whether to add such files a part of rat check exclusion list in 
> POM.xml or not. 
> Steps: 
> - 'git tag' can give you all tags,  pick last release tag name 
> - git diff . In the less view, search for "\-\-\- 
> /dev/null" for finding files added. Search for "+++ /dev/null" for files 
> deleted. 
> One can also get list of added files  using : git dif  
> --summary | grep creat . Example git diff apache-lens-2.5.0-beta --summary | 
> grep create 



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


[jira] [Updated] (LENS-1328) RAT Check for new files

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1328:
---
Description: 
Check if any new files are added which are without Apache license notice. 
Decide whether to add such files a part of rat check exclusion list in POM.xml 
or not. 

Steps: 
- 'git tag' can give you all tags,  pick last release tag name 
- git diff . In the less view, search for "\-\-\- /dev/null" 
for finding files added. Search for "+++ /dev/null" for files deleted. 
One can also get list of added files  using : git dif  
--summary | grep create . Example git diff apache-lens-2.5.0-beta --summary | 
grep create 



  was:
Check if any new files are added which are without Apache license notice. 
Decide whether to add such files a part of rat check exclusion list in POM.xml 
or not. 

Steps: 
- 'git tag' can give you all tags,  pick last release tag name 
- git diff . In the less view, search for "\-\-\- /dev/null" 
for finding files added. Search for "+++ /dev/null" for files deleted. 
One can also get list of added files  using : git dif  
--summary | grep creat . Example git diff apache-lens-2.5.0-beta --summary | 
grep create 




> RAT Check for new files
> ---
>
> Key: LENS-1328
> URL: https://issues.apache.org/jira/browse/LENS-1328
> Project: Apache Lens
>      Issue Type: Sub-task
>      Components: build
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>
> Check if any new files are added which are without Apache license notice. 
> Decide whether to add such files a part of rat check exclusion list in 
> POM.xml or not. 
> Steps: 
> - 'git tag' can give you all tags,  pick last release tag name 
> - git diff . In the less view, search for "\-\-\- 
> /dev/null" for finding files added. Search for "+++ /dev/null" for files 
> deleted. 
> One can also get list of added files  using : git dif  
> --summary | grep create . Example git diff apache-lens-2.5.0-beta --summary | 
> grep create 



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


[jira] [Updated] (LENS-1328) RAT Check for new files

2016-09-20 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1328:
---
Description: 
Check if any new files are added which are without Apache license. Decide 
whether to add such files a part of rat check exclusion list in POM.xml or not. 

Steps: 
- 'git tag' can give you all tags,  pick last release tag name 
- git diff . In the less view, search for "\-\-\- /dev/null" 
for finding files added. Search for "+++ /dev/null" for files deleted. 
One can also get list of added files  using : git dif  
--summary | grep creat . Example git diff apache-lens-2.5.0-beta --summary | 
grep create 



> RAT Check for new files
> ---
>
> Key: LENS-1328
> URL: https://issues.apache.org/jira/browse/LENS-1328
> Project: Apache Lens
>  Issue Type: Sub-task
>      Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>
> Check if any new files are added which are without Apache license. Decide 
> whether to add such files a part of rat check exclusion list in POM.xml or 
> not. 
> Steps: 
> - 'git tag' can give you all tags,  pick last release tag name 
> - git diff . In the less view, search for "\-\-\- 
> /dev/null" for finding files added. Search for "+++ /dev/null" for files 
> deleted. 
> One can also get list of added files  using : git dif  
> --summary | grep creat . Example git diff apache-lens-2.5.0-beta --summary | 
> grep create 



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


[jira] [Updated] (LENS-1314) Update 2.6 release documentation

2016-09-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1314:
---
Attachment: lens-1314.patch

> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1314.patch
>
>




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


[jira] [Updated] (LENS-1314) Update 2.6 release documentation

2016-09-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1314:
---
Attachment: (was: lens-1314.patch)

> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>




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


[jira] [Updated] (LENS-1314) Update 2.6 release documentation

2016-09-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1314:
---
Status: Open  (was: Patch Available)

Indentation issue. Will fix and re-submit

> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>




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


[jira] [Updated] (LENS-1314) Update 2.6 release documentation

2016-09-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1314:
---
Status: Patch Available  (was: Open)

> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1314.patch
>
>




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


[jira] [Updated] (LENS-1314) Update 2.6 release documentation

2016-09-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1314:
---
Attachment: lens-1314.patch

Simple patch. Attaching directly 

> Update 2.6 release documentation
> 
>
> Key: LENS-1314
> URL: https://issues.apache.org/jira/browse/LENS-1314
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Attachments: lens-1314.patch
>
>




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


[jira] [Created] (LENS-1328) RAT Check for new files

2016-09-19 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1328:
--

 Summary: RAT Check for new files
 Key: LENS-1328
 URL: https://issues.apache.org/jira/browse/LENS-1328
 Project: Apache Lens
  Issue Type: Sub-task
Reporter: Puneet Gupta
Assignee: Puneet Gupta






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


[jira] [Updated] (LENS-1326) session/sessions API returning no data on GUI/API though there are active sessions

2016-09-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1326:
---
Summary: session/sessions API returning no data on GUI/API though there are 
active sessions  (was: session/sessions API returning no data on GUI/api though 
there are active sessions)

> session/sessions API returning no data on GUI/API though there are active 
> sessions
> --
>
> Key: LENS-1326
> URL: https://issues.apache.org/jira/browse/LENS-1326
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
>Assignee: Lavkesh Lahngir
>
> The lens GUI and API is showing no sessions via sessions REST end point.
> Server metrics are showing active sessions  though. 
> {noformat}
> "org.apache.lens.server.api.session.SessionService.active-sessions" : {
>  "value" : 5324
>},
> {noformat}



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


[jira] [Commented] (LENS-1326) session/sessions API returning no data on GUI/api though there are active sessions

2016-09-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1326:


Error in server logs 
{noformat}
17 Sep 2016 10:58:38 [f453b79e-986f-4978-92e2-3f2da7b87212] 
[grizzly-http-server-17] WARN  org.apache.lens.server.BaseLensService - Session 
6c216556-a948-429b-8b3a-400efe26b1e
b not found
org.apache.hive.service.cli.HiveSQLException: Invalid SessionHandle: 
SessionHandle [6c216556-a948-429b-8b3a-400efe26b1eb]
at 
org.apache.hive.service.cli.session.SessionManager.getSession(SessionManager.java:389)
 ~[hive-service-2.1.3-inm.jar:2.1.3-inm]
at 
org.apache.lens.server.BaseLensService.getSession(BaseLensService.java:366) 
[classes/:na]
at 
org.apache.lens.server.BaseLensService.getSessionInfo(BaseLensService.java:571) 
[classes/:na]
at 
org.apache.lens.server.session.SessionResource.getSession(SessionResource.java:272)
 [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_72]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_72]
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 
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-ser
ver-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_72]
{noformat}

> session/sessions API returning no data on GUI/api though there are active 
> sessions
> --
>
> Key: LENS-1326
> URL: https://issues.apache.org/jira/browse/LENS-1326
> Project: Apache Lens
>  Issue Type: Bug
>    Reporter: Puneet Gupta
>Assignee: Lavkesh Lahngir
>
> The lens GUI and API is showing no sessions via sessions REST end point.
> Server metrics are sh

[jira] [Commented] (LENS-1326) session/sessions API returning no data on GUI/api though there are active sessions

2016-09-19 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1326:



*Response code in 410*
19808 293810 > GET http://xxx:80/lensapi/session/sessions
19809 293810 > accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
19810 293810 > accept-encoding: gzip, deflate, sdch
19811 293810 > accept-language: en-US,en;q=0.8
19812 293810 > connection: keep-alive
*19819 293810 < 410*


> session/sessions API returning no data on GUI/api though there are active 
> sessions
> --
>
> Key: LENS-1326
> URL: https://issues.apache.org/jira/browse/LENS-1326
> Project: Apache Lens
>      Issue Type: Bug
>Reporter: Puneet Gupta
>Assignee: Lavkesh Lahngir
>
> The lens GUI and API is showing no sessions via sessions REST end point.
> Server metrics are showing active sessions  though. 
> {noformat}
> "org.apache.lens.server.api.session.SessionService.active-sessions" : {
>  "value" : 5324
>},
> {noformat}



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


[jira] [Created] (LENS-1326) session/sessions API returning no data on GUI/api though there are active sessions

2016-09-19 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1326:
--

 Summary: session/sessions API returning no data on GUI/api though 
there are active sessions
 Key: LENS-1326
 URL: https://issues.apache.org/jira/browse/LENS-1326
 Project: Apache Lens
  Issue Type: Bug
Reporter: Puneet Gupta
Assignee: Lavkesh Lahngir


The lens GUI and API is showing no sessions via sessions REST end point.

Server metrics are showing active sessions  though. 
{noformat}
"org.apache.lens.server.api.session.SessionService.active-sessions" : {
 "value" : 5324
   },
{noformat}




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


[jira] [Comment Edited] (LENS-1308) User config loader database calls not inserting entries

2016-09-17 Thread Puneet Gupta (JIRA)

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

Puneet Gupta edited comment on LENS-1308 at 9/17/16 7:55 AM:
-

Lets keep auto commit false by default and have explicit commit (like we are 
doing in org.apache.lens.server.query.LensServerDAO#insertFinishedQuery). Or 
else we need to follow a different model where we can keep autocommit true by 
default and turn it off wherever we need transactions (may be very few places).
{noformat}
boolean autoCommit = conn.getAutoCommit();
conn.setAutoCommit(false);
try
{
…some logic...
insert one row ..
insert another row..
conn.commit();
} catch(Exception e) { 
  Log .
} 
finally {
conn.setAutoCommit(autoCommit) ; // since this is a pooled connection , lets 
set it back to original state
}
{noformat}
between 1st and 2nd  row if there is an error we should not commit

Note sure if below are working in current state without any explicit commits. 
1. org.apache.lens.server.query.LensServerDAO#createFinishedQueriesTable and 
2. org.apache.lens.server.query.LensServerDAO#dropFinishedQueriesTable


was (Author: puneet884):
Lets keep auto commit false by default and have explicit commit (like we are 
doing in org.apache.lens.server.query.LensServerDAO#insertFinishedQuery). Or 
else we need to follow a different model where we can keep autocommit true by 
default and turn it off wherever we need transactions (may be very few places).
{noformat}
boolean autoCommit = conn.getAutoCommit();
conn.setAutoCommit(false);
try
{
…some logic...
insert one row ..
insert another row..
conn.commit();
} Exception { 
  Log .
} 
finally {
conn.setAutoCommit(autoCommit) ; // since this is a pooled connection , lets 
set it back to original state
}
{noformat}
between 1st and 2nd  row if there is an error we should not commit

Note sure if below are working in current state without any explicit commits. 
1. org.apache.lens.server.query.LensServerDAO#createFinishedQueriesTable and 
2. org.apache.lens.server.query.LensServerDAO#dropFinishedQueriesTable

> User config loader database calls not inserting entries
> ---
>
> Key: LENS-1308
> URL: https://issues.apache.org/jira/browse/LENS-1308
> Project: Apache Lens
>  Issue Type: Bug
>Affects Versions: 2.3
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.7
>
> Attachments: LENS-1308.patch
>
>




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


[jira] [Comment Edited] (LENS-1308) User config loader database calls not inserting entries

2016-09-17 Thread Puneet Gupta (JIRA)

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

Puneet Gupta edited comment on LENS-1308 at 9/17/16 7:54 AM:
-

Lets keep auto commit false by default and have explicit commit (like we are 
doing in org.apache.lens.server.query.LensServerDAO#insertFinishedQuery). Or 
else we need to follow a different model where we can keep autocommit true by 
default and turn it off wherever we need transactions (may be very few places).
{noformat}
boolean autoCommit = conn.getAutoCommit();
conn.setAutoCommit(false);
try
{
…some logic...
insert one row ..
insert another row..
conn.commit();
} Exception { 
  Log .
} 
finally {
conn.setAutoCommit(autoCommit) ; // since this is a pooled connection , lets 
set it back to original state
}
{noformat}
between 1st and 2nd  row if there is an error we should not commit

Note sure if below are working in current state without any explicit commits. 
1. org.apache.lens.server.query.LensServerDAO#createFinishedQueriesTable and 
2. org.apache.lens.server.query.LensServerDAO#dropFinishedQueriesTable


was (Author: puneet884):
Lets keep auto commit false by default and have explicit commit (like we are 
doing in org.apache.lens.server.query.LensServerDAO#insertFinishedQuery). Or 
else we need to follow a different model where we can keep autocommit true by 
default and turn it off wherever we need transactions (may be very few places).
{noformat}
conn.setAutoCommit(false)
try
{
…some logic...
insert one row ..
insert another row..
conn.commit()
} Exception { } 
{noformat}
between 1st and 2nd  row if there is an error we should not commit

Note sure if below are working in current state without any explicit commits. 
1. org.apache.lens.server.query.LensServerDAO#createFinishedQueriesTable and 
2. org.apache.lens.server.query.LensServerDAO#dropFinishedQueriesTable

> User config loader database calls not inserting entries
> ---
>
> Key: LENS-1308
> URL: https://issues.apache.org/jira/browse/LENS-1308
> Project: Apache Lens
>  Issue Type: Bug
>Affects Versions: 2.3
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.7
>
> Attachments: LENS-1308.patch
>
>




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


[jira] [Comment Edited] (LENS-1308) User config loader database calls not inserting entries

2016-09-17 Thread Puneet Gupta (JIRA)

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

Puneet Gupta edited comment on LENS-1308 at 9/17/16 7:51 AM:
-

Lets keep auto commit false by default and have explicit commit (like we are 
doing in org.apache.lens.server.query.LensServerDAO#insertFinishedQuery). Or 
else we need to follow a different model where we can keep autocommit true by 
default and turn it off wherever we need transactions (may be very few places).
{noformat}
conn.setAutoCommit(false)
try
{
…some logic...
insert one row ..
insert another row..
conn.commit()
} Exception { } 
{noformat}
between 1st and 2nd  row if there is an error we should not commit

Note sure if below are working in current state without any explicit commits. 
1. org.apache.lens.server.query.LensServerDAO#createFinishedQueriesTable and 
2. org.apache.lens.server.query.LensServerDAO#dropFinishedQueriesTable


was (Author: puneet884):
Lets keep auto commit false by default and have explicit commit (like we are 
doing in org.apache.lens.server.query.LensServerDAO#insertFinishedQuery). Or 
else we need to follow a different model where we can keep autocommit true by 
default and turn it off wherever we need transactions (may be very few places).
{noformat}
conn.setAutoCommit(false)
try
{
…some logic...
insert one row ..
insert another row..
conn.setAutoCommit(true)
} Exception { } 
{noformat}
between 1st and 2nd  row if there is an error we should not commit

Note sure if below are working in current state without any explicit commits. 
1. org.apache.lens.server.query.LensServerDAO#createFinishedQueriesTable and 
2. org.apache.lens.server.query.LensServerDAO#dropFinishedQueriesTable

> User config loader database calls not inserting entries
> ---
>
> Key: LENS-1308
> URL: https://issues.apache.org/jira/browse/LENS-1308
> Project: Apache Lens
>  Issue Type: Bug
>Affects Versions: 2.3
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.7
>
> Attachments: LENS-1308.patch
>
>




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


[jira] [Commented] (LENS-1308) User config loader database calls not inserting entries

2016-09-17 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1308:


Lets keep auto commit false by default and have explicit commit (like we are 
doing in org.apache.lens.server.query.LensServerDAO#insertFinishedQuery). Or 
else we need to follow a different model where we can keep autocommit true by 
default and turn it off wherever we need transactions (may be very few places).
{noformat}
conn.setAutoCommit(false)
try
{
…some logic...
insert one row ..
insert another row..
conn.setAutoCommit(true)
} Exception { } 
{noformat}
between 1st and 2nd  row if there is an error we should not commit

Note sure if below are working in current state without any explicit commits. 
1. org.apache.lens.server.query.LensServerDAO#createFinishedQueriesTable and 
2. org.apache.lens.server.query.LensServerDAO#dropFinishedQueriesTable

> User config loader database calls not inserting entries
> ---
>
> Key: LENS-1308
> URL: https://issues.apache.org/jira/browse/LENS-1308
> Project: Apache Lens
>  Issue Type: Bug
>Affects Versions: 2.3
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.7
>
> Attachments: LENS-1308.patch
>
>




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


[jira] [Commented] (LENS-1321) Add License message for properties files

2016-09-17 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-1321:


Re-triggering the build .
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on 
project lens-cube: There was a timeout or other error in the fork -> [Help 1]


> Add License message for properties files
> 
>
> Key: LENS-1321
> URL: https://issues.apache.org/jira/browse/LENS-1321
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build, ml, regression
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
> Attachments: lens-1321.patch
>
>
> IM1995-X0:lens puneet.gupta$ git status
> On branch current-release-line
> Your branch is up-to-date with 'origin/current-release-line'.
> nothing to commit, working directory clean
> IM1995-X0:lens puneet.gupta$ git diff apache-lens-2.5.0-beta  --summary | 
> grep create | grep -v ".java" | grep -v ".yaml" | grep -v ".py"|grep -v 
> ".xml"|grep -v "control$"|grep -v ".data"
>  create mode 100644 lens-regression/src/main/resources/queries.properties
>  create mode 100644 
> lens-regression/src/main/resources/template.lens.properties



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


[jira] [Updated] (LENS-1321) Add License message for properties files

2016-09-16 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1321:
---
Component/s: ml
 build

> Add License message for properties files
> 
>
> Key: LENS-1321
> URL: https://issues.apache.org/jira/browse/LENS-1321
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build, ml, regression
>    Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
> Attachments: lens-1321.patch
>
>
> IM1995-X0:lens puneet.gupta$ git status
> On branch current-release-line
> Your branch is up-to-date with 'origin/current-release-line'.
> nothing to commit, working directory clean
> IM1995-X0:lens puneet.gupta$ git diff apache-lens-2.5.0-beta  --summary | 
> grep create | grep -v ".java" | grep -v ".yaml" | grep -v ".py"|grep -v 
> ".xml"|grep -v "control$"|grep -v ".data"
>  create mode 100644 lens-regression/src/main/resources/queries.properties
>  create mode 100644 
> lens-regression/src/main/resources/template.lens.properties



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


<    1   2   3   4   5   6   7   8   9   10   >