In HDP 2.2, when installing ‘hadoop-httpfs’ from RPM, the installation is not complete.
A few things appear to be missing from the RPM:
– Does not contain or link anything into /etc
– The RPM scripts are missing or commented
===========
Reference:
/etc/ populated in HDP 2.1:
# rpm -qlp hadoop-httpfs-2.4.0.2.1.1.0-385.el6.x86_64.rpm | grep ^/etc | wc -l
16
/etc/ not populated in HDP 2.2:
# rpm -qlp hadoop_2_2_0_0_2041-httpfs-2.6.0.2.2.0.0-2041.el6.x86_64.rpm | grep ^/etc | wc -l
0
Working RPM scripts in HDP 2.1:
# rpm -q --scripts -p hadoop-httpfs-2.4.0.2.1.1.0-385.el6.x86_64.rpm
preinstall scriptlet (using /bin/sh):
getent group httpfs >/dev/null || groupadd -r httpfs
getent passwd httpfs >/dev/null || /usr/sbin/useradd --comment "Hadoop HTTPFS" --shell /bin/bash -M -r -g httpfs -G httpfs --home /var/run/hadoop-httpfs httpfs
postinstall scriptlet (using /bin/sh):
alternatives --install /etc/hadoop-httpfs/conf hadoop-httpfs-conf /etc/hadoop-httpfs/conf.empty 10
alternatives --install /etc/hadoop-httpfs/tomcat-deployment hadoop-tomcat-deployment /etc/hadoop-httpfs/tomcat-deployment.dist 10
chkconfig --add hadoop-httpfs
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ]; then
service hadoop-httpfs stop > /dev/null 2>&1
chkconfig --del hadoop-httpfs
alternatives --remove hadoop-httpfs-conf /etc/hadoop-httpfs/conf.empty || :
alternatives --remove hadoop-tomcat-deployment /etc/hadoop-httpfs/tomcat-deployment.dist || :
fi
postuninstall scriptlet (using /bin/sh):
if [ $1 -ge 1 ]; then
service hadoop-httpfs condrestart >/dev/null 2>&1
fi
Not working install scripts in HDP 2.2 (postinstall is missing):
# rpm -q --scripts -p hadoop_2_2_0_0_2041-httpfs-2.6.0.2.2.0.0-2041.el6.x86_64.rpm
preinstall scriptlet (using /bin/sh):
getent group httpfs >/dev/null || groupadd -r httpfs
getent passwd httpfs >/dev/null || /usr/sbin/useradd --comment "Hadoop HTTPFS" --shell /bin/bash -M -r -g httpfs -G httpfs --home /var/run/hadoop/httpfs httpfs
preuninstall scriptlet (using /bin/sh):
#if [ $1 = 0 ]; then
#service hadoop-httpfs stop > /dev/null 2>&1
#chkconfig --del hadoop-httpfs
#alternatives --remove hadoop-httpfs-conf /usr/hdp/2.2.0.0-2041/etc/hadoop-httpfs/conf.empty || :
#alternatives --remove hadoop-tomcat-deployment /usr/hdp/2.2.0.0-2041/etc/hadoop-httpfs/tomcat-deployment.dist || :
#fi
#%postun httpfs
#if [ $1 -ge 1 ]; then
#service hadoop-httpfs condrestart >/dev/null 2>&1
#fi