You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wataru Yukawa (JIRA)" <ji...@apache.org> on 2019/03/15 04:44:00 UTC

[jira] [Commented] (SPARK-22506) Spark thrift server can not impersonate user in kerberos

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

Wataru Yukawa commented on SPARK-22506:
---------------------------------------

Hi,

Spark thrift server can impersonate a user inĀ ourĀ kerberized hadoop and Spark 2.1.1(HDP-2.6.2.0) and the following setting
when I execute select query
{code:java}
hive.server2.enable.doAs=true
{code}
But it can't impersonate in create query case.
For example, if you execute the following query, /apps/hive/warehouse/hoge.db/piyo in HDFS is hive owner.
{code:java}
create table hoge.piyo(str string)
{code}
Thanks

> Spark thrift server can not impersonate user in kerberos 
> ---------------------------------------------------------
>
>                 Key: SPARK-22506
>                 URL: https://issues.apache.org/jira/browse/SPARK-22506
>             Project: Spark
>          Issue Type: Improvement
>          Components: Deploy
>    Affects Versions: 2.2.0
>            Reporter: sydt
>            Priority: Major
>         Attachments: screenshot-1.png
>
>
> Spark thrift server can not impersonate user in kerberos environment.
> I launch spark thrift server in* yarn-client *mode by user *hive* ,which is allowed to impersonate other user.
> User* jt_jzyx_project7* submit sql statement to query its own table located in hdfs catalog: /user/jt_jzyx_project7, and happened errors:
> Permission denied: *user=hive*, access=EXECUTE, inode=*"/user/jt_jzyx_project7*":hdfs:jt_jzyx_project7:drwxrwx---:user:g_dcpt_project1:rwx,group::rwx
> obviously, spark thrift server didn't proxy user: jt_jzyx_project7 in hdfs.
> And this happened task stage, which means it pass the hive authorization.
> !screenshot-1.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org