Commit 4543c837 by Jon Maron

switching LoginProcessor to PropertiesUtil so config is loaded properly

parent f3b8232d
...@@ -19,6 +19,8 @@ package org.apache.hadoop.metadata.web.listeners; ...@@ -19,6 +19,8 @@ package org.apache.hadoop.metadata.web.listeners;
import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.metadata.MetadataException;
import org.apache.hadoop.metadata.PropertiesUtil;
import org.apache.hadoop.security.SecurityUtil; import org.apache.hadoop.security.SecurityUtil;
import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.util.Shell; import org.apache.hadoop.util.Shell;
...@@ -120,7 +122,11 @@ public class LoginProcessor { ...@@ -120,7 +122,11 @@ public class LoginProcessor {
* @throws ConfigurationException * @throws ConfigurationException
*/ */
protected PropertiesConfiguration getPropertiesConfiguration() throws ConfigurationException { protected PropertiesConfiguration getPropertiesConfiguration() throws ConfigurationException {
return new PropertiesConfiguration("application.properties"); try {
return PropertiesUtil.getApplicationProperties();
} catch (MetadataException e) {
throw new ConfigurationException(e);
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment