[jira] [Commented] (LENS-1289) Fact column start_time and end_time not getting reflected with update fact command

2016-08-25 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on LENS-1289:
-

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

> Fact column start_time and end_time not getting reflected with update fact 
> command
> --
>
> Key: LENS-1289
> URL: https://issues.apache.org/jira/browse/LENS-1289
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Sushil Mohanty
>Assignee: Sushil Mohanty
> Attachments: LENS-1289.patch
>
>
> As part of LENS-197 we have added start and end time support for fact 
> columns, which works for create fact table. We need to support the same for 
> update fact as well.



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


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

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-1215:


Creating LensClient instance and firing a query without providing cluster user 
should not automatically provide current logged in user as cluster user to the 
server. 

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




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


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

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-1209:


The warnings should be visible when log level is TRACE, but not when the log 
level is DEBUG or more. 

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

[jira] [Closed] (LENS-761) EXECUTED queries are stuck after restart

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-761.
-

> EXECUTED queries are stuck after restart
> 
>
> Key: LENS-761
> URL: https://issues.apache.org/jira/browse/LENS-761
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Affects Versions: 2.0
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
>
> So queries in EXECUTED state are persisted on stop and restored on start. 
> After that, they get stuck in the same state with no one to take care.
> Event service should persist events that are not fully processed and re 
> launch handlers on restart. 



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


[jira] [Closed] (LENS-1191) Lens Python client should support half sync half async model of execution

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1191.
--

Verified by integration tests inside python client test code. 

> Lens Python client should support half sync half async model of execution 
> --
>
> Key: LENS-1191
> URL: https://issues.apache.org/jira/browse/LENS-1191
> Project: Apache Lens
>  Issue Type: New Feature
>Reporter: Puneet Gupta
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
>
> Lens Python client should support half sync half async model of execution 
> similar to java lens client's behavior when waitForQueryToComplete = true 
> org.apache.lens.client.LensStatement#executeQuery(org.apache.lens.api.query.QueryPrepareHandle,
>  boolean, java.lang.String). 
> This helps is reducing the complexity of embedding similar logic(polling/call 
> back) in all client applications. 



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


[jira] [Closed] (LENS-1202) Add client side iterator for result in python client

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1202.
--

Python client has integration tests and are passing. 

> Add client side iterator for result in python client
> 
>
> Key: LENS-1202
> URL: https://issues.apache.org/jira/browse/LENS-1202
> Project: Apache Lens
>  Issue Type: New Feature
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1202.03.patch, LENS-1202.04.patch, 
> LENS-1202.05.patch, LENS-1202.06.patch
>
>




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


[jira] [Commented] (LENS-960) getting string from AST should give flat string wherever possible

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-960:
---

The driver query has either

* part_col in (values)
* part_col = x OR part_col = y OR ...

The second format comes when OrTimeRangeWriter is being used. In that case, 
earlier the rewritten time range clause used to look like (a or (b or (c or 
(d. But After this change, the clause will look more flat, i.e. (a or b or 
c or d). 



> getting string from AST should give flat string wherever possible
> -
>
> Key: LENS-960
> URL: https://issues.apache.org/jira/browse/LENS-960
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: cube
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-960.04.patch
>
>
> Current scenario: 
> {noformat}
> toString(parse("a or b or c or d")) == "(a or (b or (c or (d"
> {noformat}
> Proposal is to remove the excessive nested braces. 



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


[jira] [Closed] (LENS-1218) Document the new ui in install and run step

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1218.
--

> Document the new ui in install and run step
> ---
>
> Key: LENS-1218
> URL: https://issues.apache.org/jira/browse/LENS-1218
> Project: Apache Lens
>  Issue Type: Task
>  Components: docs
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1218.02.patch, LENS-1218.05.patch
>
>




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


[jira] [Closed] (LENS-1269) Time range fallback in lens examples should not give empty results

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1269.
--

> Time range fallback in lens examples should not give empty results
> --
>
> Key: LENS-1269
> URL: https://issues.apache.org/jira/browse/LENS-1269
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1269.2016-08-08_16:40:55.patch
>
>




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


[jira] [Closed] (LENS-1150) HiveDriver should create sessions independent of the transport

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1150.
--

> HiveDriver should create sessions independent of the transport
> --
>
> Key: LENS-1150
> URL: https://issues.apache.org/jira/browse/LENS-1150
> Project: Apache Lens
>  Issue Type: Task
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1150.02.patch
>
>




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


[jira] [Closed] (LENS-1221) Saved Query service is unable to initialize

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1221.
--

> Saved Query service is unable to initialize
> ---
>
> Key: LENS-1221
> URL: https://issues.apache.org/jira/browse/LENS-1221
> Project: Apache Lens
>  Issue Type: Task
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1221.2016-07-19_17:00:08.patch, 
> LENS-1221.2016-07-19_17:05:29.patch
>
>
> {noformat}
> 19 Jul 2016 11:16:48 [d691692a-8ef7-4a34-b2b7-d555e89b0d18] [main] ERROR 
> org.apache.lens.server.LensServer - Error while creating Lens server
> java.lang.RuntimeException: Cannot initialize saved query service
> at 
> org.apache.lens.server.query.save.SavedQueryServiceImpl.init(SavedQueryServiceImpl.java:75)
>  ~[classes/:na]
> at 
> org.apache.hive.service.CompositeService.init(CompositeService.java:59) 
> ~[hive-service-2.1.2-inm.jar:2.1.2-inm]
> at org.apache.lens.server.LensServices.init(LensServices.java:252) 
> ~[classes/:na]
> at 
> org.apache.lens.server.LensServer.startServices(LensServer.java:134) 
> ~[classes/:na]
> at org.apache.lens.server.LensServer.(LensServer.java:85) 
> ~[classes/:na]
> at 
> org.apache.lens.server.LensServer.createLensServer(LensServer.java:74) 
> ~[classes/:na]
> at org.apache.lens.server.LensServer.main(LensServer.java:190) 
> ~[classes/:na]
> Caused by: org.apache.lens.server.api.error.LensException: Error initializing 
> saved query dao
> at 
> org.apache.lens.server.query.save.SavedQueryDao.(SavedQueryDao.java:72) 
> ~[classes/:na]
> at 
> org.apache.lens.server.query.save.SavedQueryServiceImpl.init(SavedQueryServiceImpl.java:70)
>  ~[classes/:na]
> ... 6 common frames omitted
> Caused by: org.apache.lens.server.api.error.LensException: Cannot create 
> saved query table!
> at 
> org.apache.lens.server.query.save.SavedQueryDao.createSavedQueryTableIfNotExists(SavedQueryDao.java:85)
>  ~[classes/:na]
> at 
> org.apache.lens.server.query.save.SavedQueryDao.(SavedQueryDao.java:70) 
> ~[classes/:na]
> ... 7 common frames omitted
> Caused by: java.sql.SQLException: Invalid default value for 'updated_at' 
> Query: CREATE TABLE IF NOT EXISTS saved_query (id int(11) NOT NULL 
> AUTO_INCREMENT,name varchar(255) NOT NULL,description varchar(255) DEFAULT 
> NULL,query longtext,params_json longtext,created_at timestamp,updated_at 
> timestamp,  PRIMARY KEY (id)) Parameters: []
> at 
> org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:363)
>  ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:490) 
> ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:420) 
> ~[commons-dbutils-1.5.jar:1.5]
> at 
> org.apache.lens.server.query.save.SavedQueryDao.createSavedQueryTableIfNotExists(SavedQueryDao.java:83)
>  ~[classes/:na]
> ... 8 common frames omitted
> 19 Jul 2016 11:16:48 [d691692a-8ef7-4a34-b2b7-d555e89b0d18] [main] INFO  
> org.apache.lens.server.LensServices - Stopping lens server
> 19 Jul 2016 11:16:48 [d691692a-8ef7-4a34-b2b7-d555e89b0d18] [main] ERROR 
> org.apache.lens.server.LensServer - Error stopping services
> {noformat}



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


[jira] [Closed] (LENS-1246) Lens Client throwing NPE in explainFailedAttempt

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1246.
--

> Lens Client throwing NPE in explainFailedAttempt
> 
>
> Key: LENS-1246
> URL: https://issues.apache.org/jira/browse/LENS-1246
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client, test
>Affects Versions: 2.6
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1246.2016-08-01_16:25:02.patch
>
>




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


[jira] [Closed] (LENS-664) Fetch driver execution logs

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-664.
-

> Fetch driver execution logs
> ---
>
> Key: LENS-664
> URL: https://issues.apache.org/jira/browse/LENS-664
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: driver-hive
>Affects Versions: 2.6
>Reporter: Amareshwari Sriramadasu
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
>
> HiveServer2 can give driver execution logs through thrift api for any 
> operation - available through HIVE-4629.
> This issue is to fetch the logs from HiveServer2 and log them in lens query 
> log segregation context. This user will be able to see the underlying logs 
> from hive for query execution as well.
> This should also publish the overhead getting added on query or HiveServe2, 
> if log fetching is enabled. And if the overhead is significant, user should 
> be able turn off log fetching per query.



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


[jira] [Closed] (LENS-791) CLI format json strips away all commas, including useful ones

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-791.
-

describe output is not yaml

> CLI format json strips away all commas, including useful ones
> -
>
> Key: LENS-791
> URL: https://issues.apache.org/jira/browse/LENS-791
> Project: Apache Lens
>  Issue Type: Bug
>  Components: client
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-791.17.patch
>
>




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


[jira] [Closed] (LENS-1270) AlarmService should be inited through configuration

2016-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1270.
---

> AlarmService should be inited through configuration
> ---
>
> Key: LENS-1270
> URL: https://issues.apache.org/jira/browse/LENS-1270
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Affects Versions: 2.6
>Reporter: Amareshwari Sriramadasu
>Assignee: Amareshwari Sriramadasu
> Fix For: 2.6
>
> Attachments: LENS-1270.2.patch, LENS-1270.patch
>
>
> Right now, AlarmService is inited directly in LensServices. Instead it should 
> be loaded through configuration sothat it can be opted out, if required.



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


[jira] [Closed] (LENS-1011) Add python client code to lens

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1011.
--

> Add python client code to lens
> --
>
> Key: LENS-1011
> URL: https://issues.apache.org/jira/browse/LENS-1011
> Project: Apache Lens
>  Issue Type: Task
>  Components: client
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1011.06.patch, LENS-1011.07.patch, 
> LENS-1011.08.patch
>
>
> I have been working on a python client for lens. After multiple rounds of 
> polishing, it's in a stable state now. It still doesn't have all the 
> functionality parallel to the java client, but would like to add that to the 
> repo so that people can use and (maybe) contribute. Can't figure out where to 
> add though. 



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


[jira] [Closed] (LENS-1034) Passing --conf in lens-ctl doesn't pick lens-env.sh of that directory

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1034.
--

> Passing --conf in lens-ctl doesn't pick lens-env.sh of that directory
> -
>
> Key: LENS-1034
> URL: https://issues.apache.org/jira/browse/LENS-1034
> Project: Apache Lens
>  Issue Type: Bug
>  Components: build
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1034.patch
>
>




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


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

2016-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1013.
---

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



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


[jira] [Closed] (LENS-1159) Lens session is adding HIVE_HOME/lib/* to class path

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1159.
--

> Lens session is adding HIVE_HOME/lib/* to class path 
> -
>
> Key: LENS-1159
> URL: https://issues.apache.org/jira/browse/LENS-1159
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1159.01.patch
>
>
> This is causing non-jar files to get added, directories to get added and 
> subdirectories to get added in the classpath. 



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


[jira] [Closed] (LENS-1160) classloader getting closed on lens session close.

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1160.
--

> classloader getting closed on lens session close. 
> --
>
> Key: LENS-1160
> URL: https://issues.apache.org/jira/browse/LENS-1160
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1160.02.patch, LENS-1160.03.patch, 
> LENS-1160.04.patch, LENS-1160.05.patch, LENS-1160.06.patch, 
> LENS-1160.07.patch, LENS-1160.08.patch, LENS-1160.09.patch, LENS-1160.10.patch
>
>




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


[jira] [Closed] (LENS-1163) Description of "lens.driver.jdbc.get.connection.timeout" is wrong

2016-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1163.
---

> Description of "lens.driver.jdbc.get.connection.timeout" is wrong
> -
>
> Key: LENS-1163
> URL: https://issues.apache.org/jira/browse/LENS-1163
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
>Priority: Trivial
> Fix For: 2.6
>
> Attachments: lens-1163.patch
>
>
> https://lens.apache.org/admin/jdbcdriver-config.html
> Current description :Response timeout in milliseconds of any JDBC call 
> invoking data transmission over a connection socket
> Correct description : The number of milliseconds a client calling 
> getConnection() will wait for a Connection to be checked-in or acquired when 
> the pool is exhausted. Zero means wait indefinitely. Setting any positive 
> value will cause the getConnection () call to time-out and break with an 
> SQLException after the specified number of milliseconds



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


[jira] [Closed] (LENS-1154) Remove warnings "HiveConf of name ... doesn't exist"

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1154.
--

> Remove warnings "HiveConf of name ... doesn't exist"
> 
>
> Key: LENS-1154
> URL: https://issues.apache.org/jira/browse/LENS-1154
> Project: Apache Lens
>  Issue Type: Task
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1154.02.patch
>
>




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


[jira] [Closed] (LENS-1167) If result formatting failed for a query, NPE is thrown while persisting the query context on restart

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1167.
--

> If result formatting failed for a query, NPE is thrown while persisting the 
> query context on restart
> 
>
> Key: LENS-1167
> URL: https://issues.apache.org/jira/browse/LENS-1167
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1167.01.patch, LENS-1167.02.patch, 
> LENS-1167.03.patch
>
>




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


[jira] [Closed] (LENS-925) Execute With Timeout logic is not correct when server persistence is enabled.

2016-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-925.
--

> Execute With Timeout logic is not correct when server persistence is enabled. 
> --
>
> Key: LENS-925
> URL: https://issues.apache.org/jira/browse/LENS-925
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
>
> QueryExecutionServiceImpl.executeTimeoutInternal(LensSessionHandle, 
> QueryContext, long, Configuration) waits for driver to complete query 
> execution via LensDriver.registerForCompletionNotification() and then checks 
> whether query status is finished via QueryContext.finished() before returning 
> the results to the client.  
> Even though the driver finishes query execution but the Query Status is set 
> to finhised(SUCCESSFUL/FAILED/CANCELLED) in two cases
>   1. Asynchronously via LensDriver.updateStatus(QueryContext) which is 
> called in Thread QueryExecutionServiceImpl.StatusPoller.run() 
>   OR 
>   2. whenever 
> QueryExecutionServiceImpl.getQueryContext(LensSessionHandle, QueryHandle) is 
> called. 
> It is possible that when server persistence is enabled and even though driver 
> has finished execution successfully, the QueryContext.finished() is still 
> fasle, since server level persistence is still not over. In this case even 
> though the executeTimeoutInternal() may have enough time to spare until 
> timeout, it ll still return a null result.



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


[jira] [Closed] (LENS-1151) More info on Queries moving between waiting and queued queries data structures

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1151.
--

> More info on Queries moving between waiting and queued queries data structures
> --
>
> Key: LENS-1151
> URL: https://issues.apache.org/jira/browse/LENS-1151
> Project: Apache Lens
>  Issue Type: Task
>  Components: server
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1151.02.patch, LENS-1151.03.patch, 
> LENS-1151.04.patch
>
>
> Current logs don't give much info and for debugging why a query took so much 
> time in queue would be helpful to understand whether or not the wait time of 
> a query is valid.



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


[jira] [Closed] (LENS-1008) Support simple iterator over HTTPResultSet for lens clients

2016-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1008.
---

> Support simple iterator over HTTPResultSet for lens clients 
> 
>
> Key: LENS-1008
> URL: https://issues.apache.org/jira/browse/LENS-1008
> Project: Apache Lens
>  Issue Type: New Feature
>  Components: client
>Reporter: Puneet Gupta
>Assignee: Puneet Gupta
> Fix For: 2.6
>
> Attachments: lens-1008.v2.patch
>
>
> The result iterator can have the following methods 
> public interface ResultSet {
>   public boolean hasNext();
>   public String[] next();
>   public String[] getColumnNames();
> }
> This can be used by clients to programmatically consume the result with ease.



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


[jira] [Closed] (LENS-793) Result formatter error when driver output path is null

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-793.
-

> Result formatter error when driver output path is null
> --
>
> Key: LENS-793
> URL: https://issues.apache.org/jira/browse/LENS-793
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
>
> logs:
> {noformat}
> 28 Sep 2015 16:13:46 [6a61d6b0-66a9-4b39-8f3a-ba2a722fb737] [StatusPoller] 
> INFO  org.apache.lens.server.query.QueryExecutionServiceImpl - Updating 
> status for 6a61d6b0-66a9-4b39-8f3a-ba2a722fb737
> 28 Sep 2015 16:13:46 [6a61d6b0-66a9-4b39-8f3a-ba2a722fb737] 
> [event_processor_thread] INFO  org.apache.lens.server.query.ResultFormatter - 
> Result formatter for 6a61d6b0-66a9-4b39-8f3a-ba2a722fb737
> 28 Sep 2015 16:13:46 [6a61d6b0-66a9-4b39-8f3a-ba2a722fb737] 
> [event_processor_thread] INFO  org.apache.lens.driver.hive.HiveDriver - 
> FetchResultSet: 6a61d6b0-66a9-4b39-8f3a-ba2a722fb737
> 28 Sep 2015 16:13:46 [6a61d6b0-66a9-4b39-8f3a-ba2a722fb737] 
> [event_processor_thread] INFO  org.apache.lens.driver.hive.HiveDriver - 
> Creating result set for hiveHandle:OperationHandle [opType=EXECUTE_STATEMENT, 
> getHandleIdentifier()=cc9c6ab8-dccf-4fc4-bf40-88af748fe28b]
> 28 Sep 2015 16:13:46 [6a61d6b0-66a9-4b39-8f3a-ba2a722fb737] 
> [event_processor_thread] WARN  org.apache.lens.server.query.ResultFormatter - 
> Exception while formatting result for 6a61d6b0-66a9-4b39-8f3a-ba2a722fb737
> java.lang.IllegalArgumentException: Can not create a Path from a null string
> at org.apache.hadoop.fs.Path.checkPathArg(Path.java:123) 
> ~[hadoop-common-2.6.0.2.2.0.0-2041.jar:na]
> at org.apache.hadoop.fs.Path.(Path.java:135) 
> ~[hadoop-common-2.6.0.2.2.0.0-2041.jar:na]
> at 
> org.apache.lens.driver.hive.HiveDriver.createResultSet(HiveDriver.java:845) 
> ~[lens-driver-hive-2.4.1-inm.jar:2.4.1-inm]
> at 
> org.apache.lens.driver.hive.HiveDriver.fetchResultSet(HiveDriver.java:694) 
> ~[lens-driver-hive-2.4.1-inm.jar:2.4.1-inm]
> at 
> org.apache.lens.server.query.QueryExecutionServiceImpl.getDriverResultset(QueryExecutionServiceImpl.java:1477)
>  ~[classes/:na]
> at 
> org.apache.lens.server.query.ResultFormatter.formatOutput(ResultFormatter.java:86)
>  [classes/:na]
> at 
> org.apache.lens.server.query.ResultFormatter.process(ResultFormatter.java:68) 
> [classes/:na]
> at 
> org.apache.lens.server.query.ResultFormatter.process(ResultFormatter.java:43) 
> [classes/:na]
> at 
> org.apache.lens.server.api.events.AsyncEventListener$2.run(AsyncEventListener.java:101)
>  [lens-server-api-2.4.1-inm.jar:2.4.1-inm]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  [na:1.7.0_67]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  [na:1.7.0_67]
> at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
> 28 Sep 2015 16:13:46 [6a61d6b0-66a9-4b39-8f3a-ba2a722fb737] 
> [event_processor_thread] INFO  org.apache.lens.server.query.QueryEndNotifier 
> - Sending completion email for query handle: 
> 6a61d6b0-66a9-4b39-8f3a-ba2a722fb737
> {noformat}



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


[jira] [Closed] (LENS-1200) M/R Job failures are not getting propagated to error message

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1200.
--

Job ids are coming in error message now. 

> M/R Job failures are not getting propagated to error message
> 
>
> Key: LENS-1200
> URL: https://issues.apache.org/jira/browse/LENS-1200
> Project: Apache Lens
>  Issue Type: Bug
>  Components: driver-hive
>Affects Versions: 2.6
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1200.2016-06-23_12:29:04.patch, 
> LENS-1200.2016-06-23_12:52:11.patch, LENS-1200.2016-07-05_15:08:40.patch
>
>




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


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

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-1187:


Some API changes here. Most of the apis returning APIResult were giving http 
status 200 even in case of failure. The payload object had a FAILED APIResult, 
but the status code was 200. After this, the status code comes as 500. 

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




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


Re: Review Request 50740: Lens Druid sql rewriter changes

2016-08-25 Thread Rajitha R

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

(Updated Aug. 25, 2016, 11:39 a.m.)


Review request for lens and Amareshwari Sriramadasu.


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


Repository: lens


Description
---

Changes done include : 
1. Druid sql rewriter in Jdbc driver
2. New Timerangerewriter for Druid
3. HQLParser toString modified


Diffs (updated)
-

  
lens-cube/src/main/java/org/apache/lens/cube/parse/BetweenTimeRangeWriter.java 
a5b26c4 
  lens-cube/src/main/java/org/apache/lens/cube/parse/CubeQueryConfUtil.java 
49ed5ef 
  lens-cube/src/main/java/org/apache/lens/cube/parse/HQLParser.java 68cdcef 
  
lens-cube/src/test/java/org/apache/lens/cube/parse/TestBetweenTimeRangeWriter.java
 eeba861 
  lens-cube/src/test/java/org/apache/lens/cube/parse/TestTimeRangeWriter.java 
748f92f 
  
lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/DruidSQLRewriter.java
 PRE-CREATION 
  
lens-driver-jdbc/src/test/java/org/apache/lens/driver/jdbc/TestDruidSQLRewriter.java
 PRE-CREATION 
  lens-driver-jdbc/src/test/resources/drivers/jdbc/druid/jdbcdriver-site.xml 
PRE-CREATION 

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


Testing
---


Thanks,

Rajitha R



Re: Review Request 50740: Lens Druid sql rewriter changes

2016-08-25 Thread Rajitha R


> On Aug. 3, 2016, 7:41 a.m., Rajat Khandelwal wrote:
> > lens-cube/src/main/java/org/apache/lens/cube/parse/HQLParser.java, line 938
> > 
> >
> > 1. Nochange => NoChange

Using enum as mentioned in earlier comment, this would be the default mode


- Rajitha


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


On Aug. 3, 2016, 7:28 a.m., Rajitha R wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/50740/
> ---
> 
> (Updated Aug. 3, 2016, 7:28 a.m.)
> 
> 
> Review request for lens and Amareshwari Sriramadasu.
> 
> 
> Bugs: LENS-1224
> https://issues.apache.org/jira/browse/LENS-1224
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> Changes done include : 
> 1. Druid sql rewriter in Jdbc driver
> 2. New Timerangerewriter for Druid
> 3. HQLParser toString modified
> 
> 
> Diffs
> -
> 
>   
> lens-cube/src/main/java/org/apache/lens/cube/parse/BetweenOnlyTimeRangeWriter.java
>  PRE-CREATION 
>   lens-cube/src/main/java/org/apache/lens/cube/parse/HQLParser.java 68cdcef 
>   
> lens-driver-jdbc/src/main/java/org/apache/lens/driver/jdbc/DruidSQLRewriter.java
>  PRE-CREATION 
>   
> lens-driver-jdbc/src/test/java/org/apache/lens/driver/jdbc/TestDruidSQLRewriter.java
>  PRE-CREATION 
>   lens-driver-jdbc/src/test/resources/drivers/jdbc/druid/jdbcdriver-site.xml 
> PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/50740/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Rajitha R
> 
>



[jira] [Closed] (LENS-1211) GenericExceptionMapper should return 405 only when there is no matching resource

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1211.
--

Another intermittent bug introduced by another change. Not seeing in release 
line

> GenericExceptionMapper should return 405 only when there is no matching 
> resource
> 
>
> Key: LENS-1211
> URL: https://issues.apache.org/jira/browse/LENS-1211
> Project: Apache Lens
>  Issue Type: Bug
>  Components: server
>Affects Versions: 2.6
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1211.2016-07-12_16:28:02.patch
>
>




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


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

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1217.
--

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




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


[jira] [Closed] (LENS-970) Send hivedriver test logs to target/test.log

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-970.
-

> Send hivedriver test logs to target/test.log
> 
>
> Key: LENS-970
> URL: https://issues.apache.org/jira/browse/LENS-970
> Project: Apache Lens
>  Issue Type: Task
>  Components: build, test
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-970.02.patch
>
>
> Other modules (e.g. lens-cube) are using target/test.log for sending test 
> logs. 



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


[jira] [Closed] (LENS-967) Wrap SavedQueryService methods by session acquire release blocks

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-967.
-

> Wrap SavedQueryService methods by session acquire release blocks
> 
>
> Key: LENS-967
> URL: https://issues.apache.org/jira/browse/LENS-967
> Project: Apache Lens
>  Issue Type: Task
>  Components: server
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-967.04.patch
>
>




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


[jira] [Closed] (LENS-1010) Make LensClient implement java.lang.AutoClosable

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1010.
--

> Make LensClient implement java.lang.AutoClosable 
> -
>
> Key: LENS-1010
> URL: https://issues.apache.org/jira/browse/LENS-1010
> Project: Apache Lens
>  Issue Type: Improvement
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1010.05.patch, LENS-1010.06.patch, 
> LENS-1010.07.patch, LENS-1010.07.patch, LENS-1010.08.patch, 
> LENS-1010.09.patch, LENS-1010.10.patch
>
>
> This would allow users to use lens client in try-with-resources clause 
> without worrying about closing manually.
> https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



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


[jira] [Updated] (LENS-1289) Fact column start_time and end_time not getting reflected with update fact command

2016-08-25 Thread Sushil Mohanty (JIRA)

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

Sushil Mohanty updated LENS-1289:
-
Attachment: LENS-1289.patch

> Fact column start_time and end_time not getting reflected with update fact 
> command
> --
>
> Key: LENS-1289
> URL: https://issues.apache.org/jira/browse/LENS-1289
> Project: Apache Lens
>  Issue Type: Bug
>  Components: cube
>Reporter: Sushil Mohanty
>Assignee: Sushil Mohanty
> Attachments: LENS-1289.patch
>
>
> As part of LENS-197 we have added start and end time support for fact 
> columns, which works for create fact table. We need to support the same for 
> update fact as well.



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


[jira] [Commented] (LENS-1186) Refactor exception handling in QueryServiceResource

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal commented on LENS-1186:


API changes: 

* Error codes 2006 and 2007 added
* On query submit api, if operation argument is some garbage value, 2003 error 
code should be reflected to the client.
* On invalid session handle to query api, 2006 error code should come
* 2007 is unused as of now. 

FYI [~archana.h] for testing. 

> Refactor exception handling in QueryServiceResource
> ---
>
> Key: LENS-1186
> URL: https://issues.apache.org/jira/browse/LENS-1186
> Project: Apache Lens
>  Issue Type: Sub-task
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1186.02.patch, LENS-1186.03.patch, 
> LENS-1186.05.patch
>
>




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


[jira] [Closed] (LENS-1183) Optimize multiple acquire from same thread

2016-08-25 Thread Rajat Khandelwal (JIRA)

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

Rajat Khandelwal closed LENS-1183.
--

> Optimize multiple acquire from same thread
> --
>
> Key: LENS-1183
> URL: https://issues.apache.org/jira/browse/LENS-1183
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: server
>Reporter: Puneet Gupta
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1183.01.patch
>
>
> 1. In LensSessionImpl if acquireCount.incrementAndGet() >1 , no need to 
> execute the proceeding 3 lines
> {code}
>   public synchronized void acquire(boolean userAccess) {
> super.acquire(userAccess);
> acquireCount.incrementAndGet();
> // Update thread's class loader with current DBs class loader
> ClassLoader classLoader = getClassLoader(getCurrentDatabase());
> Thread.currentThread().setContextClassLoader(classLoader);
> SessionState.getSessionConf().setClassLoader(classLoader);
> setActive();
>   }
> {code}



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


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

2016-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1198.
---

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



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


Re: Review Request 51423: LENS-1289 : Fact column start_time and end_time not getting reflected with update fact command

2016-08-25 Thread Rajat Khandelwal

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


Ship it!




Ship It!

- Rajat Khandelwal


On Aug. 25, 2016, 2:50 p.m., Sushil Mohanty wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51423/
> ---
> 
> (Updated Aug. 25, 2016, 2:50 p.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1289
> https://issues.apache.org/jira/browse/LENS-1289
> 
> 
> Repository: lens
> 
> 
> Description
> ---
> 
> With update fact table command, start and end time properties for columns 
> will be added.
> 
> 
> Diffs
> -
> 
>   lens-cli/src/test/java/org/apache/lens/cli/TestLensFactCommands.java 
> 9670d8f 
>   
> lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
>  0dce6c4 
>   
> lens-cube/src/test/java/org/apache/lens/cube/metadata/TestCubeMetastoreClient.java
>  62c7ec9 
>   
> lens-server/src/main/java/org/apache/lens/server/metastore/CubeMetastoreServiceImpl.java
>  31b8ce4 
> 
> Diff: https://reviews.apache.org/r/51423/diff/
> 
> 
> Testing
> ---
> 
> Added test to validate, mvn clean install runs fine.
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Lens Checkstyle Rules . SUCCESS [2.417s]
> [INFO] Lens .. SUCCESS [4.545s]
> [INFO] Lens API .. SUCCESS [26.527s]
> [INFO] Lens API for server and extensions  SUCCESS [20.325s]
> [INFO] Lens Cube . SUCCESS 
> [14:44.332s]
> [INFO] Lens DB storage ... SUCCESS [17.287s]
> [INFO] Lens Query Library  SUCCESS [13.669s]
> [INFO] Lens Hive Driver .. SUCCESS [1:21.392s]
> [INFO] Lens Driver for JDBC .. SUCCESS [36.758s]
> [INFO] Lens Elastic Search Driver  SUCCESS [20.517s]
> [INFO] Lens Server ... SUCCESS 
> [13:52.089s]
> [INFO] Lens client ... SUCCESS [1:30.070s]
> [INFO] Lens CLI .. SUCCESS [1:17.994s]
> [INFO] Lens Examples . SUCCESS [7.231s]
> [INFO] Lens Ship Jars to Distributed Cache ... SUCCESS [0.682s]
> [INFO] Lens Distribution . SUCCESS [9.638s]
> [INFO] Lens ML Lib ... SUCCESS [1:07.614s]
> [INFO] Lens ML Ext Distribution .. SUCCESS [2.120s]
> [INFO] Lens Regression ... SUCCESS [11.067s]
> [INFO] Lens UI ... SUCCESS [30.535s]
> [INFO] 
> 
> [INFO] BUILD SUCCESS
> [INFO] 
> 
> [INFO] Total time: 37:17.758s
> [INFO] Finished at: Thu Aug 25 09:13:29 UTC 2016
> [INFO] Final Memory: 181M/1960M
> [INFO] 
> 
> 
> 
> Thanks,
> 
> Sushil Mohanty
> 
>



[jira] [Closed] (LENS-1193) It should be possible to disable password field in lens ui

2016-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1193.
---

> It should be possible to disable password field in lens ui
> --
>
> Key: LENS-1193
> URL: https://issues.apache.org/jira/browse/LENS-1193
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: UI
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1193.01.patch
>
>




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


[jira] [Commented] (LENS-1288) example-job.xml in example schema isn't up to date with recent xsd changes

2016-08-25 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on LENS-1288:
-

Applied patch: 
[example-xml.patch|https://issues.apache.org/jira/secure/attachment/12825442/example-xml.patch]
 and ran command: mvn clean install -fae. Result: Failure. Build Job: 
https://builds.apache.org/job/PreCommit-Lens-Build/836/

> example-job.xml in example schema isn't up to date with recent xsd changes
> --
>
> Key: LENS-1288
> URL: https://issues.apache.org/jira/browse/LENS-1288
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Lavkesh Lahngir
> Attachments: example-xml.patch, example-xml.patch
>
>




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


[jira] [Closed] (LENS-1181) Create debian for lens ui

2016-08-25 Thread Archana H (JIRA)

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

Archana H closed LENS-1181.
---

> Create debian for lens ui
> -
>
> Key: LENS-1181
> URL: https://issues.apache.org/jira/browse/LENS-1181
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: UI
>Reporter: Rajat Khandelwal
>Assignee: Rajat Khandelwal
> Fix For: 2.6
>
> Attachments: LENS-1181.01.patch
>
>




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


[jira] [Updated] (LENS-1288) example-job.xml in example schema isn't up to date with recent xsd changes

2016-08-25 Thread Lavkesh Lahngir (JIRA)

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

Lavkesh Lahngir updated LENS-1288:
--
Attachment: example-xml.patch

> example-job.xml in example schema isn't up to date with recent xsd changes
> --
>
> Key: LENS-1288
> URL: https://issues.apache.org/jira/browse/LENS-1288
> Project: Apache Lens
>  Issue Type: Bug
>Reporter: Rajat Khandelwal
>Assignee: Lavkesh Lahngir
> Attachments: example-xml.patch, example-xml.patch
>
>




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


[jira] [Created] (LENS-1295) Query end mail notifier should accept account ids in mail id

2016-08-25 Thread Rajat Khandelwal (JIRA)
Rajat Khandelwal created LENS-1295:
--

 Summary: Query end mail notifier should accept account ids in mail 
id
 Key: LENS-1295
 URL: https://issues.apache.org/jira/browse/LENS-1295
 Project: Apache Lens
  Issue Type: Improvement
Reporter: Rajat Khandelwal


you're logged in as user.name and you want the query end email to be sent to 
you plus some other people. For now, you need to give the complete email ids of 
other people. If any mistake, no mail is sent. So we should accept partial mail 
ids too, i.e. user2.name,user3.name should be acceptable instead of forcing 
user2.name@corp, user3.name@corp



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


[jira] [Updated] (LENS-1293) Lens GUI should also show query id

2016-08-25 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1293:
---
Issue Type: Improvement  (was: Bug)

> Lens GUI should also show query id 
> ---
>
> Key: LENS-1293
> URL: https://issues.apache.org/jira/browse/LENS-1293
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: UI
>Reporter: Puneet Gupta
>Assignee: Rajat Khandelwal
>
> Lens GUI should also show query id information for a query.  This will be 
> useful for users. 



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


[jira] [Updated] (LENS-1293) Lens GUI should also show query id

2016-08-25 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1293:
---
Component/s: UI

> Lens GUI should also show query id 
> ---
>
> Key: LENS-1293
> URL: https://issues.apache.org/jira/browse/LENS-1293
> Project: Apache Lens
>  Issue Type: Bug
>  Components: UI
>Reporter: Puneet Gupta
>Assignee: Rajat Khandelwal
>
> Lens GUI should also show query id information for a query.  This will be 
> useful for users. 



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


[jira] [Updated] (LENS-1292) Add close session button in lens gui

2016-08-25 Thread Puneet Gupta (JIRA)

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

Puneet Gupta updated LENS-1292:
---
Component/s: UI

> Add close session button in lens gui
> 
>
> Key: LENS-1292
> URL: https://issues.apache.org/jira/browse/LENS-1292
> Project: Apache Lens
>  Issue Type: Improvement
>  Components: UI
>Reporter: Puneet Gupta
>Assignee: Lavkesh Lahngir
>
> Add close session button in lens gui on sessions page.



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


[jira] [Created] (LENS-1293) Lens GUI should also show query id

2016-08-25 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1293:
--

 Summary: Lens GUI should also show query id 
 Key: LENS-1293
 URL: https://issues.apache.org/jira/browse/LENS-1293
 Project: Apache Lens
  Issue Type: Bug
Reporter: Puneet Gupta
Assignee: Rajat Khandelwal


Lens GUI should also show query id information for a query.  This will be 
useful for users. 



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


[jira] [Created] (LENS-1292) Add close session button in lens gui

2016-08-25 Thread Puneet Gupta (JIRA)
Puneet Gupta created LENS-1292:
--

 Summary: Add close session button in lens gui
 Key: LENS-1292
 URL: https://issues.apache.org/jira/browse/LENS-1292
 Project: Apache Lens
  Issue Type: Improvement
Reporter: Puneet Gupta
Assignee: Lavkesh Lahngir


Add close session button in lens gui on sessions page.



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