hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Krogen <ekro...@linkedin.com>
Subject Re: Should ToolRunner call UserGroupInformation.setConfiguration?
Date Thu, 27 Jul 2017 20:46:19 GMT
I have found this troublesome as well, +1 to this unless there is a good reason not to.

Erik

On 7/26/17, 10:05 PM, "John Zhuge" <john.zhuge@gmail.com> wrote:

    The static UGI.conf is set to a new Configuration object in
    UGI.ensureInitialized if setConfiguration is not already called.
    
    
    ToolRunner.conf does take -D overrides but it is not copied to UGI.conf.
    
    On Wed, Jul 26, 2017 at 8:42 PM, John Zhuge <john.zhuge@gmail.com> wrote:
    
    > Hi Gurus,
    >
    > Unlike YarnChild, DN, NN, and many others, ToolRunner does not
    > call UserGroupInformation.setConfiguration. Is this by design?
    >
    > The means you can not use "-D" to override any conf property used in UGI.
    > The only direct call I found is:
    >
    >         String cmd = conf.get("hadoop.kerberos.kinit.command", "kinit");
    >
    >
    > Thanks,
    > --
    > John
    >
    
    
    
    -- 
    John
    

Mime
View raw message