Chandan Pal created HADOOP-15488:
------------------------------------
Summary: hadoop-httpfs daemon gave up supervising hadoop-httpfs
Key: HADOOP-15488
URL: https://issues.apache.org/jira/browse/HADOOP-15488
Project: Hadoop Common
Issue Type: Bug
Affects Versions: 2.6.4
Environment:
[hadoop_2_6_4_0_91-httpfs-2.7.3.2.6.4.0-91.x86_64.rpm|http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/2.x/BUILDS/2.6.4.0-91/hadoop/hadoop_2_6_4_0_91-httpfs-2.7.3.2.6.4.0-91.x86_64.rpm]
[hadoop_2_6_4_0_91-httpfs-server-2.7.3.2.6.4.0-91.x86_64.rpm|http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos7/2.x/BUILDS/2.6.4.0-91/hadoop/hadoop_2_6_4_0_91-httpfs-server-2.7.3.2.6.4.0-91.x86_64.rpm]
HDP
Reporter: Chandan Pal
{color:#d04437}*_Mar 02 10:46:36 norad-13365-hadoop-mgr-1 sh[27852]: mkdir:
cannot create directory '/var/run/hadoop-httpfs': Permission denied_*{color}
{color:#d04437}*_Mar 02 10:46:36 norad-13365-hadoop-mgr-1 systemd[1]:
hadoop-httpfs.service: control process exited, code=exited status=1_*{color}
{color:#d04437}*_Mar 02 10:46:36 norad-13365-hadoop-mgr-1 systemd[1]: Failed to
start The Hadoop httpfs daemon._*{color}
Systemd service is configured (by creating symbolic link -
/usr/hdp/current/hadoop-httpfs//usr/lib/systemd/system/hadoop-httpfs.service)
as part of yum installation. This service file create /var/run/hadoop-httpfs
dir using "httpfs" user. The 'httpfs' doesn't have permission due to that
reason service failed after reboot the system
Currently the issue is this
_[Service]_
_Type=forking_
_User=httpfs_
_Group=hadoop_
_Restart=on-failure_
_WorkingDirectory=-/var/run/hadoop-httpfs_
_...._
_...._
_ExecStartPre=/bin/sh -c 'test -d $HTTPFS_RUN || mkdir -p $HTTPFS_RUN'_
_ExecStartPre=/bin/sh -c 'test -d $HTTPFS_LOG || mkdir -p $HTTPFS_LOG'_
Hence the above ExecStartPre state create the $HTTPFS_RUN dir as httpfs user
If it is added with PermissionsStartOnly=true above 'ExecStartPre' line,
'ExecStartPre' executes as a root and 'ExecStart' state is executed as httpfs
user.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]