You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Carl Steinbach <ca...@cloudera.com> on 2010/09/02 10:14:55 UTC
Do you set hadoop.job.ugi in Hive? If so, we need to talk.
Hi,
In Hadoop 0.20 and older versions you can set the variable "hadoop.job.ugi"
to basically change your username to whatever you like. This allows you to
easily fudge HDFS permissions and run your mapreduce jobs as another user.
This is a handy trick if a bunch of people want to share one HDFS identity.
Clearly it's not secure, and in the new secure version of Hadoop it's been
done away with. However, it's even been done away with when you have
security set to "simple" (aka insecure).
I'm writing to ask how many Hive users take advantage of this feature when
running Hive queries, for example do you set hadoop.job.ugi in hive-site.xml
or in the CLI before you execute queries? We have started to work on the
task of modifying Hive to work with the new security enhanced version of
Hadoop and are trying to get an impression of how many users would be
negatively affected if they lose the ability to set the hadoop.job.ugi
property and have their Hive queries execute as another user.
Thanks.
Carl
Re: Do you set hadoop.job.ugi in Hive? If so, we need to talk.
Posted by Edward Capriolo <ed...@gmail.com>.
On Thu, Sep 2, 2010 at 4:14 AM, Carl Steinbach <ca...@cloudera.com> wrote:
> Hi,
> In Hadoop 0.20 and older versions you can set the variable "hadoop.job.ugi"
> to basically change your username to whatever you like. This allows you to
> easily fudge HDFS permissions and run your mapreduce jobs as another user.
> This is a handy trick if a bunch of people want to share one HDFS identity.
> Clearly it's not secure, and in the new secure version of Hadoop it's been
> done away with. However, it's even been done away with when you have
> security set to "simple" (aka insecure).
> I'm writing to ask how many Hive users take advantage of this feature when
> running Hive queries, for example do you set hadoop.job.ugi in hive-site.xml
> or in the CLI before you execute queries? We have started to work on the
> task of modifying Hive to work with the new security enhanced version of
> Hadoop and are trying to get an impression of how many users would be
> negatively affected if they lose the ability to set the hadoop.job.ugi
> property and have their Hive queries execute as another user.
> Thanks.
> Carl
>
So the big issue is how does the hive server and web interface handle
the proxy authentication? Since the web interface currently sets
hadoop.job.ugi based on what you put in a text box.
Edward