Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Zkfc logs gets deleted immediately on creation

Zkfc logs gets deleted immediately on creation

New Contributor

The zkfc logs gets deleted immediately on creation.

After running the provided commands these are the outputs.

PG1270:~ # ls -l /proc/37538/fd |grep delete
l-wx------ 1 hdfs hadoop 64 Sep 25 01:38 1 -> /var/opt/teradata/log/hadoop/hdfs/hadoop-hdfs-zkfc-PG1270.out (deleted)
l-wx------ 1 hdfs hadoop 64 Sep 25 01:38 2 -> /var/opt/teradata/log/hadoop/hdfs/hadoop-hdfs-zkfc-PG1270.out (deleted)
l-wx------ 1 hdfs hadoop 64 Sep 25 01:38 345 -> /var/opt/teradata/log/hadoop/hdfs/hadoop-hdfs-zkfc-PG1270.log (deleted)
l-wx------ 1 hdfs hadoop 64 Sep 25 01:38 346 -> /var/opt/teradata/log/hadoop/hdfs/SecurityAuth.audit (deleted)

total 14104440 -rw-r--r-- 1 hdfs hadoop 7295800 Sep 25 17:38 gc.log-201709081759 -rw-r--r-- 1 hdfs hadoop 43439314 Sep 25 17:38 hadoop-hdfs-journalnode-PG1269.log -rw-r--r-- 1 hdfs hadoop 75561959 Sep 25 17:38 hadoop-hdfs-namenode-PG1269.log -rw-r--r-- 1 hdfs hadoop 268435757 Sep 25 17:33 hadoop-hdfs-namenode-PG1269.log.1 -rw-r--r-- 1 hdfs hadoop 268435562 Sep 25 14:08 hadoop-hdfs-namenode-PG1269.log.10 -rw-r--r-- 1 hdfs hadoop 268435545 Sep 25 17:07 hadoop-hdfs-namenode-PG1269.log.2 -rw-r--r-- 1 hdfs hadoop 268435648 Sep 25 16:45 hadoop-hdfs-namenode-PG1269.log.3 -rw-r--r-- 1 hdfs hadoop 268435612 Sep 25 16:27 hadoop-hdfs-namenode-PG1269.log.4 -rw-r--r-- 1 hdfs hadoop 268435526 Sep 25 15:52 hadoop-hdfs-namenode-PG1269.log.5 -rw-r--r-- 1 hdfs hadoop 268435672 Sep 25 15:25 hadoop-hdfs-namenode-PG1269.log.6 -rw-r--r-- 1 hdfs hadoop 268435600 Sep 25 15:06 hadoop-hdfs-namenode-PG1269.log.7 -rw-r--r-- 1 hdfs hadoop 268435565 Sep 25 14:48 hadoop-hdfs-namenode-PG1269.log.8 -rw-r--r-- 1 hdfs hadoop 268435572 Sep 25 14:29 hadoop-hdfs-namenode-PG1269.log.9 -rw-r--r-- 1 hdfs hadoop 555774013 Sep 25 17:38 hdfs-audit.log -rw-r--r-- 1 hdfs hadoop 1983519872 Sep 17 23:59 hdfs-audit.log.2017-09-17.gz -rw-r--r-- 1 hdfs hadoop 1879918087 Sep 18 23:59 hdfs-audit.log.2017-09-18.gz -rw-r--r-- 1 hdfs hadoop 2417093227 Sep 19 23:59 hdfs-audit.log.2017-09-19.gz -rw-r--r-- 1 hdfs hadoop 2917640151 Sep 20 23:59 hdfs-audit.log.2017-09-20.gz -rw-r--r-- 1 hdfs hadoop 191754911 Sep 21 23:59 hdfs-audit.log.2017-09-21.gz -rw-r--r-- 1 hdfs hadoop 29792523 Sep 22 23:59 hdfs-audit.log.2017-09-22.gz -rw-r--r-- 1 hdfs hadoop 997208109 Sep 23 23:59 hdfs-audit.log.2017-09-23 -rw-r--r-- 1 hdfs hadoop 645313983 Sep 24 23:59 hdfs-audit.log.2017-09-24 drwxr-xr-x 3 root root 4096 Sep 4 14:25 ${system:java.io.tmpdir}

a1571749 27826 6033 0 17:39 pts/33 00:00:00 grep zkfc hdfs 44224 1 0 Sep08 ? 00:17:11 /opt/teradata/jvm64/jdk8/bin/java -Dproc_zkfc -Xmx8192m -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/var/opt/teradata/log/hadoop/hdfs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/usr/hdp/2.3.2.0-2950/hadoop -Dhadoop.id.str=hdfs -Dhadoop.root.logger=INFO,console -Djava.library.path=:/usr/hdp/2.3.2.0-2950/hadoop/lib/native/Linux-amd64-64:/usr/lib/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.3.2.0-2950/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhdp.version=2.3.2.0-2950 -Dhadoop.log.dir=/var/opt/teradata/log/hadoop/hdfs -Dhadoop.log.file=hadoop-hdfs-zkfc-PG1269.log -Dhadoop.home.dir=/usr/hdp/2.3.2.0-2950/hadoop -Dhadoop.id.str=hdfs -Dhadoop.root.logger=INFO,RFA -Djava.library.path=:/usr/hdp/2.3.2.0-2950/hadoop/lib/native/Linux-amd64-64:/usr/lib/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.3.2.0-2950/hadoop/lib/native:/usr/lib/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.3.2.0-2950/hadoop/lib/native/Linux-amd64-64:/usr/lib/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.3.2.0-2950/hadoop/lib/native -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true -Dhadoop.security.logger=INFO,RFAS org.apache.hadoop.hdfs.tools.DFSZKFailoverController a1571749@PG1269:/var/opt/teradata/log/hadoop/hdfs>

Can somebody please help.