hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Kanter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-12954) Add a way to change hadoop.security.token.service.use_ip
Date Tue, 22 Mar 2016 23:09:25 GMT
Robert Kanter created HADOOP-12954:

             Summary: Add a way to change hadoop.security.token.service.use_ip
                 Key: HADOOP-12954
                 URL: https://issues.apache.org/jira/browse/HADOOP-12954
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 2.6.0
            Reporter: Robert Kanter
            Assignee: Robert Kanter

Currently, {{hadoop.security.token.service.use_ip}} is set on JVM startup via:
  static {
    Configuration conf = new Configuration();
    boolean useIp = conf.getBoolean(

This is a problem for clients, such as Oozie, who don't add *-site.xml files to their classpath.
 Oozie normally creates a {{JobClient}} and passes a {{Configuration}} to it with the proper
configs we need.  However, because {{hadoop.security.token.service.use_ip}} is specified in
a static block like this, and there's no API to change it, Oozie has no way to set it to the
non-default value.

I propose we add a {{setConfiguration}} method which takes a {{Configuration}} and rereads
{{hadoop.security.token.service.use_ip}}.  There's a few other properties that are also loaded
statically on startup that can be reloaded here as well.  

This message was sent by Atlassian JIRA

View raw message