HADOOP-7610. Fix for hadoop debian package. Contributed by Eric Yang
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1167428 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b982e6205f
commit
a3df5d0b26
@ -16,6 +16,8 @@ Trunk (unreleased changes)
|
|||||||
HADOOP-7606. Upgrade Jackson to version 1.7.1 to match the version required
|
HADOOP-7606. Upgrade Jackson to version 1.7.1 to match the version required
|
||||||
by Jersey (Alejandro Abdelnur via atm)
|
by Jersey (Alejandro Abdelnur via atm)
|
||||||
|
|
||||||
|
HADOOP-7610. Fix for hadoop debian package (Eric Yang via gkesavan)
|
||||||
|
|
||||||
Release 0.23.0 - Unreleased
|
Release 0.23.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -134,7 +134,9 @@ if [ "${UNINSTALL}" -eq "1" ]; then
|
|||||||
rm -rf ${HADOOP_PREFIX}/etc/hadoop
|
rm -rf ${HADOOP_PREFIX}/etc/hadoop
|
||||||
fi
|
fi
|
||||||
rm -f /etc/default/hadoop-env.sh
|
rm -f /etc/default/hadoop-env.sh
|
||||||
|
if [ -d /etc/profile.d ]; then
|
||||||
rm -f /etc/profile.d/hadoop-env.sh
|
rm -f /etc/profile.d/hadoop-env.sh
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
# Create symlinks
|
# Create symlinks
|
||||||
if [ "${HADOOP_CONF_DIR}" != "${HADOOP_PREFIX}/etc/hadoop" ]; then
|
if [ "${HADOOP_CONF_DIR}" != "${HADOOP_PREFIX}/etc/hadoop" ]; then
|
||||||
@ -142,7 +144,9 @@ else
|
|||||||
ln -sf ${HADOOP_CONF_DIR} ${HADOOP_PREFIX}/etc/hadoop
|
ln -sf ${HADOOP_CONF_DIR} ${HADOOP_PREFIX}/etc/hadoop
|
||||||
fi
|
fi
|
||||||
ln -sf ${HADOOP_CONF_DIR}/hadoop-env.sh /etc/default/hadoop-env.sh
|
ln -sf ${HADOOP_CONF_DIR}/hadoop-env.sh /etc/default/hadoop-env.sh
|
||||||
|
if [ -d /etc/profile.d ]; then
|
||||||
ln -sf ${HADOOP_CONF_DIR}/hadoop-env.sh /etc/profile.d/hadoop-env.sh
|
ln -sf ${HADOOP_CONF_DIR}/hadoop-env.sh /etc/profile.d/hadoop-env.sh
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p ${HADOOP_LOG_DIR}
|
mkdir -p ${HADOOP_LOG_DIR}
|
||||||
chown root:hadoop ${HADOOP_LOG_DIR}
|
chown root:hadoop ${HADOOP_LOG_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user