chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r773967 - in /hadoop/chukwa: branches/chukwa-0.1/tools/service/chukwa-hdfsusage/run trunk/tools/service/chukwa-hdfsusage/run
Date Tue, 12 May 2009 16:28:00 GMT
Author: eyang
Date: Tue May 12 16:27:59 2009
New Revision: 773967

URL: http://svn.apache.org/viewvc?rev=773967&view=rev
Log:
CHUKWA-227. Improved the user privilege for reading HDFS usage.  (Cheng Zhang via Eric Yang)

Modified:
    hadoop/chukwa/branches/chukwa-0.1/tools/service/chukwa-hdfsusage/run
    hadoop/chukwa/trunk/tools/service/chukwa-hdfsusage/run

Modified: hadoop/chukwa/branches/chukwa-0.1/tools/service/chukwa-hdfsusage/run
URL: http://svn.apache.org/viewvc/hadoop/chukwa/branches/chukwa-0.1/tools/service/chukwa-hdfsusage/run?rev=773967&r1=773966&r2=773967&view=diff
==============================================================================
--- hadoop/chukwa/branches/chukwa-0.1/tools/service/chukwa-hdfsusage/run (original)
+++ hadoop/chukwa/branches/chukwa-0.1/tools/service/chukwa-hdfsusage/run Tue May 12 16:27:59
2009
@@ -3,5 +3,5 @@
 CHUKWA_HOME=/usr/local/chukwa
 CHUKWA_USER=chukwa
 
-exec setuidgid ${CHUKWA_USER} ${CHUKWA_HOME}/bin/exec-data-loader.sh --config $CHUKWA_CONF_DIR
HDFSUsage &>/dev/null
+exec su ${CHUKWA_USER} -c "${CHUKWA_HOME}/bin/exec-data-loader.sh --config $CHUKWA_CONF_DIR
HDFSUsage" &>/dev/null
 

Modified: hadoop/chukwa/trunk/tools/service/chukwa-hdfsusage/run
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/tools/service/chukwa-hdfsusage/run?rev=773967&r1=773966&r2=773967&view=diff
==============================================================================
--- hadoop/chukwa/trunk/tools/service/chukwa-hdfsusage/run (original)
+++ hadoop/chukwa/trunk/tools/service/chukwa-hdfsusage/run Tue May 12 16:27:59 2009
@@ -3,5 +3,5 @@
 CHUKWA_HOME=/usr/local/chukwa
 CHUKWA_USER=chukwa
 
-exec setuidgid ${CHUKWA_USER} ${CHUKWA_HOME}/bin/exec-data-loader.sh --config $CHUKWA_CONF_DIR
HDFSUsage &>/dev/null
+exec su ${CHUKWA_USER} -c "${CHUKWA_HOME}/bin/exec-data-loader.sh --config $CHUKWA_CONF_DIR
HDFSUsage" &>/dev/null
 



Mime
View raw message