Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

What is hadoop_secure_dn_pid under /var/run/hadoop/hdfs directory?

avatar
 
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Ashwini Patkar

In a kerberized environment the DataNode does not use the RPC framework of Hadoop, DataNode must authenticate itself by using privileged ports which are specified by dfs.datanode.address and dfs.datanode.http.address. There you will see this PID is being used. "/var/run/hadoop/hdfs/hadoop_secure_dn.pid"

Example:

jsvc.exec -Dproc_datanode -outfile /var/log/hadoop/hdfs/jsvc.out -errfile /var/log/hadoop/hdfs/jsvc.err -pidfile /var/run/hadoop/hdfs/hadoop_secure_dn.pid

You can find the "HADOOP_SECURE_DN_PID" parameter info inside the "/usr/hdp/current/hadoop-hdfs-datanode/bin/hdfs.distro" file.

Please see: https://community.hortonworks.com/articles/90673/why-datanodes-have-two-processes-on-a-kerberized-c....

.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Ashwini Patkar

In a kerberized environment the DataNode does not use the RPC framework of Hadoop, DataNode must authenticate itself by using privileged ports which are specified by dfs.datanode.address and dfs.datanode.http.address. There you will see this PID is being used. "/var/run/hadoop/hdfs/hadoop_secure_dn.pid"

Example:

jsvc.exec -Dproc_datanode -outfile /var/log/hadoop/hdfs/jsvc.out -errfile /var/log/hadoop/hdfs/jsvc.err -pidfile /var/run/hadoop/hdfs/hadoop_secure_dn.pid

You can find the "HADOOP_SECURE_DN_PID" parameter info inside the "/usr/hdp/current/hadoop-hdfs-datanode/bin/hdfs.distro" file.

Please see: https://community.hortonworks.com/articles/90673/why-datanodes-have-two-processes-on-a-kerberized-c....

.

avatar

Thanks@Jay SenSharma ...i understood the parameter..but i'm facing one problem with this. I had set the permission rights for both of the pid but when i checked this few days back permissions was changed..i set that back and today again i found it has changed.So can anybody help me with this..what will be the cause to change this parameter's permissions frequently?