hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joydeep Sen Sarma (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-338) Executing cli commands into thrift server
Date Fri, 05 Jun 2009 15:56:07 GMT

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

Joydeep Sen Sarma commented on HIVE-338:

there's a singleton sessionstate per thread that captures session settings. thread can switch
from one session to another.

yes - the variables in SessionState are pseudo global variables - but this is easier to organize
than passing those properties to each and every method. Do you consider the System object
in Java to be an abuse of global variables? Or do you consider environment variables and system
properties available globally to processes as things that prevent reuse? If you look at the
things that are part of sessionstate - they are similar in nature (input/output streams, list
of systemwide resources and so on).

this is of course open-source and re-writes are as welcome as any other contribution. i have
not been a heavy user of thrift myself so cannot comment on its speed. it would be easy enough
to write more rpc layers on top of hive if required. however - the current problems in the
threaded server code need immediate fixing since users are trying to use it right now. probably
we will have to do this as part of a separate jira.

> Executing cli commands into thrift server
> -----------------------------------------
>                 Key: HIVE-338
>                 URL: https://issues.apache.org/jira/browse/HIVE-338
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Server Infrastructure
>    Affects Versions: 0.3.0
>            Reporter: Min Zhou
>         Attachments: hiveserver-v1.patch
> Let thrift server support set, add/delete file/jar and normal HSQL query.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message