hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <>
Subject Re: Thrift metastore server and dfs file owner
Date Tue, 13 Jul 2010 21:47:11 GMT
On Tue, Jul 13, 2010 at 5:04 PM, Pradeep Kamath <> wrote:
> Hi,
>    I suspect this is true but wanted to confirm: If I start a thrift
> metastore service as user “joe” then all internal tables created will have
> directories under the warehouse directory owned by “joe” regardless of the
> actual user running the create table statement – is this correct? There is
> no way for the thrift server to create the directory as the actual user?
> However if thrift service is not used and the hive client directly works
> against the metastore database, then the directories are created by the
> actual user – is this correct?
> Thanks,
> Pradeep

The hive web interface does this:

    queries.add("set hadoop.job.ugi=" + auth.getUser() + ","
        + auth.getGroups()[0]);
    queries.add("set" + auth.getUser());

You should be able to accomplish the same thing using set commands
with the Thrift Server to impersonate.


View raw message