Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: CDH 6.0.0
-
Fix Version/s: None
-
Component/s: HDFS
-
Labels:None
-
Environment:All OS (the bug noticed in Ubuntu 16.04, Ubuntu 18.04, RedHat 7)
Problem in both: secured and un-secured Hadoop cluster
Description
hadoop-hdfs-nfs3 daemon can't be stopped and can't be restarted because of wrongly set pidfile locations. HDFS NFS daemon is started during the installation, so restart is always needed during deployment (at least for Debian-like platforms).
The fix is trivial, just remove these lines from hadoop-hdfs-nfs3 startup script (it looks like Apache Hadoop defaults are fine):
export PIDFILE="/var/run/hadoop-hdfs/privileged-$TARGET_USER-$HADOOP_NAME.pid"
export HADOOP_IDENT_STRING=$TARGET_USER