hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1176280 - in /hadoop/common/branches/branch-0.20-security-205: CHANGES.txt src/packages/deb/hadoop.control/preinst src/packages/rpm/spec/hadoop.spec
Date Tue, 27 Sep 2011 08:39:16 GMT
Author: mattf
Date: Tue Sep 27 08:39:15 2011
New Revision: 1176280

URL: http://svn.apache.org/viewvc?rev=1176280&view=rev
Log:
HADOOP-7603. Set default hdfs, mapred uid, and hadoop group gid for RPM packages. Contributed
by Eric Yang.

Modified:
    hadoop/common/branches/branch-0.20-security-205/CHANGES.txt   (contents, props changed)
    hadoop/common/branches/branch-0.20-security-205/src/packages/deb/hadoop.control/preinst
    hadoop/common/branches/branch-0.20-security-205/src/packages/rpm/spec/hadoop.spec

Modified: hadoop/common/branches/branch-0.20-security-205/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-205/CHANGES.txt?rev=1176280&r1=1176279&r2=1176280&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-205/CHANGES.txt (original)
+++ hadoop/common/branches/branch-0.20-security-205/CHANGES.txt Tue Sep 27 08:39:15 2011
@@ -47,6 +47,9 @@ Release 0.20.205.0 - 2011.09.12
 
   BUG FIXES
 
+    HADOOP-7603. Set default hdfs, mapred uid, and hadoop group gid for RPM 
+    packages. (Eric Yang via mattf)
+
     HADOOP-7681. log4j.properties is missing properties for security audit and 
     hdfs audit should be changed to info. (Arpit Gupta via mattf)
 

Propchange: hadoop/common/branches/branch-0.20-security-205/CHANGES.txt
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Tue Sep 27 08:39:15 2011
@@ -1,6 +1,6 @@
 /hadoop/common/branches/branch-0.20/CHANGES.txt:826138,826568,829987,831184,833001,880632,898713,909245,909723,960946,990003,1044225
 /hadoop/common/branches/branch-0.20-append/CHANGES.txt:955380,955398,955448,956329
-/hadoop/common/branches/branch-0.20-security/CHANGES.txt:1170042,1170087,1170997,1171137,1171181,1171380,1171613,1171891,1171905,1172184,1172188,1172190,1172192,1173470,1173843,1174326,1174471,1174476,1174482,1175114,1176179,1176182,1176270
+/hadoop/common/branches/branch-0.20-security/CHANGES.txt:1170042,1170087,1170997,1171137,1171181,1171380,1171613,1171891,1171905,1172184,1172188,1172190,1172192,1173470,1173843,1174326,1174471,1174476,1174482,1175114,1176179,1176182,1176270,1176276
 /hadoop/common/branches/branch-0.20-security-203/CHANGES.txt:1096071,1097011,1097249,1097269,1097281,1097966,1098816,1098819,1098823,1098827,1098832,1098839,1098854,1098863,1099088,1099191,1099324,1099330,1099333,1102071,1128115
 /hadoop/common/branches/branch-0.20-security-204/CHANGES.txt:1128390,1147228,1148069,1149316,1154413,1159730,1161741
 /hadoop/core/branches/branch-0.18/CHANGES.txt:727226

Modified: hadoop/common/branches/branch-0.20-security-205/src/packages/deb/hadoop.control/preinst
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-205/src/packages/deb/hadoop.control/preinst?rev=1176280&r1=1176279&r2=1176280&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-205/src/packages/deb/hadoop.control/preinst
(original)
+++ hadoop/common/branches/branch-0.20-security-205/src/packages/deb/hadoop.control/preinst
Tue Sep 27 08:39:15 2011
@@ -15,8 +15,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -r hadoop
+getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -g 114 -r hadoop
 
-/usr/sbin/useradd --comment "Hadoop MapReduce" --shell /bin/bash -M -r --groups hadoop --home
/var/lib/hadoop/mapred mapred 2> /dev/null || :
-/usr/sbin/useradd --comment "Hadoop HDFS" --shell /bin/bash -M -r --groups hadoop --home
/var/lib/hadoop/hdfs hdfs 2> /dev/null || :
+/usr/sbin/useradd --comment "Hadoop MapReduce" -u 202 --shell /bin/bash -M -r --groups hadoop
--home /var/lib/hadoop/mapred mapred 2> /dev/null || :
+/usr/sbin/useradd --comment "Hadoop HDFS" -u 201 --shell /bin/bash -M -r --groups hadoop
--home /var/lib/hadoop/hdfs hdfs 2> /dev/null || :
 

Modified: hadoop/common/branches/branch-0.20-security-205/src/packages/rpm/spec/hadoop.spec
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-205/src/packages/rpm/spec/hadoop.spec?rev=1176280&r1=1176279&r2=1176280&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-205/src/packages/rpm/spec/hadoop.spec (original)
+++ hadoop/common/branches/branch-0.20-security-205/src/packages/rpm/spec/hadoop.spec Tue
Sep 27 08:39:15 2011
@@ -147,10 +147,10 @@ if [ "${RPM_BUILD_DIR}%{_conf_dir}" != "
 fi
 
 %pre
-getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -r hadoop
+getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -g 114 -r hadoop
 
-/usr/sbin/useradd --comment "Hadoop MapReduce" --shell /bin/bash -M -r -g hadoop --home /tmp
mapred 2> /dev/null || :
-/usr/sbin/useradd --comment "Hadoop HDFS" --shell /bin/bash -M -r -g hadoop --home /tmp hdfs
2> /dev/null || :
+/usr/sbin/useradd --comment "Hadoop MapReduce" -u 202 --shell /bin/bash -M -r -g hadoop --home
/tmp mapred 2> /dev/null || :
+/usr/sbin/useradd --comment "Hadoop HDFS" -u 201 --shell /bin/bash -M -r -g hadoop --home
/tmp hdfs 2> /dev/null || :
 
 %post
 bash ${RPM_INSTALL_PREFIX0}/sbin/update-hadoop-env.sh \



Mime
View raw message