You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2015/04/23 11:08:38 UTC

[jira] [Commented] (LENS-139) Remove resources from a session is not working

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

Amareshwari Sriramadasu commented on LENS-139:
----------------------------------------------

Remove resources gets more complicated with db resources added. Should we remove the functionality of "removing resources"? I don't see much usecases requiring this. If there is any, user can always create new session and add fresh jars.

Thoughts?

> Remove resources from a session is not working
> ----------------------------------------------
>
>                 Key: LENS-139
>                 URL: https://issues.apache.org/jira/browse/LENS-139
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Arshad Matin
>
> {noformat}
> lens-shell>query execute CREATE TEMPORARY FUNCTION sleep AS 'hive.udf.SampleUdf'
> Query failed with errorCode:1 with errorMessage: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask cause:Stage-0(FUNC):Stage-0: has failed! 
> lens-shell>query execute cube select sleep(name) from sample_dim2 where name != 'first'
> Launching query failed cause:Error while compiling statement: FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'name': The UDF implementation class 'hive.udf.SampleUdf' is not present in the class path
> lens-shell>add jar hdfs://LENS/tmp/hiveudftest-1.0-SNAPSHOT.jar
> Add resource succeeded
> lens-shell>query execute CREATE TEMPORARY FUNCTION sleep AS 'hive.udf.SampleUdf'
> 0 rows process in (0) seconds.
> lens-shell>query execute cube select sleep(name) from sample_dim2 where name != 'first'
> _c0    
> sixteen    
> seventeen    
> eighteen    
> ninteen    
> eleven    
> twelve    
> thirteen    
> fourteen    
> fifteen    
> 9 rows process in (317) seconds.
> lens-shell>remove jar hdfs://LENS/tmp/hiveudftest-1.0-SNAPSHOT.jar
> Delete resource succeeded
> lens-shell>query execute cube select sleep(name) from sample_dim2 where name != 'first'
> _c0    
> sixteen    
> seventeen    
> eighteen    
> ninteen    
> eleven    
> twelve    
> thirteen    
> fourteen    
> fifteen    
> 9 rows process in (317) seconds.
> {noformat}



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