Author: eyang
Date: Tue Oct 4 00:13:58 2011
New Revision: 1178644
URL: http://svn.apache.org/viewvc?rev=1178644&view=rev
Log:
HADOOP-7603. Set hdfs, mapred uid, and hadoop uid to fixed numbers. (Eric Yang)
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/deb/hadoop.control/preinst
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/rpm/spec/hadoop-hdfs.spec
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/deb/hadoop.control/preinst
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/deb/hadoop.control/preinst?rev=1178644&r1=1178643&r2=1178644&view=diff
==============================================================================
---
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/deb/hadoop.control/preinst
(original)
+++
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/deb/hadoop.control/preinst
Tue Oct 4 00:13:58 2011
@@ -15,4 +15,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-/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 HDFS" -u 201 --shell /bin/bash -M -r
--groups hadoop --home /var/lib/hadoop/hdfs hdfs 2> /dev/null || :
Modified:
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/rpm/spec/hadoop-hdfs.spec
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/rpm/spec/hadoop-hdfs.spec?rev=1178644&r1=1178643&r2=1178644&view=diff
==============================================================================
---
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/rpm/spec/hadoop-hdfs.spec
(original)
+++
hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/packages/rpm/spec/hadoop-hdfs.spec
Tue Oct 4 00:13:58 2011
@@ -144,8 +144,8 @@ mv ${RPM_BUILD_DIR}/%{_final_name}/share
rm -rf ${RPM_BUILD_DIR}/%{_final_name}/etc
%pre
-getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -r hadoop
-/usr/sbin/useradd --comment "Hadoop HDFS" --shell /bin/bash -M -r --groups
hadoop --home %{_var_dir}/hdfs hdfs 2> /dev/null || :
+getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -g 123 -r
hadoop
+/usr/sbin/useradd --comment "Hadoop HDFS" -u 201 --shell /bin/bash -M -r
--groups hadoop --home %{_var_dir}/hdfs hdfs 2> /dev/null || :
%post
bash ${RPM_INSTALL_PREFIX0}/sbin/update-hdfs-env.sh \