HADOOP-7724. Fixed hadoop-setup-conf.sh to put proxy user in

core-site.xml.  (Arpit Gupta via Eric Yang)


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1179916 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Yang 2011-10-07 01:10:29 +00:00
parent a9f2a60872
commit 2459b72cd9
2 changed files with 6 additions and 2 deletions

View File

@ -386,6 +386,9 @@ Release 0.23.0 - Unreleased
HADOOP-7720. Added parameter for HBase user to setup config script. HADOOP-7720. Added parameter for HBase user to setup config script.
(Arpit Gupta via Eric Yang) (Arpit Gupta via Eric Yang)
HADOOP-7724. Fixed hadoop-setup-conf.sh to put proxy user in
core-site.xml. (Arpit Gupta via Eric Yang)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole

View File

@ -139,6 +139,7 @@ function addPropertyToXMLConf
######################################### #########################################
function setupProxyUsers function setupProxyUsers
{ {
local conf_file="${HADOOP_CONF_DIR}/core-site.xml"
#if hadoop proxy users are sent, setup hadoop proxy #if hadoop proxy users are sent, setup hadoop proxy
if [ ! -z $HADOOP_PROXY_USERS ] if [ ! -z $HADOOP_PROXY_USERS ]
then then
@ -156,10 +157,10 @@ function setupProxyUsers
#determine the property names and values #determine the property names and values
proxy_groups_property="hadoop.proxyuser.${user}.groups" proxy_groups_property="hadoop.proxyuser.${user}.groups"
proxy_groups_val="$groups" proxy_groups_val="$groups"
addPropertyToXMLConf "${HADOOP_CONF_DIR}/hdfs-site.xml" "$proxy_groups_property" "$proxy_groups_val" addPropertyToXMLConf "$conf_file" "$proxy_groups_property" "$proxy_groups_val"
proxy_hosts_property="hadoop.proxyuser.${user}.hosts" proxy_hosts_property="hadoop.proxyuser.${user}.hosts"
proxy_hosts_val="$hosts" proxy_hosts_val="$hosts"
addPropertyToXMLConf "${HADOOP_CONF_DIR}/hdfs-site.xml" "$proxy_hosts_property" "$proxy_hosts_val" addPropertyToXMLConf "$conf_file" "$proxy_hosts_property" "$proxy_hosts_val"
IFS=';' IFS=';'
done done
IFS=$oldIFS IFS=$oldIFS