HADOOP-7603. Set hdfs, mapred uid, and hadoop uid to fixed numbers. (Eric Yang)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1178644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d45bfdffd
commit
abc2b45dfa
@ -641,6 +641,8 @@ Release 0.23.0 - Unreleased
|
|||||||
|
|
||||||
HADOOP-7691. Fixed conflict uid for install packages. (Eric Yang)
|
HADOOP-7691. Fixed conflict uid for install packages. (Eric Yang)
|
||||||
|
|
||||||
|
HADOOP-7603. Set hdfs, mapred uid, and hadoop uid to fixed numbers. (Eric Yang)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -15,4 +15,4 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# 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 || :
|
||||||
|
@ -144,8 +144,8 @@ mv ${RPM_BUILD_DIR}/%{_final_name}/share/* ${RPM_BUILD_DIR}%{_share_dir}
|
|||||||
rm -rf ${RPM_BUILD_DIR}/%{_final_name}/etc
|
rm -rf ${RPM_BUILD_DIR}/%{_final_name}/etc
|
||||||
|
|
||||||
%pre
|
%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 123 -r hadoop
|
||||||
/usr/sbin/useradd --comment "Hadoop HDFS" --shell /bin/bash -M -r --groups hadoop --home %{_var_dir}/hdfs hdfs 2> /dev/null || :
|
/usr/sbin/useradd --comment "Hadoop HDFS" -u 201 --shell /bin/bash -M -r --groups hadoop --home %{_var_dir}/hdfs hdfs 2> /dev/null || :
|
||||||
|
|
||||||
%post
|
%post
|
||||||
bash ${RPM_INSTALL_PREFIX0}/sbin/update-hdfs-env.sh \
|
bash ${RPM_INSTALL_PREFIX0}/sbin/update-hdfs-env.sh \
|
||||||
|
@ -15,4 +15,4 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
/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 MapReduce" -u 202 --shell /bin/bash -M -r --groups hadoop --home /var/lib/hadoop/mapred mapred 2> /dev/null || :
|
||||||
|
@ -142,8 +142,8 @@ mv ${RPM_BUILD_DIR}/%{_final_name}/share/* ${RPM_BUILD_DIR}%{_share_dir}
|
|||||||
rm -rf ${RPM_BUILD_DIR}/%{_final_name}/etc
|
rm -rf ${RPM_BUILD_DIR}/%{_final_name}/etc
|
||||||
|
|
||||||
%pre
|
%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 123 -r hadoop
|
||||||
/usr/sbin/useradd --comment "Hadoop MapReduce" --shell /bin/bash -M -r --groups hadoop --home %{_var_dir}/mapred mapred 2> /dev/null || :
|
/usr/sbin/useradd --comment "Hadoop MapReduce" -u 202 --shell /bin/bash -M -r --groups hadoop --home %{_var_dir}/mapred mapred 2> /dev/null || :
|
||||||
|
|
||||||
%post
|
%post
|
||||||
bash ${RPM_INSTALL_PREFIX0}/sbin/update-mapred-env.sh \
|
bash ${RPM_INSTALL_PREFIX0}/sbin/update-mapred-env.sh \
|
||||||
|
Loading…
Reference in New Issue
Block a user