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

Thejas M Nair commented on HIVE-4629:
-------------------------------------

Please give me a day to review this patch.
I had an initial pass on this, one concern I have is the 1 MB of log being 
returned on every call to getLog. I believe this is for use cases such as Hue. 
In such use cases there is only one consumer for the log, and giving out 
incremental logs would be better. ie , after a call to getLog, clear the buffer 
and the next getLog call returns only the new log lines. This will reduce the 
memory footprint in HiveServer2 and the load that getLog call puts on it. It 
will also make applications like Hue more responsive, and be able to refresh 
the log more frequently.


> HS2 should support an API to retrieve query logs
> ------------------------------------------------
>
>                 Key: HIVE-4629
>                 URL: https://issues.apache.org/jira/browse/HIVE-4629
>             Project: Hive
>          Issue Type: Sub-task
>          Components: HiveServer2
>            Reporter: Shreepadma Venugopalan
>            Assignee: Shreepadma Venugopalan
>         Attachments: HIVE-4629-no_thrift.1.patch, HIVE-4629.1.patch, 
> HIVE-4629.2.patch, HIVE-4629.3.patch.txt
>
>
> HiveServer2 should support an API to retrieve query logs. This is 
> particularly relevant because HiveServer2 supports async execution but 
> doesn't provide a way to report progress. Providing an API to retrieve query 
> logs will help report progress to the client.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to