[jira] [Commented] (LENS-797) Improve CLI documentation to mention the helpful role of pressing tab while writing commands

2015-10-08 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on LENS-797:


Applied patch: 
[LENS-797.03.patch|https://issues.apache.org/jira/secure/attachment/12765534/LENS-797.03.patch]
 and ran command: mvn clean install. Result: Success. Build Job: 
https://builds.apache.org/job/PreCommit-Lens-Build/105/

> Improve CLI documentation to mention the helpful role of pressing tab while 
> writing commands
> 
>
> Key: LENS-797
> URL: https://issues.apache.org/jira/browse/LENS-797
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Attachments: LENS-797.03.patch
>
>
> https://lens.apache.org/user/cli.html doesn't mention that pressing  can 
> be interactive. I've seen users looking up commands every time and even 
> saving commands in text files for quicker access. We should mention that 
> commands need not be remembered and CLI can help you find the command and its 
> arguments any time. 



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


[jira] [Commented] (LENS-383) Timeouts on rest api calls in lens client

2015-10-08 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-383:
---

[~akshaygoyal] Can we have more details about this issues/requirement ? 

> Timeouts on rest api calls in lens client
> -
>
> Key: LENS-383
> URL: https://issues.apache.org/jira/browse/LENS-383
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: client
>Reporter: Akshay Goyal
>Assignee: Akshay Goyal
>Priority: Minor
>  Labels: newbie
> Fix For: 2.5
>
>




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


[jira] [Commented] (LENS-763) Update on DDL should Create DDL if it is not present

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-763:
---

Yes. So all CREATE APIs are POST, and all UPDATE APIs are PUT.

The idea is to provide an extra boolean argument in the PUT API to create if 
not existing already. All the PUT APIs need to be modified for this. 

> Update on DDL should Create DDL if it is not present
> 
>
> Key: LENS-763
> URL: https://issues.apache.org/jira/browse/LENS-763
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Arshad Matin
>  Labels: newbie
>
> Currently, Update on cube/fact/storage/dimension/dimensiontable fails if it 
> is not created already. We should not fail it and instead create it.



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


Re: Review Request 38920: LENS-797: Improve CLI documentation to mention the helpful role of pressing tab while writing commands

2015-10-08 Thread Rajat Khandelwal

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

(Updated Oct. 8, 2015, 1:09 p.m.)


Review request for lens.


Bugs: LENS-797
https://issues.apache.org/jira/browse/LENS-797


Repository: lens


Description
---

https://lens.apache.org/user/cli.html doesn't mention that pressing  can 
be interactive. I've seen users looking up commands every time and even saving 
commands in text files for quicker access. We should mention that commands need 
not be remembered and CLI can help you find the command and its arguments any 
time.


Diffs (updated)
-

  
lens-cli/src/main/java/org/apache/lens/cli/commands/LensConnectionCommands.java 
279521113204d614c0807d9ba679ebe36221883d 
  lens-cli/src/main/java/org/apache/lens/cli/commands/LensCubeCommands.java 
0afdd61a955d6a0a18c68f678145904722dd0c90 
  lens-cli/src/main/java/org/apache/lens/cli/commands/LensDatabaseCommands.java 
1de24a49bf2242170f229235379bc2cffaae060c 
  
lens-cli/src/main/java/org/apache/lens/cli/commands/LensDimensionCommands.java 
cd7de556febd4fc2ae684390793298e2f713ff9b 
  
lens-cli/src/main/java/org/apache/lens/cli/commands/LensDimensionTableCommands.java
 74efed9159906478d91e75623186a81a7532acb0 
  lens-cli/src/main/java/org/apache/lens/cli/commands/LensFactCommands.java 
6d7d9ebd9937c85c603f9a1bf2822af6763a1ede 
  
lens-cli/src/main/java/org/apache/lens/cli/commands/LensLogResourceCommands.java
 c43a5ffa556c2a8566013fd1258462c9f602c235 
  
lens-cli/src/main/java/org/apache/lens/cli/commands/LensNativeTableCommands.java
 df425810365fc1c328392809c6ff7a72c2c7a8b2 
  lens-cli/src/main/java/org/apache/lens/cli/commands/LensQueryCommands.java 
b6e3fcf1d9348b39e8bcc694cd769d4a5faf9971 
  lens-cli/src/main/java/org/apache/lens/cli/commands/LensStorageCommands.java 
ca73af76672fb7708bc12ddc503c0877701dbd90 
  lens-cli/src/test/resources/cli-intro.apt 
b5773abe880b7b523f614c6b4da50848e19155f3 
  src/site/apt/user/cli.apt be93b8cfe982fcf60b13dbd3abaa15879537c3fd 

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


Testing
---


Thanks,

Rajat Khandelwal



[jira] [Commented] (LENS-763) Update on DDL should Create DDL if it is not present

2015-10-08 Thread Puneet Gupta (JIRA)

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

Puneet Gupta commented on LENS-763:
---

+1 

The boolean argument can be optional. Default behavior can be same as existing 
one .

> Update on DDL should Create DDL if it is not present
> 
>
> Key: LENS-763
> URL: https://issues.apache.org/jira/browse/LENS-763
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Arshad Matin
>  Labels: newbie
>
> Currently, Update on cube/fact/storage/dimension/dimensiontable fails if it 
> is not created already. We should not fail it and instead create it.



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


Re: October report

2015-10-08 Thread Yash Sharma
+1

On Thu, Oct 8, 2015 at 1:14 PM, Arshad Matin 
wrote:

> +1
>
> On Thu, Oct 8, 2015 at 12:45 PM, Rajat Khandelwal 
> wrote:
>
> > +1
> >
> >
> > On Mon, Oct 5, 2015 at 3:58 PM amareshwarisr . 
> > wrote:
> >
> > > Hi all,
> > >
> > > I have put up report for the month of October -
> > > https://cwiki.apache.org/confluence/display/LENS/October%2C2015. Let
> me
> > > know if you have any comments.
> > >
> > > Will submit report to the board tomorrow.
> > >
> > > Thanks
> > > Amareshwari
> > >
> >
>
> --
> _
> 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] [Issue Comment Deleted] (LENS-797) Improve CLI documentation to mention the helpful role of pressing tab while writing commands

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-797:
--
Comment: was deleted

(was: Created https://reviews.apache.org/r/39118/)

> Improve CLI documentation to mention the helpful role of pressing tab while 
> writing commands
> 
>
> Key: LENS-797
> URL: https://issues.apache.org/jira/browse/LENS-797
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
>
> https://lens.apache.org/user/cli.html doesn't mention that pressing  can 
> be interactive. I've seen users looking up commands every time and even 
> saving commands in text files for quicker access. We should mention that 
> commands need not be remembered and CLI can help you find the command and its 
> arguments any time. 



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


[jira] [Updated] (LENS-446) hide server params in /lensapi/session/params api

2015-10-08 Thread Amareshwari Sriramadasu (JIRA)

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

Amareshwari Sriramadasu updated LENS-446:
-
Status: Patch Available  (was: Open)

> hide server params in /lensapi/session/params api
> -
>
> Key: LENS-446
> URL: https://issues.apache.org/jira/browse/LENS-446
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Angad Singh
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.4
>
> Attachments: LENS-446.patch
>
>
> Lens is even showing sensitive properties like lens.server.db.jdbc.user and 
> lens.server.db.jdbc.pass to the client. Server-side params should be hidden 
> from this api
> api called:
> {noformat}
> http://internal-lens-server:/lensapi/session/params?sessionid=%3C?xml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22?%3E%3ClensSessionHandle%3E%3CpublicId%3E1ebec3a5-cd11-4a3d-b9d5-79e5d9707710%3C/publicId%3E%3CsecretId%3E524384d8-41c5-4459-87be-37fdde4ba14f%3C/secretId%3E%3C/lensSessionHandle%3E
> {noformat}
> sample output:
> {noformat}
> 
> hive.metastore.batch.retrieve.max=100
> 
> hive.metastore.batch.retrieve.table.partition.max=500
> 
> hive.metastore.client.connect.retry.delay=1
> hive.metastore.client.socket.timeout=20
> hive.metastore.connect.retries=5
> hive.metastore.failure.retries=3
> hive.metastore.uris=thrift://localhost:9083
> hive.server2.thrift.bind.host=localhost
> hive.server2.thrift.port=1
> lens.client.dbname=default
> lens.client.user.name=anonymous
> lens.cube.query.disable.aggregate.resolver=false
> lens.cube.query.disable.auto.join=false
> lens.cube.query.fail.if.data.partial=true
> lens.cube.query.promote.select.togroupby=true
> lens.query.add.insert.overwrite=true
> lens.query.enable.mail.notify=false
> lens.query.enable.metrics.per.query=false
> lens.query.enable.persistent.resultset=false
> 
> lens.query.enable.persistent.resultset.indriver=true
> 
> lens.query.hdfs.output.path=hdfsout
> lens.query.output.charset.encoding=UTF-8
> 
> lens.query.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec
> 
> lens.query.output.enable.compression=false
> lens.query.output.file.extn=.csv
> lens.query.output.write.footer=false
> lens.query.output.write.header=false
> 
> lens.query.result.output.serde=org.apache.lens.lib.query.CSVSerde
> 
> 
> lens.query.result.parent.dir=file:///tmp/lensreports
> 
> 
> lens.query.result.size.format.threshold=10737418240
> 
> lens.query.result.split.multiple=false
> lens.query.result.split.multiple.maxrows=10
> lens.server.base.url=http://0.0.0.0:/lensapi
> lens.server.db.driver.name=com.mysql.jdbc.Driver
> lens.server.db.jdbc.pass={masked}
> 
> lens.server.db.jdbc.url=jdbc:mysql://localhost:3306/lens
> 
> lens.server.db.jdbc.user={masked}
> lens.server.db.validation.query=select 1
> 
> lens.server.drivers=org.apache.lens.driver.hive.HiveDriver
> 
> 
> lens.session.aux.jars={masked}
> 
> lens.session.cluster.user={masked}
> lens.session.loggedin.user=anonymous
> silent=off
> 
> {noformat}



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


[jira] [Updated] (LENS-446) hide server params in /lensapi/session/params api

2015-10-08 Thread Amareshwari Sriramadasu (JIRA)

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

Amareshwari Sriramadasu updated LENS-446:
-
Attachment: LENS-446.patch

Patch after review

> hide server params in /lensapi/session/params api
> -
>
> Key: LENS-446
> URL: https://issues.apache.org/jira/browse/LENS-446
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Angad Singh
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.4
>
> Attachments: LENS-446.patch
>
>
> Lens is even showing sensitive properties like lens.server.db.jdbc.user and 
> lens.server.db.jdbc.pass to the client. Server-side params should be hidden 
> from this api
> api called:
> {noformat}
> http://internal-lens-server:/lensapi/session/params?sessionid=%3C?xml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22?%3E%3ClensSessionHandle%3E%3CpublicId%3E1ebec3a5-cd11-4a3d-b9d5-79e5d9707710%3C/publicId%3E%3CsecretId%3E524384d8-41c5-4459-87be-37fdde4ba14f%3C/secretId%3E%3C/lensSessionHandle%3E
> {noformat}
> sample output:
> {noformat}
> 
> hive.metastore.batch.retrieve.max=100
> 
> hive.metastore.batch.retrieve.table.partition.max=500
> 
> hive.metastore.client.connect.retry.delay=1
> hive.metastore.client.socket.timeout=20
> hive.metastore.connect.retries=5
> hive.metastore.failure.retries=3
> hive.metastore.uris=thrift://localhost:9083
> hive.server2.thrift.bind.host=localhost
> hive.server2.thrift.port=1
> lens.client.dbname=default
> lens.client.user.name=anonymous
> lens.cube.query.disable.aggregate.resolver=false
> lens.cube.query.disable.auto.join=false
> lens.cube.query.fail.if.data.partial=true
> lens.cube.query.promote.select.togroupby=true
> lens.query.add.insert.overwrite=true
> lens.query.enable.mail.notify=false
> lens.query.enable.metrics.per.query=false
> lens.query.enable.persistent.resultset=false
> 
> lens.query.enable.persistent.resultset.indriver=true
> 
> lens.query.hdfs.output.path=hdfsout
> lens.query.output.charset.encoding=UTF-8
> 
> lens.query.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec
> 
> lens.query.output.enable.compression=false
> lens.query.output.file.extn=.csv
> lens.query.output.write.footer=false
> lens.query.output.write.header=false
> 
> lens.query.result.output.serde=org.apache.lens.lib.query.CSVSerde
> 
> 
> lens.query.result.parent.dir=file:///tmp/lensreports
> 
> 
> lens.query.result.size.format.threshold=10737418240
> 
> lens.query.result.split.multiple=false
> lens.query.result.split.multiple.maxrows=10
> lens.server.base.url=http://0.0.0.0:/lensapi
> lens.server.db.driver.name=com.mysql.jdbc.Driver
> lens.server.db.jdbc.pass={masked}
> 
> lens.server.db.jdbc.url=jdbc:mysql://localhost:3306/lens
> 
> lens.server.db.jdbc.user={masked}
> lens.server.db.validation.query=select 1
> 
> lens.server.drivers=org.apache.lens.driver.hive.HiveDriver
> 
> 
> lens.session.aux.jars={masked}
> 
> lens.session.cluster.user={masked}
> lens.session.loggedin.user=anonymous
> silent=off
> 
> {noformat}



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


[jira] [Updated] (LENS-797) Improve CLI documentation to mention the helpful role of pressing tab while writing commands

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-797:
--
Status: Patch Available  (was: In Progress)

> Improve CLI documentation to mention the helpful role of pressing tab while 
> writing commands
> 
>
> Key: LENS-797
> URL: https://issues.apache.org/jira/browse/LENS-797
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Attachments: LENS-797.03.patch
>
>
> https://lens.apache.org/user/cli.html doesn't mention that pressing  can 
> be interactive. I've seen users looking up commands every time and even 
> saving commands in text files for quicker access. We should mention that 
> commands need not be remembered and CLI can help you find the command and its 
> arguments any time. 



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


[jira] [Updated] (LENS-797) Improve CLI documentation to mention the helpful role of pressing tab while writing commands

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-797:
--
Attachment: LENS-797.03.patch

> Improve CLI documentation to mention the helpful role of pressing tab while 
> writing commands
> 
>
> Key: LENS-797
> URL: https://issues.apache.org/jira/browse/LENS-797
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Attachments: LENS-797.03.patch
>
>
> https://lens.apache.org/user/cli.html doesn't mention that pressing  can 
> be interactive. I've seen users looking up commands every time and even 
> saving commands in text files for quicker access. We should mention that 
> commands need not be remembered and CLI can help you find the command and its 
> arguments any time. 



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


[jira] [Commented] (LENS-446) server params should not be passed to session and drivers

2015-10-08 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on LENS-446:


Applied patch: 
[LENS-446.patch|https://issues.apache.org/jira/secure/attachment/12765544/LENS-446.patch]
 and ran command: mvn clean install. Result: Failure. Build Job: 
https://builds.apache.org/job/PreCommit-Lens-Build/106/

> server params should not be passed to session and drivers
> -
>
> Key: LENS-446
> URL: https://issues.apache.org/jira/browse/LENS-446
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Angad Singh
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.4
>
> Attachments: LENS-446.patch
>
>
> Lens is even showing sensitive properties like lens.server.db.jdbc.user and 
> lens.server.db.jdbc.pass to the client. Server-side params should be hidden 
> from this api
> api called:
> {noformat}
> http://internal-lens-server:/lensapi/session/params?sessionid=%3C?xml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22?%3E%3ClensSessionHandle%3E%3CpublicId%3E1ebec3a5-cd11-4a3d-b9d5-79e5d9707710%3C/publicId%3E%3CsecretId%3E524384d8-41c5-4459-87be-37fdde4ba14f%3C/secretId%3E%3C/lensSessionHandle%3E
> {noformat}
> sample output:
> {noformat}
> 
> hive.metastore.batch.retrieve.max=100
> 
> hive.metastore.batch.retrieve.table.partition.max=500
> 
> hive.metastore.client.connect.retry.delay=1
> hive.metastore.client.socket.timeout=20
> hive.metastore.connect.retries=5
> hive.metastore.failure.retries=3
> hive.metastore.uris=thrift://localhost:9083
> hive.server2.thrift.bind.host=localhost
> hive.server2.thrift.port=1
> lens.client.dbname=default
> lens.client.user.name=anonymous
> lens.cube.query.disable.aggregate.resolver=false
> lens.cube.query.disable.auto.join=false
> lens.cube.query.fail.if.data.partial=true
> lens.cube.query.promote.select.togroupby=true
> lens.query.add.insert.overwrite=true
> lens.query.enable.mail.notify=false
> lens.query.enable.metrics.per.query=false
> lens.query.enable.persistent.resultset=false
> 
> lens.query.enable.persistent.resultset.indriver=true
> 
> lens.query.hdfs.output.path=hdfsout
> lens.query.output.charset.encoding=UTF-8
> 
> lens.query.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec
> 
> lens.query.output.enable.compression=false
> lens.query.output.file.extn=.csv
> lens.query.output.write.footer=false
> lens.query.output.write.header=false
> 
> lens.query.result.output.serde=org.apache.lens.lib.query.CSVSerde
> 
> 
> lens.query.result.parent.dir=file:///tmp/lensreports
> 
> 
> lens.query.result.size.format.threshold=10737418240
> 
> lens.query.result.split.multiple=false
> lens.query.result.split.multiple.maxrows=10
> lens.server.base.url=http://0.0.0.0:/lensapi
> lens.server.db.driver.name=com.mysql.jdbc.Driver
> lens.server.db.jdbc.pass={masked}
> 
> lens.server.db.jdbc.url=jdbc:mysql://localhost:3306/lens
> 
> lens.server.db.jdbc.user={masked}
> lens.server.db.validation.query=select 1
> 
> lens.server.drivers=org.apache.lens.driver.hive.HiveDriver
> 
> 
> lens.session.aux.jars={masked}
> 
> lens.session.cluster.user={masked}
> lens.session.loggedin.user=anonymous
> silent=off
> 
> {noformat}



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


[jira] [Commented] (LENS-704) org.apache.lens.server.query.QueryAPIErrorResponseTest.setUp fails sometimes

2015-10-08 Thread Amareshwari Sriramadasu (JIRA)

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

Amareshwari Sriramadasu commented on LENS-704:
--

Seen another instance today 
https://builds.apache.org/job/Lens-Commit/org.apache.lens$lens-server/1099/testReport/junit/org.apache.lens.server.query/QueryAPIErrorResponseTest/setUp/


{noformat}
java.lang.RuntimeException: java.net.BindException: Address already in use
at org.subethamail.smtp.server.SMTPServer.start(SMTPServer.java:292)
at org.subethamail.wiser.Wiser.start(Wiser.java:90)
at 
org.apache.lens.server.query.TestQueryEndEmailNotifier.setUp(TestQueryEndEmailNotifier.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.TestRunner.beforeRun(TestRunner.java:641)
at org.testng.TestRunner.run(TestRunner.java:609)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
at org.testng.TestNG.run(TestNG.java:1031)
at 
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:69)
at 
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:181)
at 
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)
at 
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113)
at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at 
java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at 
org.subethamail.smtp.server.SMTPServer.createServerSocket(SMTPServer.java:334)
at org.subethamail.smtp.server.SMTPServer.start(SMTPServer.java:288)
at org.subethamail.wiser.Wiser.start(Wiser.java:90)
at 
org.apache.lens.server.query.TestQueryEndEmailNotifier.setUp(TestQueryEndEmailNotifier.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.TestRunner.beforeRun(TestRunner.java:641)
at org.testng.TestRunner.run(TestRunner.java:609)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
at org.testng.TestNG.run(TestNG.java:1031)
at 
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:69)
at 

[jira] [Commented] (LENS-800) Change rewrite to use format string around measures

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-800:
---

Another thought is, formatting should not be a part of the rewrite. After query 
results are obtained, then ResultFormatter should be able to use java's 
String.format or [Decimal Format | 
http://docs.oracle.com/javase/6/docs/api/java/text/DecimalFormat.html] to 
format the numbers. 

> Change rewrite to use format string around measures
> ---
>
> Key: LENS-800
> URL: https://issues.apache.org/jira/browse/LENS-800
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>




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


[jira] [Commented] (LENS-797) Improve CLI documentation to mention the helpful role of pressing tab while writing commands

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-797:
-

UNSTABLE: Integrated in Lens-Commit-Java8 #10 (See 
[https://builds.apache.org/job/Lens-Commit-Java8/10/])
LENS-797: Improve CLI documentation to mention the helpful role of 
(raju.bairishetti: rev 2d7948d725a4c0444ac04e958e9b2a7ccf2dc59b)
* 
lens-cli/src/main/java/org/apache/lens/cli/commands/LensLogResourceCommands.java
* 
lens-cli/src/main/java/org/apache/lens/cli/commands/LensNativeTableCommands.java
* src/site/apt/user/cli.apt
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensStorageCommands.java
* 
lens-cli/src/main/java/org/apache/lens/cli/commands/LensDimensionTableCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensDimensionCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensFactCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensQueryCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensDatabaseCommands.java
* lens-cli/src/test/resources/cli-intro.apt
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensCubeCommands.java
* 
lens-cli/src/main/java/org/apache/lens/cli/commands/LensConnectionCommands.java


> Improve CLI documentation to mention the helpful role of pressing tab while 
> writing commands
> 
>
> Key: LENS-797
> URL: https://issues.apache.org/jira/browse/LENS-797
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.4
>
> Attachments: LENS-797.03.patch
>
>
> https://lens.apache.org/user/cli.html doesn't mention that pressing  can 
> be interactive. I've seen users looking up commands every time and even 
> saving commands in text files for quicker access. We should mention that 
> commands need not be remembered and CLI can help you find the command and its 
> arguments any time. 



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


Re: Review Request 38521: LENS-607: Fix Test failures in java8

2015-10-08 Thread Raju Bairishetti

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

(Updated Oct. 8, 2015, 11:15 a.m.)


Review request for lens, Amareshwari Sriramadasu and Rajat Khandelwal.


Changes
---

Addressed some review comments.

TODO: Fix the test cases after LENS-752 changes


Bugs: LENS-607
https://issues.apache.org/jira/browse/LENS-607


Repository: lens


Description
---

Iterators in java7 and java8 are returning elements in different order. All 
most all failures are because of this case.

Changes:
TestBaseCubeQueries: Changed driver supported storages to single storage 
instead of multiple
TestCubeRewriter: Returning diffrent orders in the joins. Separated join part 
from the actaul query part and verified join part and remaining query part 
separately.
TestStorageUtil: Multiple sets can answer the given partitions. Changed asserts 
accordingly.
TestTimeRangeResolver: Changed asserts to cover all the errors.

*ColumnSQLRewriter* : Changed all data structures to *Linked* datastructures 
(Arraylist --> LinkedList, HashSet to LinkedHashSet, HashMap to LinkedHashMap) 
to return the elements in insertion order.

TestColumnSQLRewriter: Changed the order of columns in queries.


Diffs (updated)
-

  lens-cli/src/test/java/org/apache/lens/cli/TestLensCubeCommands.java 39441c9 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestBaseCubeQueries.java 
0f76c76 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeRewriter.java 
a58f5fe 
  
lens-cube/src/test/java/org/apache/lens/cube/parse/TestDenormalizationResolver.java
 bde4edd 
  
lens-cube/src/test/java/org/apache/lens/cube/parse/TestExpressionResolver.java 
493b8d6 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestQuery.java 
PRE-CREATION 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestStorageUtil.java 
81f515b 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestTimeRangeResolver.java 
cb27d50 
  
lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/ColumnarSQLRewriter.java
 295b476 
  
lens-driver-jdbc/src/test/java/org/apache/lens/driver/jdbc/TestColumnarSQLRewriter.java
 db09a4b 

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


Testing
---

Tested on both java7 and java8. Build is successful. Will post the build 
artifact summary soon.

c1mng0pxdty3:lens raju.bairishetti$ java -version
**java version "1.8.0_40"**

[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Lens Checkstyle Rules .. SUCCESS [  4.849 s]
[INFO] Lens ... SUCCESS [  5.806 s]
[INFO] Lens API ... SUCCESS [ 31.562 s]
[INFO] Lens API for server and extensions . SUCCESS [ 23.200 s]
[INFO] Lens Cube .. SUCCESS [06:19 min]
[INFO] Lens DB storage  SUCCESS [ 23.015 s]
[INFO] Lens Query Library . SUCCESS [ 18.249 s]
[INFO] Lens Hive Driver ... SUCCESS [03:11 min]
[INFO] Lens Driver for JDBC ... SUCCESS [ 41.094 s]
[INFO] Lens Elastic Search Driver . SUCCESS [ 26.188 s]
[INFO] Lens Server  SUCCESS [12:38 min]
[INFO] Lens client  SUCCESS [ 44.951 s]
[INFO] Lens CLI ... SUCCESS [04:57 min]
[INFO] Lens Examples .. SUCCESS [ 11.491 s]
[INFO] Lens Distribution .. SUCCESS [ 19.483 s]
[INFO] Lens ML Lib  SUCCESS [02:35 min]
[INFO] Lens ML Ext Distribution ... SUCCESS [  7.919 s]
[INFO] Lens Regression  SUCCESS [ 11.523 s]
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 34:13 min
[INFO] Finished at: 2015-09-19T12:13:27+05:30
[INFO] Final Memory: 158M/1483M
[INFO] 


JDK-7:  **sun-jdk-1.7.0_55**

regression-2.4.0-beta-SNAPSHOT-tests.jar
[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Lens Checkstyle Rules . SUCCESS [1.999s]
[INFO] Lens .. SUCCESS [2.816s]
[INFO] Lens API .. SUCCESS [23.685s]
[INFO] Lens API for server and extensions  SUCCESS [20.093s]
[INFO] Lens Cube . SUCCESS 

Re: Review Request 38521: LENS-607: Fix Test failures in java8

2015-10-08 Thread Raju Bairishetti


> On Oct. 1, 2015, 9:07 a.m., Rajat Khandelwal wrote:
> > lens-cube/src/test/java/org/apache/lens/cube/parse/TestQuery.java, line 49
> > 
> >
> > Can we re-use `org.apache.hadoop.hive.ql.parse.JoinType` here? 
> > 
> > That one doesn't have `JOIN` which I think is ambiguous here too. 
> > Default can be null or something.

org.apache.hadoop.hive.ql.parse.JoinType does not have **JOIN** keyword/type. 
We are using **join** key word in tests for joining the tables.


- Raju


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


On Oct. 8, 2015, 11:15 a.m., Raju Bairishetti wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38521/
> ---
> 
> (Updated Oct. 8, 2015, 11:15 a.m.)
> 
> 
> Review request for lens, Amareshwari Sriramadasu and Rajat Khandelwal.
> 
> 
> Bugs: LENS-607
> https://issues.apache.org/jira/browse/LENS-607
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> Iterators in java7 and java8 are returning elements in different order. All 
> most all failures are because of this case.
> 
> Changes:
> TestBaseCubeQueries: Changed driver supported storages to single storage 
> instead of multiple
> TestCubeRewriter: Returning diffrent orders in the joins. Separated join part 
> from the actaul query part and verified join part and remaining query part 
> separately.
> TestStorageUtil: Multiple sets can answer the given partitions. Changed 
> asserts accordingly.
> TestTimeRangeResolver: Changed asserts to cover all the errors.
> 
> *ColumnSQLRewriter* : Changed all data structures to *Linked* datastructures 
> (Arraylist --> LinkedList, HashSet to LinkedHashSet, HashMap to 
> LinkedHashMap) to return the elements in insertion order.
> 
> TestColumnSQLRewriter: Changed the order of columns in queries.
> 
> 
> Diffs
> -
> 
>   lens-cli/src/test/java/org/apache/lens/cli/TestLensCubeCommands.java 
> 39441c9 
>   lens-cube/src/test/java/org/apache/lens/cube/parse/TestBaseCubeQueries.java 
> 0f76c76 
>   lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeRewriter.java 
> a58f5fe 
>   
> lens-cube/src/test/java/org/apache/lens/cube/parse/TestDenormalizationResolver.java
>  bde4edd 
>   
> lens-cube/src/test/java/org/apache/lens/cube/parse/TestExpressionResolver.java
>  493b8d6 
>   lens-cube/src/test/java/org/apache/lens/cube/parse/TestQuery.java 
> PRE-CREATION 
>   lens-cube/src/test/java/org/apache/lens/cube/parse/TestStorageUtil.java 
> 81f515b 
>   
> lens-cube/src/test/java/org/apache/lens/cube/parse/TestTimeRangeResolver.java 
> cb27d50 
>   
> lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/ColumnarSQLRewriter.java
>  295b476 
>   
> lens-driver-jdbc/src/test/java/org/apache/lens/driver/jdbc/TestColumnarSQLRewriter.java
>  db09a4b 
> 
> Diff: https://reviews.apache.org/r/38521/diff/
> 
> 
> Testing
> ---
> 
> Tested on both java7 and java8. Build is successful. Will post the build 
> artifact summary soon.
> 
> c1mng0pxdty3:lens raju.bairishetti$ java -version
> **java version "1.8.0_40"**
> 
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Lens Checkstyle Rules .. SUCCESS [  4.849 
> s]
> [INFO] Lens ... SUCCESS [  5.806 
> s]
> [INFO] Lens API ... SUCCESS [ 31.562 
> s]
> [INFO] Lens API for server and extensions . SUCCESS [ 23.200 
> s]
> [INFO] Lens Cube .. SUCCESS [06:19 
> min]
> [INFO] Lens DB storage  SUCCESS [ 23.015 
> s]
> [INFO] Lens Query Library . SUCCESS [ 18.249 
> s]
> [INFO] Lens Hive Driver ... SUCCESS [03:11 
> min]
> [INFO] Lens Driver for JDBC ... SUCCESS [ 41.094 
> s]
> [INFO] Lens Elastic Search Driver . SUCCESS [ 26.188 
> s]
> [INFO] Lens Server  SUCCESS [12:38 
> min]
> [INFO] Lens client  SUCCESS [ 44.951 
> s]
> [INFO] Lens CLI ... SUCCESS [04:57 
> min]
> [INFO] Lens Examples .. SUCCESS [ 11.491 
> s]
> [INFO] Lens Distribution .. SUCCESS [ 19.483 
> s]
> [INFO] Lens ML Lib  SUCCESS [02:35 
> min]
> [INFO] Lens ML Ext Distribution ... SUCCESS [  7.919 
> s]
> 

[jira] [Created] (LENS-807) Priority is not getting set in QueryContext. It's always NORMAL

2015-10-08 Thread Rajat Khandelwal (JIRA)
Rajat Khandelwal created LENS-807:
-

 Summary: Priority is not getting set in QueryContext. It's always 
NORMAL
 Key: LENS-807
 URL: https://issues.apache.org/jira/browse/LENS-807
 Project: Apache Lens
  Issue Type: Bug
Reporter: Rajat Khandelwal
Assignee: Rajat Khandelwal






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


[jira] [Commented] (LENS-807) Priority is not getting set in QueryContext. It's always NORMAL

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-807:
---

Created https://reviews.apache.org/r/39127/

> Priority is not getting set in QueryContext. It's always NORMAL
> ---
>
> Key: LENS-807
> URL: https://issues.apache.org/jira/browse/LENS-807
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
>




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


[jira] [Work started] (LENS-807) Priority is not getting set in QueryContext. It's always NORMAL

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Work on LENS-807 started by Rajat Khandelwal.
-
> Priority is not getting set in QueryContext. It's always NORMAL
> ---
>
> Key: LENS-807
> URL: https://issues.apache.org/jira/browse/LENS-807
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
>




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


Re: Review Request 38758: UI for Saved/Parametrized queries + Bug fixes/Enhancements

2015-10-08 Thread Ankeet Maini

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

(Updated Oct. 8, 2015, 12:19 p.m.)


Review request for lens, Ajay Yadava, Amareshwari Sriramadasu, Amruth Sampath, 
Bala Nathan, Rajat Khandelwal, Raju Bairishetti, and Yash Sharma.


Changes
---

Removes version from package.json as suggested by Amareshwari!


Bugs: LENS-782
https://issues.apache.org/jira/browse/LENS-782


Repository: lens


Description
---

LENS-782 UI for Saved/Parametrized queries + Bug fixes/Enhancements


Diffs (updated)
-

  lens-ui/app/actions/AdhocQueryActions.js 8c2d109 
  lens-ui/app/adapters/AdhocQueryAdapter.js 98f9b49 
  lens-ui/app/adapters/BaseAdapter.js 81b9ddc 
  lens-ui/app/app.js 3e389a7 
  lens-ui/app/components/AdhocQueryComponent.js 66ddf75 
  lens-ui/app/components/AppComponent.js d7a38f9 
  lens-ui/app/components/CubeSchemaComponent.js 593c54a 
  lens-ui/app/components/CubeTreeComponent.js 241c12f 
  lens-ui/app/components/DatabaseComponent.js 09ee2eb 
  lens-ui/app/components/HeaderComponent.js 5ec3397 
  lens-ui/app/components/LoaderComponent.js ba11c64 
  lens-ui/app/components/LoginComponent.js cf95af9 
  lens-ui/app/components/LogoutComponent.js 3fc1627 
  lens-ui/app/components/QueryBoxComponent.js 6d5843c 
  lens-ui/app/components/QueryDetailResultComponent.js b969a4a 
  lens-ui/app/components/QueryOperationsComponent.js a17a636 
  lens-ui/app/components/QueryParamRowComponent.js PRE-CREATION 
  lens-ui/app/components/QueryParamsComponent.js PRE-CREATION 
  lens-ui/app/components/QueryPreviewComponent.js fabe383 
  lens-ui/app/components/QueryResultsComponent.js 6e4b8c2 
  lens-ui/app/components/RequireAuthenticationComponent.js 9a755b0 
  lens-ui/app/components/RequireAuthenticationComponent.js 9a755b0 
  lens-ui/app/components/SavedQueriesComponent.js PRE-CREATION 
  lens-ui/app/components/SavedQueryPreviewComponent.js PRE-CREATION 
  lens-ui/app/components/SidebarComponent.js dcc8737 
  lens-ui/app/components/TableSchemaComponent.js 67dc25a 
  lens-ui/app/components/TableTreeComponent.js 026e443 
  lens-ui/app/constants/AdhocQueryConstants.js 3c4f93a 
  lens-ui/app/constants/AppConstants.js 48cd93e 
  lens-ui/app/dispatcher/AppDispatcher.js 31b267c 
  lens-ui/app/stores/AdhocQueryStore.js 7420270 
  lens-ui/app/stores/CubeStore.js 8b20b95 
  lens-ui/app/stores/DatabaseStore.js 9f4490b 
  lens-ui/app/stores/SavedQueryStore.js PRE-CREATION 
  lens-ui/app/stores/TableStore.js 299d9e8 
  lens-ui/app/stores/UserStore.js 47da021 
  lens-ui/app/styles/css/global.css 131ab46 
  lens-ui/app/styles/css/login.css b400cfb 
  lens-ui/app/styles/css/query-component.css a82165e 
  lens-ui/app/styles/css/tree.css 402c9a0 
  lens-ui/app/styles/less/globals.less c0704dc 
  lens-ui/app/utils/ErrorParser.js PRE-CREATION 
  lens-ui/index.html 9c20fe9 
  lens-ui/package.json 920b120 
  lens-ui/pom.xml 69bcee5 
  lens-ui/server.js e812018 
  lens-ui/webpack.config.js ab4021f 
  pom.xml dd26713 

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


Testing
---

just JavaScript.


Thanks,

Ankeet Maini



[jira] [Commented] (LENS-446) server params should not be passed to session and drivers

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-446:
-

FAILURE: Integrated in Lens-Commit #1099 (See 
[https://builds.apache.org/job/Lens-Commit/1099/])
LENS-446: Remove server params from session and driver configurations 
(raju.bairishetti: rev 7080b76c63a82e09b5d42c2d2b7458f80b1085f8)
* 
lens-server/src/main/java/org/apache/lens/server/query/QueryExecutionServiceImpl.java
* lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java
* lens-server/src/main/java/org/apache/lens/server/LensApplication.java
* lens-server/src/main/java/org/apache/lens/server/session/LensSessionImpl.java
* lens-server/src/main/java/org/apache/lens/server/LensServerConf.java
* 
lens-server/src/test/java/org/apache/lens/server/session/TestSessionResource.java


> server params should not be passed to session and drivers
> -
>
> Key: LENS-446
> URL: https://issues.apache.org/jira/browse/LENS-446
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Angad Singh
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.4
>
> Attachments: LENS-446.patch
>
>
> Lens is even showing sensitive properties like lens.server.db.jdbc.user and 
> lens.server.db.jdbc.pass to the client. Server-side params should be hidden 
> from this api
> api called:
> {noformat}
> http://internal-lens-server:/lensapi/session/params?sessionid=%3C?xml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22?%3E%3ClensSessionHandle%3E%3CpublicId%3E1ebec3a5-cd11-4a3d-b9d5-79e5d9707710%3C/publicId%3E%3CsecretId%3E524384d8-41c5-4459-87be-37fdde4ba14f%3C/secretId%3E%3C/lensSessionHandle%3E
> {noformat}
> sample output:
> {noformat}
> 
> hive.metastore.batch.retrieve.max=100
> 
> hive.metastore.batch.retrieve.table.partition.max=500
> 
> hive.metastore.client.connect.retry.delay=1
> hive.metastore.client.socket.timeout=20
> hive.metastore.connect.retries=5
> hive.metastore.failure.retries=3
> hive.metastore.uris=thrift://localhost:9083
> hive.server2.thrift.bind.host=localhost
> hive.server2.thrift.port=1
> lens.client.dbname=default
> lens.client.user.name=anonymous
> lens.cube.query.disable.aggregate.resolver=false
> lens.cube.query.disable.auto.join=false
> lens.cube.query.fail.if.data.partial=true
> lens.cube.query.promote.select.togroupby=true
> lens.query.add.insert.overwrite=true
> lens.query.enable.mail.notify=false
> lens.query.enable.metrics.per.query=false
> lens.query.enable.persistent.resultset=false
> 
> lens.query.enable.persistent.resultset.indriver=true
> 
> lens.query.hdfs.output.path=hdfsout
> lens.query.output.charset.encoding=UTF-8
> 
> lens.query.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec
> 
> lens.query.output.enable.compression=false
> lens.query.output.file.extn=.csv
> lens.query.output.write.footer=false
> lens.query.output.write.header=false
> 
> lens.query.result.output.serde=org.apache.lens.lib.query.CSVSerde
> 
> 
> lens.query.result.parent.dir=file:///tmp/lensreports
> 
> 
> lens.query.result.size.format.threshold=10737418240
> 
> lens.query.result.split.multiple=false
> lens.query.result.split.multiple.maxrows=10
> lens.server.base.url=http://0.0.0.0:/lensapi
> lens.server.db.driver.name=com.mysql.jdbc.Driver
> lens.server.db.jdbc.pass={masked}
> 
> lens.server.db.jdbc.url=jdbc:mysql://localhost:3306/lens
> 
> lens.server.db.jdbc.user={masked}
> lens.server.db.validation.query=select 1
> 
> lens.server.drivers=org.apache.lens.driver.hive.HiveDriver
> 
> 
> lens.session.aux.jars={masked}
> 
> lens.session.cluster.user={masked}
> lens.session.loggedin.user=anonymous
> silent=off
> 
> {noformat}



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


[jira] [Commented] (LENS-795) Look ahead is failing with partition not found if any process time partitions are absent

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-795:
-

FAILURE: Integrated in Lens-Commit #1099 (See 
[https://builds.apache.org/job/Lens-Commit/1099/])
LENS-795 : Look ahead is failing with partition not found if any process 
(raju.bairishetti: rev d7f09ede37e1f2d75e3e3d62a2e3a0a2375575cc)
* 
lens-cube/src/main/java/org/apache/lens/cube/parse/PartitionRangesForPartitionColumns.java
* lens-cube/src/main/java/org/apache/lens/cube/parse/StorageTableResolver.java


> Look ahead is failing with partition not found if any process time partitions 
> are absent
> 
>
> Key: LENS-795
> URL: https://issues.apache.org/jira/browse/LENS-795
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.4
>
> Attachments: LENS-795.02.patch
>
>




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


[jira] [Commented] (LENS-797) Improve CLI documentation to mention the helpful role of pressing tab while writing commands

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-797:
-

FAILURE: Integrated in Lens-Commit #1099 (See 
[https://builds.apache.org/job/Lens-Commit/1099/])
LENS-797: Improve CLI documentation to mention the helpful role of 
(raju.bairishetti: rev 2d7948d725a4c0444ac04e958e9b2a7ccf2dc59b)
* lens-cli/src/test/resources/cli-intro.apt
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensDatabaseCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensStorageCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensFactCommands.java
* 
lens-cli/src/main/java/org/apache/lens/cli/commands/LensLogResourceCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensQueryCommands.java
* 
lens-cli/src/main/java/org/apache/lens/cli/commands/LensConnectionCommands.java
* src/site/apt/user/cli.apt
* 
lens-cli/src/main/java/org/apache/lens/cli/commands/LensDimensionTableCommands.java
* 
lens-cli/src/main/java/org/apache/lens/cli/commands/LensNativeTableCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensCubeCommands.java
* lens-cli/src/main/java/org/apache/lens/cli/commands/LensDimensionCommands.java


> Improve CLI documentation to mention the helpful role of pressing tab while 
> writing commands
> 
>
> Key: LENS-797
> URL: https://issues.apache.org/jira/browse/LENS-797
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.4
>
> Attachments: LENS-797.03.patch
>
>
> https://lens.apache.org/user/cli.html doesn't mention that pressing  can 
> be interactive. I've seen users looking up commands every time and even 
> saving commands in text files for quicker access. We should mention that 
> commands need not be remembered and CLI can help you find the command and its 
> arguments any time. 



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


[jira] [Commented] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-739:
-

FAILURE: Integrated in Lens-Commit-Java8 #11 (See 
[https://builds.apache.org/job/Lens-Commit-Java8/11/])
LENS-739 : Generate udf jar for lens-regression (arshadmatin: rev 
d4d4aa26a84f489eeef1cc9008660ac3ad570fa7)
* lens-regression/pom.xml
* lens-regression/src/additional/java/SampleUdf.java


> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


Review Request 39127: LENS-807: Priority is not getting set in QueryContext. It's always NORMAL

2015-10-08 Thread Rajat Khandelwal

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

Review request for lens.


Bugs: LENS-807
https://issues.apache.org/jira/browse/LENS-807


Repository: lens


Description
---


Diffs
-

  lens-driver-hive/src/main/java/org/apache/lens/driver/hive/HiveDriver.java 
4561ccf3424958b251b8eb31c649341bae8104c9 
  
lens-server-api/src/main/java/org/apache/lens/server/api/query/AbstractQueryContext.java
 0c980a20953efc6c2d7cc17c97b1552c64a8eb5f 
  
lens-server-api/src/main/java/org/apache/lens/server/api/query/QueryContext.java
 ac942077d78515404b83f4a02f841b73dd39e3df 

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


Testing
---


Thanks,

Rajat Khandelwal



Re: Review Request 38758: UI for Saved/Parametrized queries + Bug fixes/Enhancements

2015-10-08 Thread Ankeet Maini

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

(Updated Oct. 8, 2015, 12:26 p.m.)


Review request for lens, Ajay Yadava, Amareshwari Sriramadasu, Amruth Sampath, 
Bala Nathan, Rajat Khandelwal, Raju Bairishetti, and Yash Sharma.


Changes
---

Last diff was corrupted


Bugs: LENS-782
https://issues.apache.org/jira/browse/LENS-782


Repository: lens


Description
---

LENS-782 UI for Saved/Parametrized queries + Bug fixes/Enhancements


Diffs (updated)
-

  lens-ui/app/actions/AdhocQueryActions.js 8c2d109 
  lens-ui/app/adapters/AdhocQueryAdapter.js 98f9b49 
  lens-ui/app/adapters/BaseAdapter.js 81b9ddc 
  lens-ui/app/app.js 3e389a7 
  lens-ui/app/components/AdhocQueryComponent.js 66ddf75 
  lens-ui/app/components/AppComponent.js d7a38f9 
  lens-ui/app/components/CubeSchemaComponent.js 593c54a 
  lens-ui/app/components/CubeTreeComponent.js 241c12f 
  lens-ui/app/components/DatabaseComponent.js 09ee2eb 
  lens-ui/app/components/HeaderComponent.js 5ec3397 
  lens-ui/app/components/LoaderComponent.js ba11c64 
  lens-ui/app/components/LoginComponent.js cf95af9 
  lens-ui/app/components/LogoutComponent.js 3fc1627 
  lens-ui/app/components/QueryBoxComponent.js 6d5843c 
  lens-ui/app/components/QueryDetailResultComponent.js b969a4a 
  lens-ui/app/components/QueryOperationsComponent.js a17a636 
  lens-ui/app/components/QueryParamRowComponent.js PRE-CREATION 
  lens-ui/app/components/QueryParamsComponent.js PRE-CREATION 
  lens-ui/app/components/QueryPreviewComponent.js fabe383 
  lens-ui/app/components/QueryResultsComponent.js 6e4b8c2 
  lens-ui/app/components/RequireAuthenticationComponent.js 9a755b0 
  lens-ui/app/components/RequireAuthenticationComponent.js 9a755b0 
  lens-ui/app/components/SavedQueriesComponent.js PRE-CREATION 
  lens-ui/app/components/SavedQueryPreviewComponent.js PRE-CREATION 
  lens-ui/app/components/SidebarComponent.js dcc8737 
  lens-ui/app/components/TableSchemaComponent.js 67dc25a 
  lens-ui/app/components/TableTreeComponent.js 026e443 
  lens-ui/app/constants/AdhocQueryConstants.js 3c4f93a 
  lens-ui/app/constants/AppConstants.js 48cd93e 
  lens-ui/app/dispatcher/AppDispatcher.js 31b267c 
  lens-ui/app/stores/AdhocQueryStore.js 7420270 
  lens-ui/app/stores/CubeStore.js 8b20b95 
  lens-ui/app/stores/DatabaseStore.js 9f4490b 
  lens-ui/app/stores/SavedQueryStore.js PRE-CREATION 
  lens-ui/app/stores/TableStore.js 299d9e8 
  lens-ui/app/stores/UserStore.js 47da021 
  lens-ui/app/styles/css/global.css 131ab46 
  lens-ui/app/styles/css/login.css b400cfb 
  lens-ui/app/styles/css/query-component.css a82165e 
  lens-ui/app/styles/css/tree.css 402c9a0 
  lens-ui/app/styles/less/globals.less c0704dc 
  lens-ui/app/utils/ErrorParser.js PRE-CREATION 
  lens-ui/index.html 9c20fe9 
  lens-ui/package.json 920b120 
  lens-ui/pom.xml 69bcee5 
  lens-ui/server.js e812018 
  lens-ui/webpack.config.js ab4021f 
  pom.xml dd26713 

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


Testing
---

just JavaScript.


Thanks,

Ankeet Maini



[jira] [Updated] (LENS-446) server params should not be passed to session and drivers

2015-10-08 Thread Raju Bairishetti (JIRA)

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

Raju Bairishetti updated LENS-446:
--
Resolution: Fixed
Status: Resolved  (was: Patch Available)

> server params should not be passed to session and drivers
> -
>
> Key: LENS-446
> URL: https://issues.apache.org/jira/browse/LENS-446
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Angad Singh
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.4
>
> Attachments: LENS-446.patch
>
>
> Lens is even showing sensitive properties like lens.server.db.jdbc.user and 
> lens.server.db.jdbc.pass to the client. Server-side params should be hidden 
> from this api
> api called:
> {noformat}
> http://internal-lens-server:/lensapi/session/params?sessionid=%3C?xml+version%3D%221.0%22+encoding%3D%22UTF-8%22+standalone%3D%22yes%22?%3E%3ClensSessionHandle%3E%3CpublicId%3E1ebec3a5-cd11-4a3d-b9d5-79e5d9707710%3C/publicId%3E%3CsecretId%3E524384d8-41c5-4459-87be-37fdde4ba14f%3C/secretId%3E%3C/lensSessionHandle%3E
> {noformat}
> sample output:
> {noformat}
> 
> hive.metastore.batch.retrieve.max=100
> 
> hive.metastore.batch.retrieve.table.partition.max=500
> 
> hive.metastore.client.connect.retry.delay=1
> hive.metastore.client.socket.timeout=20
> hive.metastore.connect.retries=5
> hive.metastore.failure.retries=3
> hive.metastore.uris=thrift://localhost:9083
> hive.server2.thrift.bind.host=localhost
> hive.server2.thrift.port=1
> lens.client.dbname=default
> lens.client.user.name=anonymous
> lens.cube.query.disable.aggregate.resolver=false
> lens.cube.query.disable.auto.join=false
> lens.cube.query.fail.if.data.partial=true
> lens.cube.query.promote.select.togroupby=true
> lens.query.add.insert.overwrite=true
> lens.query.enable.mail.notify=false
> lens.query.enable.metrics.per.query=false
> lens.query.enable.persistent.resultset=false
> 
> lens.query.enable.persistent.resultset.indriver=true
> 
> lens.query.hdfs.output.path=hdfsout
> lens.query.output.charset.encoding=UTF-8
> 
> lens.query.output.compression.codec=org.apache.hadoop.io.compress.GzipCodec
> 
> lens.query.output.enable.compression=false
> lens.query.output.file.extn=.csv
> lens.query.output.write.footer=false
> lens.query.output.write.header=false
> 
> lens.query.result.output.serde=org.apache.lens.lib.query.CSVSerde
> 
> 
> lens.query.result.parent.dir=file:///tmp/lensreports
> 
> 
> lens.query.result.size.format.threshold=10737418240
> 
> lens.query.result.split.multiple=false
> lens.query.result.split.multiple.maxrows=10
> lens.server.base.url=http://0.0.0.0:/lensapi
> lens.server.db.driver.name=com.mysql.jdbc.Driver
> lens.server.db.jdbc.pass={masked}
> 
> lens.server.db.jdbc.url=jdbc:mysql://localhost:3306/lens
> 
> lens.server.db.jdbc.user={masked}
> lens.server.db.validation.query=select 1
> 
> lens.server.drivers=org.apache.lens.driver.hive.HiveDriver
> 
> 
> lens.session.aux.jars={masked}
> 
> lens.session.cluster.user={masked}
> lens.session.loggedin.user=anonymous
> silent=off
> 
> {noformat}



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


[jira] [Resolved] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Arshad Matin (JIRA)

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

Arshad Matin resolved LENS-739.
---
Resolution: Fixed

Thanks [~archana.h]

> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


[jira] [Updated] (LENS-400) TestLensQueryCommands.testQueryCommands is failing intermittently

2015-10-08 Thread Amareshwari Sriramadasu (JIRA)

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

Amareshwari Sriramadasu updated LENS-400:
-
Attachment: org.apache.lens.cli.TestLensQueryCommands.log

Saw one more instance here - 
https://builds.apache.org/job/Lens-Commit/org.apache.lens$lens-cli/1099/testReport/junit/org.apache.lens.cli/TestLensQueryCommands/testQueryCommands/

Attaching full log.

> TestLensQueryCommands.testQueryCommands  is failing intermittently
> --
>
> Key: LENS-400
> URL: https://issues.apache.org/jira/browse/LENS-400
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client
>Reporter: Raju Bairishetti
> Fix For: 2.5
>
> Attachments: org.apache.lens.cli.TestLensQueryCommands.log
>
>
> *Error : Driver :org.apache.lens.driver.hive.HiveDriver Cause :Error while 
> compiling statement: FAILED: SemanticException [Error 10001]: Line 1:159 
> Table not found 'local_dim_table'*
> Complete stacktrace: 
> {noformat}
> 2015-02-24 08:03:13,615 (QuerySubmitter) [ERROR - 
> org.apache.lens.server.api.query.DriverSelectorQueryContext.setDriverQueriesAndPlans(DriverSelectorQueryContext.java:139)]
>  Setting driver plan failed for driver 
> org.apache.lens.driver.hive.HiveDriver@5212d1c8
> org.apache.lens.api.LensException: Error executing query
>   at org.apache.lens.driver.hive.HiveDriver.execute(HiveDriver.java:411)
>   at org.apache.lens.driver.hive.HiveDriver.explain(HiveDriver.java:325)
>   at org.apache.lens.driver.hive.HiveDriver.explain(HiveDriver.java:70)
>   at 
> org.apache.lens.server.api.query.DriverSelectorQueryContext.setDriverQueriesAndPlans(DriverSelectorQueryContext.java:136)
>   at 
> org.apache.lens.server.api.query.AbstractQueryContext.setDriverQueriesAndPlans(AbstractQueryContext.java:117)
>   at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.rewriteAndSelect(QueryExecutionServiceImpl.java:970)
>   at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.access$800(QueryExecutionServiceImpl.java:91)
>   at 
> org.apache.lens.server.query.QueryExecutionServiceImpl$QuerySubmitter.run(QueryExecutionServiceImpl.java:479)
>   at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.hive.service.cli.HiveSQLException: Error while 
> compiling statement: FAILED: SemanticException [Error 10001]: Line 1:159 
> Table not found 'local_dim_table'
>   at 
> org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.checkStatus(ThriftCLIServiceClient.java:52)
>   at 
> org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.executeStatementInternal(ThriftCLIServiceClient.java:151)
>   at 
> org.apache.hive.service.cli.thrift.ThriftCLIServiceClient.executeStatement(ThriftCLIServiceClient.java:129)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at 
> org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.invokeInternal(RetryingThriftCLIServiceClient.java:301)
>   at 
> org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient.invoke(RetryingThriftCLIServiceClient.java:329)
>   at com.sun.proxy.$Proxy72.executeStatement(Unknown Source)
>   at 
> org.apache.hive.service.cli.thrift.RetryingThriftCLIServiceClient$CLIServiceClientWrapper.executeStatement(RetryingThriftCLIServiceClient.java:111)
>   at org.apache.lens.driver.hive.HiveDriver.execute(HiveDriver.java:388)
> {noformat}
> {noformat}
> Error Message
> expected [SUCCESSFUL] but found [FAILED]
> Stacktrace
> java.lang.AssertionError: expected [SUCCESSFUL] but found [FAILED]
>   at org.testng.Assert.fail(Assert.java:94)
>   at org.testng.Assert.failNotEquals(Assert.java:494)
>   at org.testng.Assert.assertEquals(Assert.java:123)
>   at org.testng.Assert.assertEquals(Assert.java:165)
>   at 
> org.apache.lens.cli.TestLensQueryCommands.setup(TestLensQueryCommands.java:282)
>   at 
> org.apache.lens.cli.TestLensQueryCommands.testQueryCommands(TestLensQueryCommands.java:71)
> {noformat}



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


[jira] [Commented] (LENS-795) Look ahead is failing with partition not found if any process time partitions are absent

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-795:
-

UNSTABLE: Integrated in Lens-Commit-Java8 #10 (See 
[https://builds.apache.org/job/Lens-Commit-Java8/10/])
LENS-795 : Look ahead is failing with partition not found if any process 
(raju.bairishetti: rev d7f09ede37e1f2d75e3e3d62a2e3a0a2375575cc)
* 
lens-cube/src/main/java/org/apache/lens/cube/parse/PartitionRangesForPartitionColumns.java
* lens-cube/src/main/java/org/apache/lens/cube/parse/StorageTableResolver.java


> Look ahead is failing with partition not found if any process time partitions 
> are absent
> 
>
> Key: LENS-795
> URL: https://issues.apache.org/jira/browse/LENS-795
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.4
>
> Attachments: LENS-795.02.patch
>
>




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


[jira] [Commented] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on LENS-739:


Patch does not apply. Build job: 
https://builds.apache.org/job/PreCommit-Lens-Build/109/

> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


[jira] [Commented] (LENS-782) UI support for the saved, parametrized query feature.

2015-10-08 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on LENS-782:


Applied patch: 
[782-origin-master.patch|https://issues.apache.org/jira/secure/attachment/12765585/782-origin-master.patch]
 and ran command: mvn clean install. Result: Failure. Build Job: 
https://builds.apache.org/job/PreCommit-Lens-Build/108/

> UI support for the saved, parametrized query feature.
> -
>
> Key: LENS-782
> URL: https://issues.apache.org/jira/browse/LENS-782
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Ankeet Maini
>Assignee: Ankeet Maini
> Attachments: 782-origin-master.patch, Screen Shot 2015-09-25 at 
> 11.38.13 am.png, Screen Shot 2015-09-25 at 11.44.32 am.png, Screen Shot 
> 2015-09-25 at 11.55.34 am.png, Screen Shot 2015-09-25 at 11.56.28 am.png, 
> Screen Shot 2015-09-25 at 11.57.41 am.png, Screen Shot 2015-09-25 at 11.59.34 
> am.png
>
>
> 1. Provision for the user to view all the saved queries
> 2. Edit a saved query
> 3. Run a saved query
> 4. Parametrized queries (as saved queries)
> The modifications are enumerated as follows:-
> 1. While trying to run a query, the app first checks if there are any 
> parameters or not, if yes then execution is stopped and the user is prompted 
> to Save the query first.
> 2. If the user is trying to Save a query, the app checks if there are any 
> parameters, if yes then the user is shown a non-obtrusive box to fill out the 
> meta about the params and a value for it, else the Query is saved and the 
> result either success or failure is shown to the user.
> 3. The app has been modified to keep up with the LENS server development 
> which now in case of failed/bad-formed queries doesn't return a handle and 
> throws an exception, which is propagated to the user immediately.
> 4. On clicking Saved queries link from the top left operation box, it lists 
> all the Saved Queries present in a paginated manner with the total pages and 
> current page shown cutely at the top right corner of Saved Queries section.



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


Re: Review Request 39127: LENS-807: Priority is not getting set in QueryContext. It's always NORMAL

2015-10-08 Thread Rajat Khandelwal

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

(Updated Oct. 8, 2015, 6:48 p.m.)


Review request for lens.


Bugs: LENS-807
https://issues.apache.org/jira/browse/LENS-807


Repository: lens


Description (updated)
---

small bug


Diffs
-

  lens-driver-hive/src/main/java/org/apache/lens/driver/hive/HiveDriver.java 
4561ccf3424958b251b8eb31c649341bae8104c9 
  
lens-server-api/src/main/java/org/apache/lens/server/api/query/AbstractQueryContext.java
 0c980a20953efc6c2d7cc17c97b1552c64a8eb5f 
  
lens-server-api/src/main/java/org/apache/lens/server/api/query/QueryContext.java
 ac942077d78515404b83f4a02f841b73dd39e3df 

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


Testing (updated)
---

[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Lens Checkstyle Rules . SUCCESS [2.175s]
[INFO] Lens .. SUCCESS [2.947s]
[INFO] Lens API .. SUCCESS [23.439s]
[INFO] Lens API for server and extensions  SUCCESS [20.441s]
[INFO] Lens Cube . SUCCESS [6:11.745s]
[INFO] Lens DB storage ... SUCCESS [22.402s]
[INFO] Lens Query Library  SUCCESS [18.196s]
[INFO] Lens Hive Driver .. SUCCESS [3:06.859s]
[INFO] Lens Driver for JDBC .. SUCCESS [35.658s]
[INFO] Lens Elastic Search Driver  SUCCESS [17.347s]
[INFO] Lens Server ... SUCCESS [8:17.698s]
[INFO] Lens client ... SUCCESS [34.376s]
[INFO] Lens CLI .. SUCCESS [2:36.033s]
[INFO] Lens Examples . SUCCESS [9.886s]
[INFO] Lens Distribution . SUCCESS [8.592s]
[INFO] Lens ML Lib ... SUCCESS [1:19.730s]
[INFO] Lens ML Ext Distribution .. SUCCESS [2.106s]
[INFO] Lens Regression ... SUCCESS [11.178s]
[INFO] Lens UI ... SUCCESS [22.051s]
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 25:23.999s
[INFO] Finished at: Thu Oct 08 12:59:09 UTC 2015
[INFO] Final Memory: 194M/2044M
[INFO] 


Thanks,

Rajat Khandelwal



[jira] [Updated] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Archana H (JIRA)

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

Archana H updated LENS-739:
---
Attachment: LENS-739.1.patch

> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.1.patch, LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


[jira] [Commented] (LENS-782) UI support for the saved, parametrized query feature.

2015-10-08 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on LENS-782:


Applied patch: 
[782-origin-master.patch|https://issues.apache.org/jira/secure/attachment/12765585/782-origin-master.patch]
 and ran command: mvn clean install. Result: Success. Build Job: 
https://builds.apache.org/job/PreCommit-Lens-Build/111/

> UI support for the saved, parametrized query feature.
> -
>
> Key: LENS-782
> URL: https://issues.apache.org/jira/browse/LENS-782
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Ankeet Maini
>Assignee: Ankeet Maini
> Attachments: 782-origin-master.patch, Screen Shot 2015-09-25 at 
> 11.38.13 am.png, Screen Shot 2015-09-25 at 11.44.32 am.png, Screen Shot 
> 2015-09-25 at 11.55.34 am.png, Screen Shot 2015-09-25 at 11.56.28 am.png, 
> Screen Shot 2015-09-25 at 11.57.41 am.png, Screen Shot 2015-09-25 at 11.59.34 
> am.png
>
>
> 1. Provision for the user to view all the saved queries
> 2. Edit a saved query
> 3. Run a saved query
> 4. Parametrized queries (as saved queries)
> The modifications are enumerated as follows:-
> 1. While trying to run a query, the app first checks if there are any 
> parameters or not, if yes then execution is stopped and the user is prompted 
> to Save the query first.
> 2. If the user is trying to Save a query, the app checks if there are any 
> parameters, if yes then the user is shown a non-obtrusive box to fill out the 
> meta about the params and a value for it, else the Query is saved and the 
> result either success or failure is shown to the user.
> 3. The app has been modified to keep up with the LENS server development 
> which now in case of failed/bad-formed queries doesn't return a handle and 
> throws an exception, which is propagated to the user immediately.
> 4. On clicking Saved queries link from the top left operation box, it lists 
> all the Saved Queries present in a paginated manner with the total pages and 
> current page shown cutely at the top right corner of Saved Queries section.



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


Re: Review Request 38758: UI for Saved/Parametrized queries + Bug fixes/Enhancements

2015-10-08 Thread Ankeet Maini

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

(Updated Oct. 8, 2015, 1:09 p.m.)


Review request for lens, Ajay Yadava, Amareshwari Sriramadasu, Amruth Sampath, 
Bala Nathan, Rajat Khandelwal, Raju Bairishetti, and Yash Sharma.


Bugs: LENS-782
https://issues.apache.org/jira/browse/LENS-782


Repository: lens


Description
---

LENS-782 UI for Saved/Parametrized queries + Bug fixes/Enhancements


Diffs (updated)
-

  lens-ui/app/actions/AdhocQueryActions.js 8c2d109 
  lens-ui/app/adapters/AdhocQueryAdapter.js 98f9b49 
  lens-ui/app/adapters/BaseAdapter.js 81b9ddc 
  lens-ui/app/app.js 3e389a7 
  lens-ui/app/components/AdhocQueryComponent.js 66ddf75 
  lens-ui/app/components/AppComponent.js d7a38f9 
  lens-ui/app/components/CubeSchemaComponent.js 593c54a 
  lens-ui/app/components/CubeTreeComponent.js 241c12f 
  lens-ui/app/components/DatabaseComponent.js 09ee2eb 
  lens-ui/app/components/HeaderComponent.js 5ec3397 
  lens-ui/app/components/LoaderComponent.js ba11c64 
  lens-ui/app/components/LoginComponent.js cf95af9 
  lens-ui/app/components/LogoutComponent.js 3fc1627 
  lens-ui/app/components/QueryBoxComponent.js 6d5843c 
  lens-ui/app/components/QueryDetailResultComponent.js b969a4a 
  lens-ui/app/components/QueryOperationsComponent.js a17a636 
  lens-ui/app/components/QueryParamRowComponent.js PRE-CREATION 
  lens-ui/app/components/QueryParamsComponent.js PRE-CREATION 
  lens-ui/app/components/QueryPreviewComponent.js fabe383 
  lens-ui/app/components/QueryResultsComponent.js 6e4b8c2 
  lens-ui/app/components/RequireAuthenticationComponent.js 9a755b0 
  lens-ui/app/components/RequireAuthenticationComponent.js 9a755b0 
  lens-ui/app/components/SavedQueriesComponent.js PRE-CREATION 
  lens-ui/app/components/SavedQueryPreviewComponent.js PRE-CREATION 
  lens-ui/app/components/SidebarComponent.js dcc8737 
  lens-ui/app/components/TableSchemaComponent.js 67dc25a 
  lens-ui/app/components/TableTreeComponent.js 026e443 
  lens-ui/app/constants/AdhocQueryConstants.js 3c4f93a 
  lens-ui/app/constants/AppConstants.js 48cd93e 
  lens-ui/app/dispatcher/AppDispatcher.js 31b267c 
  lens-ui/app/stores/AdhocQueryStore.js 7420270 
  lens-ui/app/stores/CubeStore.js 8b20b95 
  lens-ui/app/stores/DatabaseStore.js 9f4490b 
  lens-ui/app/stores/SavedQueryStore.js PRE-CREATION 
  lens-ui/app/stores/TableStore.js 299d9e8 
  lens-ui/app/stores/UserStore.js 47da021 
  lens-ui/app/styles/css/global.css 131ab46 
  lens-ui/app/styles/css/login.css b400cfb 
  lens-ui/app/styles/css/query-component.css a82165e 
  lens-ui/app/styles/css/tree.css 402c9a0 
  lens-ui/app/styles/less/globals.less c0704dc 
  lens-ui/app/utils/ErrorParser.js PRE-CREATION 
  lens-ui/index.html 9c20fe9 
  lens-ui/package.json 920b120 
  lens-ui/server.js e812018 
  lens-ui/webpack.config.js ab4021f 

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


Testing
---

just JavaScript.


Thanks,

Ankeet Maini



Re: Review Request 39127: LENS-807: Priority is not getting set in QueryContext. It's always NORMAL

2015-10-08 Thread Amareshwari Sriramadasu

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



lens-server-api/src/main/java/org/apache/lens/server/api/query/QueryContext.java
 (line 429)


I feel instead of adding this public method, setting priority after 
deciding would have been better.


Can we add a unit test ?

- Amareshwari Sriramadasu


On Oct. 8, 2015, 1:18 p.m., Rajat Khandelwal wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/39127/
> ---
> 
> (Updated Oct. 8, 2015, 1:18 p.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-807
> https://issues.apache.org/jira/browse/LENS-807
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> small bug
> 
> 
> Diffs
> -
> 
>   lens-driver-hive/src/main/java/org/apache/lens/driver/hive/HiveDriver.java 
> 4561ccf3424958b251b8eb31c649341bae8104c9 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/query/AbstractQueryContext.java
>  0c980a20953efc6c2d7cc17c97b1552c64a8eb5f 
>   
> lens-server-api/src/main/java/org/apache/lens/server/api/query/QueryContext.java
>  ac942077d78515404b83f4a02f841b73dd39e3df 
> 
> Diff: https://reviews.apache.org/r/39127/diff/
> 
> 
> Testing
> ---
> 
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Lens Checkstyle Rules . SUCCESS [2.175s]
> [INFO] Lens .. SUCCESS [2.947s]
> [INFO] Lens API .. SUCCESS [23.439s]
> [INFO] Lens API for server and extensions  SUCCESS [20.441s]
> [INFO] Lens Cube . SUCCESS [6:11.745s]
> [INFO] Lens DB storage ... SUCCESS [22.402s]
> [INFO] Lens Query Library  SUCCESS [18.196s]
> [INFO] Lens Hive Driver .. SUCCESS [3:06.859s]
> [INFO] Lens Driver for JDBC .. SUCCESS [35.658s]
> [INFO] Lens Elastic Search Driver  SUCCESS [17.347s]
> [INFO] Lens Server ... SUCCESS [8:17.698s]
> [INFO] Lens client ... SUCCESS [34.376s]
> [INFO] Lens CLI .. SUCCESS [2:36.033s]
> [INFO] Lens Examples . SUCCESS [9.886s]
> [INFO] Lens Distribution . SUCCESS [8.592s]
> [INFO] Lens ML Lib ... SUCCESS [1:19.730s]
> [INFO] Lens ML Ext Distribution .. SUCCESS [2.106s]
> [INFO] Lens Regression ... SUCCESS [11.178s]
> [INFO] Lens UI ... SUCCESS [22.051s]
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 25:23.999s
> [INFO] Finished at: Thu Oct 08 12:59:09 UTC 2015
> [INFO] Final Memory: 194M/2044M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Rajat Khandelwal
> 
>



[jira] [Issue Comment Deleted] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-739:
--
Comment: was deleted

(was: Applied patch: 
[LENS-739.1.patch|https://issues.apache.org/jira/secure/attachment/12765596/LENS-739.1.patch]
 and ran command: mcis. Result: Failure. Build Job: No url availavle)

> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.1.patch, LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


[jira] [Commented] (LENS-704) org.apache.lens.server.query.QueryAPIErrorResponseTest.setUp fails sometimes

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-704:
---

Makes sense. We can pick random ports there too.

> org.apache.lens.server.query.QueryAPIErrorResponseTest.setUp fails sometimes
> 
>
> Key: LENS-704
> URL: https://issues.apache.org/jira/browse/LENS-704
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server, test
>Reporter: Amareshwari Sriramadasu
> Fix For: 2.5
>
>
> Here is the log:
> {noformat}
> Error Message
> javax.ws.rs.ProcessingException: IOException thrown when trying to start 
> grizzly server
> Stacktrace
> org.glassfish.jersey.test.spi.TestContainerException: 
> javax.ws.rs.ProcessingException: IOException thrown when trying to start 
> grizzly server
>   at 
> org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory$GrizzlyTestContainer.start(GrizzlyTestContainerFactory.java:90)
>   at org.glassfish.jersey.test.JerseyTest.setUp(JerseyTest.java:487)
>   at org.apache.lens.server.LensJerseyTest.setUp(LensJerseyTest.java:66)
>   at org.apache.lens.server.TestServerMode.setUp(TestServerMode.java:62)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at 
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>   at 
> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
>   at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
>   at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
>   at org.testng.TestRunner.beforeRun(TestRunner.java:641)
>   at org.testng.TestRunner.run(TestRunner.java:609)
>   at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
>   at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
>   at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
>   at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>   at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>   at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>   at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
>   at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
>   at org.testng.TestNG.run(TestNG.java:1031)
>   at 
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:69)
>   at 
> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:181)
>   at 
> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99)
>   at 
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113)
>   at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
>   at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
>   at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> Caused by: javax.ws.rs.ProcessingException: IOException thrown when trying to 
> start grizzly server
>   at 
> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:276)
>   at 
> org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer(GrizzlyHttpServerFactory.java:138)
>   at 
> org.glassfish.jersey.test.grizzly.GrizzlyTestContainerFactory$GrizzlyTestContainer.start(GrizzlyTestContainerFactory.java:88)
>   at org.glassfish.jersey.test.JerseyTest.setUp(JerseyTest.java:487)
>   at org.apache.lens.server.LensJerseyTest.setUp(LensJerseyTest.java:66)
>   at org.apache.lens.server.TestServerMode.setUp(TestServerMode.java:62)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at 
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>   at 
> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
>   at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
>   at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
>   at org.testng.TestRunner.beforeRun(TestRunner.java:641)
>   at 

Re: Review Request 38758: UI for Saved/Parametrized queries + Bug fixes/Enhancements

2015-10-08 Thread Amareshwari Sriramadasu

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

Ship it!


Ship It!

- Amareshwari Sriramadasu


On Oct. 8, 2015, 12:26 p.m., Ankeet Maini wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38758/
> ---
> 
> (Updated Oct. 8, 2015, 12:26 p.m.)
> 
> 
> Review request for lens, Ajay Yadava, Amareshwari Sriramadasu, Amruth 
> Sampath, Bala Nathan, Rajat Khandelwal, Raju Bairishetti, and Yash Sharma.
> 
> 
> Bugs: LENS-782
> https://issues.apache.org/jira/browse/LENS-782
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> LENS-782 UI for Saved/Parametrized queries + Bug fixes/Enhancements
> 
> 
> Diffs
> -
> 
>   lens-ui/app/actions/AdhocQueryActions.js 8c2d109 
>   lens-ui/app/adapters/AdhocQueryAdapter.js 98f9b49 
>   lens-ui/app/adapters/BaseAdapter.js 81b9ddc 
>   lens-ui/app/app.js 3e389a7 
>   lens-ui/app/components/AdhocQueryComponent.js 66ddf75 
>   lens-ui/app/components/AppComponent.js d7a38f9 
>   lens-ui/app/components/CubeSchemaComponent.js 593c54a 
>   lens-ui/app/components/CubeTreeComponent.js 241c12f 
>   lens-ui/app/components/DatabaseComponent.js 09ee2eb 
>   lens-ui/app/components/HeaderComponent.js 5ec3397 
>   lens-ui/app/components/LoaderComponent.js ba11c64 
>   lens-ui/app/components/LoginComponent.js cf95af9 
>   lens-ui/app/components/LogoutComponent.js 3fc1627 
>   lens-ui/app/components/QueryBoxComponent.js 6d5843c 
>   lens-ui/app/components/QueryDetailResultComponent.js b969a4a 
>   lens-ui/app/components/QueryOperationsComponent.js a17a636 
>   lens-ui/app/components/QueryParamRowComponent.js PRE-CREATION 
>   lens-ui/app/components/QueryParamsComponent.js PRE-CREATION 
>   lens-ui/app/components/QueryPreviewComponent.js fabe383 
>   lens-ui/app/components/QueryResultsComponent.js 6e4b8c2 
>   lens-ui/app/components/RequireAuthenticationComponent.js 9a755b0 
>   lens-ui/app/components/RequireAuthenticationComponent.js 9a755b0 
>   lens-ui/app/components/SavedQueriesComponent.js PRE-CREATION 
>   lens-ui/app/components/SavedQueryPreviewComponent.js PRE-CREATION 
>   lens-ui/app/components/SidebarComponent.js dcc8737 
>   lens-ui/app/components/TableSchemaComponent.js 67dc25a 
>   lens-ui/app/components/TableTreeComponent.js 026e443 
>   lens-ui/app/constants/AdhocQueryConstants.js 3c4f93a 
>   lens-ui/app/constants/AppConstants.js 48cd93e 
>   lens-ui/app/dispatcher/AppDispatcher.js 31b267c 
>   lens-ui/app/stores/AdhocQueryStore.js 7420270 
>   lens-ui/app/stores/CubeStore.js 8b20b95 
>   lens-ui/app/stores/DatabaseStore.js 9f4490b 
>   lens-ui/app/stores/SavedQueryStore.js PRE-CREATION 
>   lens-ui/app/stores/TableStore.js 299d9e8 
>   lens-ui/app/stores/UserStore.js 47da021 
>   lens-ui/app/styles/css/global.css 131ab46 
>   lens-ui/app/styles/css/login.css b400cfb 
>   lens-ui/app/styles/css/query-component.css a82165e 
>   lens-ui/app/styles/css/tree.css 402c9a0 
>   lens-ui/app/styles/less/globals.less c0704dc 
>   lens-ui/app/utils/ErrorParser.js PRE-CREATION 
>   lens-ui/index.html 9c20fe9 
>   lens-ui/package.json 920b120 
>   lens-ui/pom.xml 69bcee5 
>   lens-ui/server.js e812018 
>   lens-ui/webpack.config.js ab4021f 
>   pom.xml dd26713 
> 
> Diff: https://reviews.apache.org/r/38758/diff/
> 
> 
> Testing
> ---
> 
> just JavaScript.
> 
> 
> Thanks,
> 
> Ankeet Maini
> 
>



[jira] [Commented] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-739:
---

Applied patch: 
[LENS-739.1.patch|https://issues.apache.org/jira/secure/attachment/12765596/LENS-739.1.patch]
 and ran command: mcis. Result: Failure. Build Job: No url availavle

> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.1.patch, LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


[jira] [Commented] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-739:
---

Committed. Thanks [~archana.h]

> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.1.patch, LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


[jira] [Updated] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal updated LENS-739:
--
Resolution: Fixed
Status: Resolved  (was: Patch Available)

> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.1.patch, LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


[jira] [Commented] (LENS-739) Generate udf jar for lens-regression

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-739:
-

UNSTABLE: Integrated in Lens-Commit-Java8 #12 (See 
[https://builds.apache.org/job/Lens-Commit-Java8/12/])
LENS-739:  (license fix) Generate udf jar for lens-regression (rajatgupta59: 
rev dd33a60589ca1a8efc71c2ceb73af22654b584f3)
* lens-regression/src/additional/java/SampleUdf.java


> Generate udf jar for lens-regression
> 
>
> Key: LENS-739
> URL: https://issues.apache.org/jira/browse/LENS-739
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: regression
> Environment: QA
>Reporter: Archana H
>Assignee: Archana H
> Fix For: 2.4
>
> Attachments: LENS-739.1.patch, LENS-739.patch, LENS-739.patch
>
>
> Generate UDF jar for regression.



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


[jira] [Updated] (LENS-782) UI support for the saved, parametrized query feature.

2015-10-08 Thread Raju Bairishetti (JIRA)

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

Raju Bairishetti updated LENS-782:
--
   Resolution: Fixed
Fix Version/s: 2.4
   Status: Resolved  (was: Patch Available)

Committed. Thanks [~ankeet.maini]

> UI support for the saved, parametrized query feature.
> -
>
> Key: LENS-782
> URL: https://issues.apache.org/jira/browse/LENS-782
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Ankeet Maini
>Assignee: Ankeet Maini
> Fix For: 2.4
>
> Attachments: 782-origin-master.patch, Screen Shot 2015-09-25 at 
> 11.38.13 am.png, Screen Shot 2015-09-25 at 11.44.32 am.png, Screen Shot 
> 2015-09-25 at 11.55.34 am.png, Screen Shot 2015-09-25 at 11.56.28 am.png, 
> Screen Shot 2015-09-25 at 11.57.41 am.png, Screen Shot 2015-09-25 at 11.59.34 
> am.png
>
>
> 1. Provision for the user to view all the saved queries
> 2. Edit a saved query
> 3. Run a saved query
> 4. Parametrized queries (as saved queries)
> The modifications are enumerated as follows:-
> 1. While trying to run a query, the app first checks if there are any 
> parameters or not, if yes then execution is stopped and the user is prompted 
> to Save the query first.
> 2. If the user is trying to Save a query, the app checks if there are any 
> parameters, if yes then the user is shown a non-obtrusive box to fill out the 
> meta about the params and a value for it, else the Query is saved and the 
> result either success or failure is shown to the user.
> 3. The app has been modified to keep up with the LENS server development 
> which now in case of failed/bad-formed queries doesn't return a handle and 
> throws an exception, which is propagated to the user immediately.
> 4. On clicking Saved queries link from the top left operation box, it lists 
> all the Saved Queries present in a paginated manner with the total pages and 
> current page shown cutely at the top right corner of Saved Queries section.



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


[jira] [Commented] (LENS-782) UI support for the saved, parametrized query feature.

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-782:
-

UNSTABLE: Integrated in Lens-Commit-Java8 #13 (See 
[https://builds.apache.org/job/Lens-Commit-Java8/13/])
LENS-782: UI support for the saved, parametrized query feature (raju: rev 
867142113fbbe2d0793e7da156cc4ef190c22811)
* lens-ui/app/components/RequireAuthenticationComponent.js
* lens-ui/app/components/AdhocQueryComponent.js
* lens-ui/app/utils/ErrorParser.js
* lens-ui/app/stores/CubeStore.js
* lens-ui/app/components/SidebarComponent.js
* lens-ui/app/components/LoginComponent.js
* lens-ui/app/dispatcher/AppDispatcher.js
* lens-ui/app/components/CubeSchemaComponent.js
* lens-ui/app/adapters/AdhocQueryAdapter.js
* lens-ui/app/components/TableTreeComponent.js
* lens-ui/app/components/QueryParamsComponent.js
* lens-ui/app/components/SavedQueriesComponent.js
* lens-ui/webpack.config.js
* lens-ui/app/components/AppComponent.js
* lens-ui/app/components/LogoutComponent.js
* lens-ui/app/styles/css/login.css
* lens-ui/app/components/HeaderComponent.js
* lens-ui/app/components/QueryResultsComponent.js
* lens-ui/app/components/TableSchemaComponent.js
* lens-ui/app/stores/DatabaseStore.js
* lens-ui/app/stores/TableStore.js
* lens-ui/app/components/DatabaseComponent.js
* lens-ui/app/stores/SavedQueryStore.js
* lens-ui/app/components/QueryBoxComponent.js
* lens-ui/app/constants/AdhocQueryConstants.js
* lens-ui/app/components/QueryOperationsComponent.js
* lens-ui/app/components/SavedQueryPreviewComponent.js
* lens-ui/server.js
* lens-ui/app/app.js
* lens-ui/app/styles/css/global.css
* lens-ui/app/stores/AdhocQueryStore.js
* lens-ui/app/constants/AppConstants.js
* lens-ui/package.json
* lens-ui/app/stores/UserStore.js
* lens-ui/app/adapters/BaseAdapter.js
* lens-ui/app/styles/less/globals.less
* lens-ui/app/components/QueryDetailResultComponent.js
* lens-ui/app/components/LoaderComponent.js
* lens-ui/app/actions/AdhocQueryActions.js
* lens-ui/app/adapters/XMLAdapter.js
* lens-ui/app/styles/css/tree.css
* lens-ui/app/components/QueryPreviewComponent.js
* lens-ui/index.html
* lens-ui/app/components/QueryParamRowComponent.js
* lens-ui/app/components/CubeTreeComponent.js
* lens-ui/app/styles/css/query-component.css


> UI support for the saved, parametrized query feature.
> -
>
> Key: LENS-782
> URL: https://issues.apache.org/jira/browse/LENS-782
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Ankeet Maini
>Assignee: Ankeet Maini
> Fix For: 2.4
>
> Attachments: 782-origin-master.patch, Screen Shot 2015-09-25 at 
> 11.38.13 am.png, Screen Shot 2015-09-25 at 11.44.32 am.png, Screen Shot 
> 2015-09-25 at 11.55.34 am.png, Screen Shot 2015-09-25 at 11.56.28 am.png, 
> Screen Shot 2015-09-25 at 11.57.41 am.png, Screen Shot 2015-09-25 at 11.59.34 
> am.png
>
>
> 1. Provision for the user to view all the saved queries
> 2. Edit a saved query
> 3. Run a saved query
> 4. Parametrized queries (as saved queries)
> The modifications are enumerated as follows:-
> 1. While trying to run a query, the app first checks if there are any 
> parameters or not, if yes then execution is stopped and the user is prompted 
> to Save the query first.
> 2. If the user is trying to Save a query, the app checks if there are any 
> parameters, if yes then the user is shown a non-obtrusive box to fill out the 
> meta about the params and a value for it, else the Query is saved and the 
> result either success or failure is shown to the user.
> 3. The app has been modified to keep up with the LENS server development 
> which now in case of failed/bad-formed queries doesn't return a handle and 
> throws an exception, which is propagated to the user immediately.
> 4. On clicking Saved queries link from the top left operation box, it lists 
> all the Saved Queries present in a paginated manner with the total pages and 
> current page shown cutely at the top right corner of Saved Queries section.



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


[jira] [Commented] (LENS-782) UI support for the saved, parametrized query feature.

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-782:
-

UNSTABLE: Integrated in Lens-Commit #1102 (See 
[https://builds.apache.org/job/Lens-Commit/1102/])
LENS-782: UI support for the saved, parametrized query feature (raju: rev 
867142113fbbe2d0793e7da156cc4ef190c22811)
* lens-ui/app/components/QueryPreviewComponent.js
* lens-ui/app/components/TableTreeComponent.js
* lens-ui/server.js
* lens-ui/app/styles/css/login.css
* lens-ui/app/adapters/AdhocQueryAdapter.js
* lens-ui/app/actions/AdhocQueryActions.js
* lens-ui/app/adapters/XMLAdapter.js
* lens-ui/app/components/QueryParamRowComponent.js
* lens-ui/app/components/SidebarComponent.js
* lens-ui/app/components/QueryDetailResultComponent.js
* lens-ui/app/components/CubeSchemaComponent.js
* lens-ui/app/components/QueryOperationsComponent.js
* lens-ui/app/components/SavedQueriesComponent.js
* lens-ui/app/components/QueryResultsComponent.js
* lens-ui/app/components/AdhocQueryComponent.js
* lens-ui/app/stores/CubeStore.js
* lens-ui/app/components/DatabaseComponent.js
* lens-ui/app/styles/css/tree.css
* lens-ui/app/components/RequireAuthenticationComponent.js
* lens-ui/app/dispatcher/AppDispatcher.js
* lens-ui/app/constants/AdhocQueryConstants.js
* lens-ui/app/constants/AppConstants.js
* lens-ui/app/components/AppComponent.js
* lens-ui/app/components/HeaderComponent.js
* lens-ui/package.json
* lens-ui/app/components/QueryBoxComponent.js
* lens-ui/app/components/LogoutComponent.js
* lens-ui/app/stores/UserStore.js
* lens-ui/app/stores/SavedQueryStore.js
* lens-ui/app/components/TableSchemaComponent.js
* lens-ui/app/utils/ErrorParser.js
* lens-ui/app/stores/TableStore.js
* lens-ui/app/components/LoaderComponent.js
* lens-ui/index.html
* lens-ui/app/components/QueryParamsComponent.js
* lens-ui/app/styles/css/query-component.css
* lens-ui/app/components/CubeTreeComponent.js
* lens-ui/app/adapters/BaseAdapter.js
* lens-ui/app/components/SavedQueryPreviewComponent.js
* lens-ui/app/app.js
* lens-ui/app/components/LoginComponent.js
* lens-ui/app/stores/AdhocQueryStore.js
* lens-ui/app/styles/css/global.css
* lens-ui/webpack.config.js
* lens-ui/app/styles/less/globals.less
* lens-ui/app/stores/DatabaseStore.js


> UI support for the saved, parametrized query feature.
> -
>
> Key: LENS-782
> URL: https://issues.apache.org/jira/browse/LENS-782
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Ankeet Maini
>Assignee: Ankeet Maini
> Fix For: 2.4
>
> Attachments: 782-origin-master.patch, Screen Shot 2015-09-25 at 
> 11.38.13 am.png, Screen Shot 2015-09-25 at 11.44.32 am.png, Screen Shot 
> 2015-09-25 at 11.55.34 am.png, Screen Shot 2015-09-25 at 11.56.28 am.png, 
> Screen Shot 2015-09-25 at 11.57.41 am.png, Screen Shot 2015-09-25 at 11.59.34 
> am.png
>
>
> 1. Provision for the user to view all the saved queries
> 2. Edit a saved query
> 3. Run a saved query
> 4. Parametrized queries (as saved queries)
> The modifications are enumerated as follows:-
> 1. While trying to run a query, the app first checks if there are any 
> parameters or not, if yes then execution is stopped and the user is prompted 
> to Save the query first.
> 2. If the user is trying to Save a query, the app checks if there are any 
> parameters, if yes then the user is shown a non-obtrusive box to fill out the 
> meta about the params and a value for it, else the Query is saved and the 
> result either success or failure is shown to the user.
> 3. The app has been modified to keep up with the LENS server development 
> which now in case of failed/bad-formed queries doesn't return a handle and 
> throws an exception, which is propagated to the user immediately.
> 4. On clicking Saved queries link from the top left operation box, it lists 
> all the Saved Queries present in a paginated manner with the total pages and 
> current page shown cutely at the top right corner of Saved Queries section.



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


[jira] [Updated] (LENS-615) Refactoring of testQueryCommands test case

2015-10-08 Thread Gabor Liptak (JIRA)

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

Gabor Liptak updated LENS-615:
--
Attachment: LENS-615.1.patch

WIP

> Refactoring of testQueryCommands test case
> --
>
> Key: LENS-615
> URL: https://issues.apache.org/jira/browse/LENS-615
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Himanshu Gahlaut
>  Labels: newbie
> Attachments: LENS-615.1.patch
>
>
> There are too many test cases running in testQueryCommands test case. It is 
> considerably time consuming to debug a failing test case within  
> testQueryCommands. If these test cases are modularized and broken into 
> separate test cases, it will be much helpful in faster debugging.
> {code}
> @Test
>   public void testQueryCommands() throws Exception {
> client = new LensClient();
> 
> client.setConnectionParam("lens.query.enable.persistent.resultset.indriver", 
> "false");
> setup(client);
> LensQueryCommands qCom = new LensQueryCommands();
> qCom.setClient(client);
> resDir = new File("target/results");
> assertTrue(resDir.exists() || resDir.mkdirs());
> testExecuteSyncQuery(qCom);
> testExecuteAsyncQuery(qCom);
> testSyncResults(qCom);
> testExplainQuery(qCom);
> testExplainFailQuery(qCom);
> testPreparedQuery(qCom);
> testShowPersistentResultSet(qCom);
> testPurgedFinishedResultSet(qCom);
> testFailPreparedQuery(qCom);
> // run all query commands with query metrics enabled.
> client = new LensClient();
> 
> client.setConnectionParam("lens.query.enable.persistent.resultset.indriver", 
> "false");
> client.setConnectionParam("lens.query.enable.metrics.per.query", "true");
> qCom.setClient(client);
> String result = qCom.getAllPreparedQueries("all", "", -1, -1);
> assertEquals(result, "No prepared queries");
> testExecuteSyncQuery(qCom);
> testExecuteAsyncQuery(qCom);
> testSyncResults(qCom);
> testExplainQuery(qCom);
> testExplainFailQuery(qCom);
> testPreparedQuery(qCom);
> testShowPersistentResultSet(qCom);
> testPurgedFinishedResultSet(qCom);
> testFailPreparedQuery(qCom);
>   }
> {code}



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


[jira] [Commented] (LENS-800) Change rewrite to use format string around measures

2015-10-08 Thread Amruth S (JIRA)

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

Amruth S commented on LENS-800:
---

I think ES does not have rich formatting options as such while retrieving data, 
I ll mine more to see if any workarounds are available.

> Change rewrite to use format string around measures
> ---
>
> Key: LENS-800
> URL: https://issues.apache.org/jira/browse/LENS-800
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>




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


[jira] [Updated] (LENS-804) Verify Lens 2.4 issues

2015-10-08 Thread Raju Bairishetti (JIRA)

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

Raju Bairishetti updated LENS-804:
--
Assignee: Arshad Matin

> Verify Lens 2.4 issues
> --
>
> Key: LENS-804
> URL: https://issues.apache.org/jira/browse/LENS-804
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Reporter: Raju Bairishetti
>Assignee: Arshad Matin
> Fix For: 2.4
>
>




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


[jira] [Resolved] (LENS-802) Merge master with current-release-line for 2.4

2015-10-08 Thread Raju Bairishetti (JIRA)

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

Raju Bairishetti resolved LENS-802.
---
Resolution: Fixed

> Merge master with current-release-line for 2.4
> --
>
> Key: LENS-802
> URL: https://issues.apache.org/jira/browse/LENS-802
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Reporter: Raju Bairishetti
>Assignee: Raju Bairishetti
> Fix For: 2.4
>
>




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


Re: [DISCUSS] Release Plan for 2.4

2015-10-08 Thread Raju Bairishetti
Hello all,
 Merged master into current-release-line branch and updated master to
next development version 2.5.0-beta-SNAPSHOT.

On Tue, Oct 6, 2015 at 10:30 AM, Raju Bairishetti  wrote:

> Hello dev,
>  Gentle reminder for feature freeze scheduled on 8th October.
> On 25-Sep-2015 3:20 pm, "Raju Bairishetti" 
> wrote:
>
>> My bad. typo mistake.   Extending it to october 8th.
>>
>> On Fri, Sep 25, 2015 at 3:16 PM, Raju Bairishetti 
>> wrote:
>>
>> > I am extending the feature/commits freezing date to 8th september to
>> > include some more issues in the 2.4.
>> >
>> > updated timelines on calendar.
>> > https://cwiki.apache.org/confluence/display/LENS/Release+Calendar
>> >
>> > On Mon, Sep 21, 2015 at 10:02 AM, Raju Bairishetti 
>> > wrote:
>> >
>> > > We have moved few issues to 2.5. Assignees, feel free to move back to
>> 2.4
>> > > if you think you can make it to 2.4.
>> > >
>> > > Summary of open issues after triage:
>> > > Total : 37 issues  open: 31 issues,  6 issues in-progress
>> > >
>> > > I am thinking to wait till sept 25th. Will extend the freezing date
>> if we
>> > > have many open issues.
>> > >
>> > > On Sat, Sep 19, 2015 at 5:37 PM, amareshwarisr . <
>> amareshw...@gmail.com>
>> > > wrote:
>> > >
>> > >> 64 open issues seems big. Can you do triage and move the ones that
>> are
>> > not
>> > >> required? If you think most of them are required, them moving the
>> date
>> > >> seems a good option.
>> > >>
>> > >> On Sat, Sep 19, 2015 at 1:16 PM, Raju Bairishetti <
>> raju@gmail.com>
>> > >> wrote:
>> > >>
>> > >> > Hello All,
>> > >> >Gentle reminder for feature freeze scheduled on 28th
>> september.
>> > >> We
>> > >> > have resolved 22 issues so far. 7 issues are under review process.
>> > >> >
>> > >> > Here's a summary of the open issues:
>> > >> >   Total: 73 issues, 64 Open, 9 In Progress
>> > >> >
>> > >> > *Issues by assignee:*
>> > >> > Akshay Goyal: 2 Issues, LENS-518 (moving to apache hive dependency)
>> > >> > Amareshwari: 6 issues
>> > >> > Arshad: 4 issues
>> > >> > Deepak Barr: 3 issues
>> > >> > Jaideep Dhok: 4 issues
>> > >> > Kartheek : 1 issue
>> > >> > Pranav : 1 issue
>> > >> > Prashanth : 1 issue
>> > >> > Rajat : 7 issues
>> > >> > Raju 8 issues: 4 issues related to java8
>> > >> > Sushil: 6 issues, 4 issues related to error codes improvements
>> > >> > Vikas: 2 issues
>> > >> > YashSharma: 1 issue
>> > >> >
>> > >> > *26 unassigned issues:*
>> > >> >
>> > >> >
>> > >>
>> >
>> https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true=project+%3D+LENS+AND+fixVersion+%3D+2.4+AND+resolution+%3D+Unresolved+AND+assignee+is+EMPTY+ORDER+BY+priority+DESC=hide
>> > >> >
>> > >> > Assignees: Please update on your assigned issues whether you'll be
>> > able
>> > >> to
>> > >> > complete them
>> > >> >
>> > >> >
>> > >> > On Fri, Sep 18, 2015 at 2:36 PM, amareshwarisr . <
>> > amareshw...@gmail.com
>> > >> >
>> > >> > wrote:
>> > >> >
>> > >> > > Hi,
>> > >> > >
>> > >> > > I would like to see the following in 2.4 release :
>> > >> > >
>> > >> > > https://issues.apache.org/jira/browse/LENS-752 ( i should be
>> mostly
>> > >> done
>> > >> > > by
>> > >> > > 28th sept),
>> > >> > > https://issues.apache.org/jira/browse/LENS-576
>> > >> > > and
>> > >> > > https://issues.apache.org/jira/browse/LENS-518 (mostly
>> optimistic
>> > >> here,
>> > >> > > not
>> > >> > > sure we can move there in 2.4)
>> > >> > >
>> > >> > > Thanks
>> > >> > > Amareshwari
>> > >> > >
>> > >> > > On Thu, Sep 3, 2015 at 10:04 AM, Raju Bairishetti <
>> r...@apache.org>
>> > >> > wrote:
>> > >> > >
>> > >> > > > Hi all,
>> > >> > > >I will be volunteering for our next release (2.4).
>> > >> > > >
>> > >> > > > The following issues are expected to be included in 2.4:
>> > >> > > > - Java8 build
>> > >> > > > - Improving all errors
>> > >> > > > - Spark Driver
>> > >> > > > - Move to Apache Hive
>> > >> > > > - Improved UI
>> > >> > > > -More bug fixes and improvements
>> > >> > > >
>> > >> > > > If you wish your patch to go in 2.4 release, please mark it
>> with
>> > 2.4
>> > >> > > >  version.
>> > >> > > >
>> > >> > > > Tentative release dates are as follows :
>> > >> > > > 28th September: Feature Freeze and release branching
>> > >> > > > Couple of weeks for verifications
>> > >> > > > 13th October: Dev list voting
>> > >> > > > 16-19th October: Rollout release candidate
>> > >> > > >
>> > >> > > > Any changes in the timelines will be updated on the Release
>> > Calendar
>> > >> > > > <
>> > https://cwiki.apache.org/confluence/display/LENS/Release+Calendar>
>> > >> > > >
>> > >> > > > Comments are welcome
>> > >> > > >
>> > >> > >
>> > >> >
>> > >> >
>> > >> >
>> > >> > --
>> > >> > Thanks
>> > >> > Raju Bairishetti,
>> > >> >
>> > >> > www.inmobi.com
>> > >> >
>> > >> >
>> > >> >
>> > >> >
>> > >> > *2012 ME Best Mobile Ad Network Award Winner
>> > >> >
>> > 

[jira] [Created] (LENS-809) Warnings for return types from REST APIs

2015-10-08 Thread Amareshwari Sriramadasu (JIRA)
Amareshwari Sriramadasu created LENS-809:


 Summary: Warnings for return types from REST APIs
 Key: LENS-809
 URL: https://issues.apache.org/jira/browse/LENS-809
 Project: Apache Lens
  Issue Type: Bug
  Components: api, server
Affects Versions: 2.3
Reporter: Amareshwari Sriramadasu
 Fix For: 2.5


Seeing following in server logs when it comes up :

09 Oct 2015 05:36:13 [f551b16d-5c05-4450-9245-03e1467dd2e1] [main] WARN  
org.glassfish.jersey.internal.Errors - The following warnings have been 
detected: WARNING: Return type, org.apache.lens.api.result.LensAPIResult, of method, public 
org.apache.lens.api.result.LensAPIResult 
org.apache.lens.server.query.QueryServiceResource.query(org.apache.lens.api.LensSessionHandle,java.lang.String,java.lang.String,org.apache.lens.api.LensConf,java.lang.Long,java.lang.String)
 throws org.apache.lens.server.api.error.LensException, is not resolvable to a 
concrete type.
WARNING: Return type, org.apache.lens.api.result.LensAPIResult, of method, public 
org.apache.lens.api.result.LensAPIResult 
org.apache.lens.server.query.QueryServiceResource.prepareQuery(org.apache.lens.api.LensSessionHandle,java.lang.String,java.lang.String,org.apache.lens.api.LensConf,java.lang.String)
 throws org.apache.lens.server.api.error.LensException, is not resolvable to a 
concrete type.



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


[jira] [Commented] (LENS-803) Bump version in master to 2.5

2015-10-08 Thread Hudson (JIRA)

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

Hudson commented on LENS-803:
-

SUCCESS: Integrated in Lens-Commit #1105 (See 
[https://builds.apache.org/job/Lens-Commit/1105/])
LENS-803: Bump version in master to 2.5 (raju: rev 
5516d773369d0122521988485325d36645dbfe45)
* lens-api/pom.xml
* lens-query-lib/pom.xml
* tools/conf-pseudo-distr/server/hivedriver-site.xml
* lens-server/pom.xml
* lens-ui/pom.xml
* lens-ml-lib/pom.xml
* lens-docker/lens-test/lens-bootstrap.sh
* lens-regression/pom.xml
* lens-driver-hive/pom.xml
* lens-storage-db/pom.xml
* lens-server-api/pom.xml
* lens-client/pom.xml
* lens-driver-es/pom.xml
* lens-driver-jdbc/pom.xml
* checkstyle/pom.xml
* lens-dist/pom.xml
* pom.xml
* lens-docker/lens-test/Dockerfile
* lens-examples/pom.xml
* lens-ml-dist/pom.xml
* lens-cli/pom.xml
* lens-cube/pom.xml


> Bump version in master to 2.5
> -
>
> Key: LENS-803
> URL: https://issues.apache.org/jira/browse/LENS-803
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: build
>Reporter: Raju Bairishetti
>Assignee: Raju Bairishetti
> Fix For: 2.4
>
>




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


[jira] [Commented] (LENS-607) Test Failures on java8

2015-10-08 Thread Raju Bairishetti (JIRA)

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

Raju Bairishetti commented on LENS-607:
---

Updated review request https://reviews.apache.org/r/38521/.

Not moving this to 2.5 as most of the changes are in tests.


> Test Failures on java8
> --
>
> Key: LENS-607
> URL: https://issues.apache.org/jira/browse/LENS-607
> Project: Apache Lens
>  Issue Type: Sub-task
>  Components: test
>Reporter: Raju Bairishetti
>Assignee: Raju Bairishetti
> Fix For: 2.4
>
>
> There are some test failures on lens-cube test module. Did not verify other 
> modules yet.
> Ex: TestBaseCubeQueries, TestExpressionResolver and few more tests are 
> failing on java8
> Tests are failing while comparing the expected query with rewritten query.  
> Rewritten query and expected query are same but the **joining of tables are 
> not in the same order**.
> In some tests, queries are hitting the fact tables form different cube than 
> expected in the test(i.e. fact tables from multiple cubes can answer the 
> query). I think we should either fix the tests in comparing with all the 
> possibilities or fix the order of querying the cube tables.



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


Re: Review Request 38521: LENS-607: Fix Test failures in java8

2015-10-08 Thread Raju Bairishetti

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

(Updated Oct. 9, 2015, 4:44 a.m.)


Review request for lens, Amareshwari Sriramadasu and Rajat Khandelwal.


Changes
---

Fixed review comments


Bugs: LENS-607
https://issues.apache.org/jira/browse/LENS-607


Repository: lens


Description
---

Iterators in java7 and java8 are returning elements in different order. All 
most all failures are because of this case.

Changes:
TestBaseCubeQueries: Changed driver supported storages to single storage 
instead of multiple
TestCubeRewriter: Returning diffrent orders in the joins. Separated join part 
from the actaul query part and verified join part and remaining query part 
separately.
TestStorageUtil: Multiple sets can answer the given partitions. Changed asserts 
accordingly.
TestTimeRangeResolver: Changed asserts to cover all the errors.

*ColumnSQLRewriter* : Changed all data structures to *Linked* datastructures 
(Arraylist --> LinkedList, HashSet to LinkedHashSet, HashMap to LinkedHashMap) 
to return the elements in insertion order.

TestColumnSQLRewriter: Changed the order of columns in queries.


Diffs (updated)
-

  lens-cli/src/test/java/org/apache/lens/cli/TestLensCubeCommands.java 39441c9 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestBaseCubeQueries.java 
0f76c76 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeRewriter.java 
a58f5fe 
  
lens-cube/src/test/java/org/apache/lens/cube/parse/TestDenormalizationResolver.java
 bde4edd 
  
lens-cube/src/test/java/org/apache/lens/cube/parse/TestExpressionResolver.java 
493b8d6 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestQuery.java 
PRE-CREATION 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestStorageUtil.java 
81f515b 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestTimeRangeResolver.java 
cb27d50 
  
lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/ColumnarSQLRewriter.java
 295b476 
  
lens-driver-jdbc/src/test/java/org/apache/lens/driver/jdbc/TestColumnarSQLRewriter.java
 db09a4b 

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


Testing
---

Tested on both java7 and java8. Build is successful. Will post the build 
artifact summary soon.

c1mng0pxdty3:lens raju.bairishetti$ java -version
**java version "1.8.0_40"**

[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Lens Checkstyle Rules .. SUCCESS [  4.849 s]
[INFO] Lens ... SUCCESS [  5.806 s]
[INFO] Lens API ... SUCCESS [ 31.562 s]
[INFO] Lens API for server and extensions . SUCCESS [ 23.200 s]
[INFO] Lens Cube .. SUCCESS [06:19 min]
[INFO] Lens DB storage  SUCCESS [ 23.015 s]
[INFO] Lens Query Library . SUCCESS [ 18.249 s]
[INFO] Lens Hive Driver ... SUCCESS [03:11 min]
[INFO] Lens Driver for JDBC ... SUCCESS [ 41.094 s]
[INFO] Lens Elastic Search Driver . SUCCESS [ 26.188 s]
[INFO] Lens Server  SUCCESS [12:38 min]
[INFO] Lens client  SUCCESS [ 44.951 s]
[INFO] Lens CLI ... SUCCESS [04:57 min]
[INFO] Lens Examples .. SUCCESS [ 11.491 s]
[INFO] Lens Distribution .. SUCCESS [ 19.483 s]
[INFO] Lens ML Lib  SUCCESS [02:35 min]
[INFO] Lens ML Ext Distribution ... SUCCESS [  7.919 s]
[INFO] Lens Regression  SUCCESS [ 11.523 s]
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 34:13 min
[INFO] Finished at: 2015-09-19T12:13:27+05:30
[INFO] Final Memory: 158M/1483M
[INFO] 


JDK-7:  **sun-jdk-1.7.0_55**

regression-2.4.0-beta-SNAPSHOT-tests.jar
[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Lens Checkstyle Rules . SUCCESS [1.999s]
[INFO] Lens .. SUCCESS [2.816s]
[INFO] Lens API .. SUCCESS [23.685s]
[INFO] Lens API for server and extensions  SUCCESS [20.093s]
[INFO] Lens Cube . SUCCESS [5:02.073s]
[INFO] Lens DB storage 

Re: Review Request 38521: LENS-607: Fix Test failures in java8

2015-10-08 Thread Raju Bairishetti


> On Oct. 1, 2015, 9:07 a.m., Rajat Khandelwal wrote:
> > lens-cube/src/test/java/org/apache/lens/cube/parse/TestQuery.java, line 84
> > 
> >
> > Instead of String replace, can `extract` return list of indices and we 
> > can do substring operations here?
> > 
> > Or we can do that as improvement later too.
> 
> Raju Bairishetti wrote:
> I feel this is simple. We can get starting index of join string and 
> ending index of join. We need to conactenate the two substrings(i.e. 
> concat(substr(str, 0,start-join-index)), substr(str, endjoinIndex, 
> str.length()-1)).
> 
> Rajat Khandelwal wrote:
> In that case, I think we should keep them separate. str[:startJoin] and 
> str[endJoin:] should be compared separately. Instead of comparing the 
> concatenated String.

Done. Splitting the query into 3 parts. joinquery part, pre-join query part and 
post-join query part.


- Raju


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


On Oct. 9, 2015, 4:44 a.m., Raju Bairishetti wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38521/
> ---
> 
> (Updated Oct. 9, 2015, 4:44 a.m.)
> 
> 
> Review request for lens, Amareshwari Sriramadasu and Rajat Khandelwal.
> 
> 
> Bugs: LENS-607
> https://issues.apache.org/jira/browse/LENS-607
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> Iterators in java7 and java8 are returning elements in different order. All 
> most all failures are because of this case.
> 
> Changes:
> TestBaseCubeQueries: Changed driver supported storages to single storage 
> instead of multiple
> TestCubeRewriter: Returning diffrent orders in the joins. Separated join part 
> from the actaul query part and verified join part and remaining query part 
> separately.
> TestStorageUtil: Multiple sets can answer the given partitions. Changed 
> asserts accordingly.
> TestTimeRangeResolver: Changed asserts to cover all the errors.
> 
> *ColumnSQLRewriter* : Changed all data structures to *Linked* datastructures 
> (Arraylist --> LinkedList, HashSet to LinkedHashSet, HashMap to 
> LinkedHashMap) to return the elements in insertion order.
> 
> TestColumnSQLRewriter: Changed the order of columns in queries.
> 
> 
> Diffs
> -
> 
>   lens-cli/src/test/java/org/apache/lens/cli/TestLensCubeCommands.java 
> 39441c9 
>   lens-cube/src/test/java/org/apache/lens/cube/parse/TestBaseCubeQueries.java 
> 0f76c76 
>   lens-cube/src/test/java/org/apache/lens/cube/parse/TestCubeRewriter.java 
> a58f5fe 
>   
> lens-cube/src/test/java/org/apache/lens/cube/parse/TestDenormalizationResolver.java
>  bde4edd 
>   
> lens-cube/src/test/java/org/apache/lens/cube/parse/TestExpressionResolver.java
>  493b8d6 
>   lens-cube/src/test/java/org/apache/lens/cube/parse/TestQuery.java 
> PRE-CREATION 
>   lens-cube/src/test/java/org/apache/lens/cube/parse/TestStorageUtil.java 
> 81f515b 
>   
> lens-cube/src/test/java/org/apache/lens/cube/parse/TestTimeRangeResolver.java 
> cb27d50 
>   
> lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/ColumnarSQLRewriter.java
>  295b476 
>   
> lens-driver-jdbc/src/test/java/org/apache/lens/driver/jdbc/TestColumnarSQLRewriter.java
>  db09a4b 
> 
> Diff: https://reviews.apache.org/r/38521/diff/
> 
> 
> Testing
> ---
> 
> Tested on both java7 and java8. Build is successful. Will post the build 
> artifact summary soon.
> 
> c1mng0pxdty3:lens raju.bairishetti$ java -version
> **java version "1.8.0_40"**
> 
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Lens Checkstyle Rules .. SUCCESS [  4.849 
> s]
> [INFO] Lens ... SUCCESS [  5.806 
> s]
> [INFO] Lens API ... SUCCESS [ 31.562 
> s]
> [INFO] Lens API for server and extensions . SUCCESS [ 23.200 
> s]
> [INFO] Lens Cube .. SUCCESS [06:19 
> min]
> [INFO] Lens DB storage  SUCCESS [ 23.015 
> s]
> [INFO] Lens Query Library . SUCCESS [ 18.249 
> s]
> [INFO] Lens Hive Driver ... SUCCESS [03:11 
> min]
> [INFO] Lens Driver for JDBC ... SUCCESS [ 41.094 
> s]
> [INFO] Lens Elastic Search Driver . SUCCESS [ 26.188 
> s]
> [INFO] Lens Server  SUCCESS [12:38 
> min]
> [INFO] Lens client  SUCCESS [ 44.951 
> s]
> [INFO] Lens 

[jira] [Created] (LENS-810) Allow dimensions to be accessible across databases

2015-10-08 Thread Amareshwari Sriramadasu (JIRA)
Amareshwari Sriramadasu created LENS-810:


 Summary: Allow dimensions to be accessible across databases
 Key: LENS-810
 URL: https://issues.apache.org/jira/browse/LENS-810
 Project: Apache Lens
  Issue Type: New Feature
  Components: cube
Reporter: Amareshwari Sriramadasu
 Fix For: 2.5


In a typical enterprise, you would have dimension data accessible for all.

Current cube to dimension relations are restricted to all dimensions in the 
same database in which cube is present.

This feature request is to allow dimensions and dimension tables to be 
accessible across databases.



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


[jira] [Created] (LENS-808) Test Failures in jenkins

2015-10-08 Thread Raju Bairishetti (JIRA)
Raju Bairishetti created LENS-808:
-

 Summary: Test Failures in jenkins
 Key: LENS-808
 URL: https://issues.apache.org/jira/browse/LENS-808
 Project: Apache Lens
  Issue Type: Bug
  Components: build, test
Reporter: Raju Bairishetti
 Fix For: 2.4


We are seeing test failures on jenkins. 
https://builds.apache.org/job/Lens-Commit/1103/#showFailuresLink



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