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

Richard commented on SQOOP-1528:
--------------------------------

It is a small feature depends on delegation token task.
The server get the client's credential from http request, and run job with 
proxy mode (the sqoop user delegates the real client user).
{code:title=MapreduceSubmissionEngine.java}
UserGroupInformation user = HttpUserGroupInformation.get();
      // If we're in local mode than wait on completion. Local job runner do not
      // seems to be exposing API to get previously submitted job which makes
      // other methods of the submission engine quite useless.
      if (isLocal()) {
        user.doAs(
                new PrivilegedExceptionAction<Void>() {
                  @Override
                  public Void run() throws Exception {
                    job.waitForCompletion(true);
                    return null;
                  }
                });
      } else {
        user.doAs(
                new PrivilegedExceptionAction<Void>() {
                  @Override
                  public Void run() throws Exception {
                    job.submit();
                    return null;
                  }
                });
      }
{code}

> Sqoop2: Kerberos support on DoAs function
> -----------------------------------------
>
>                 Key: SQOOP-1528
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1528
>             Project: Sqoop
>          Issue Type: Sub-task
>          Components: sqoop2-client
>            Reporter: Richard
>            Assignee: Richard
>             Fix For: 1.99.5
>
>
> Implement impersonation function for Sqoop 2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to