hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15150) in FsShell, UGI params should be overidden through env vars(-D arg)
Date Wed, 17 Jan 2018 19:30:00 GMT

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

Brahma Reddy Battula commented on HADOOP-15150:
-----------------------------------------------

[~vinayrpet] thanks for review..Uploaded patch to use CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION
to address [~shahrs87] comment. 

> in FsShell, UGI params should be overidden through env vars(-D arg)
> -------------------------------------------------------------------
>
>                 Key: HADOOP-15150
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15150
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>            Priority: Major
>         Attachments: HADOOP-15150-002.patch, HADOOP-15150.patch
>
>
> org.apache.hadoop.security.UserGroupInformation#ensureInitialized,will always get the
configure from the configuration files.*So that, -D args will not take effect*.
> {code}
>   private static void ensureInitialized() {
>     if (conf == null) {
>       synchronized(UserGroupInformation.class) {
>         if (conf == null) { // someone might have beat us
>           initialize(new Configuration(), false);
>         }
>       }
>     }
>   }
> {code}



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

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


Mime
View raw message