[jira] [Commented] (HDFS-6869) Logfile mode in secure datanode is expected to be 644

2021-02-03 Thread Jason Wen (Jira)


[ 
https://issues.apache.org/jira/browse/HDFS-6869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17278496#comment-17278496
 ] 

Jason Wen commented on HDFS-6869:
-

I have the same question. When using CDH6.3.2 the secure DN log permission is 
600, but when using CDH5.16.2 it is 644.

> Logfile mode in secure datanode is expected to be 644
> -
>
> Key: HDFS-6869
> URL: https://issues.apache.org/jira/browse/HDFS-6869
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: datanode
>Reporter: Guo Ruijing
>Priority: Major
>
> Logfile mode in secure datanode is expected to be 644.
> [root@centos64-2 hadoop-hdfs]# ll
> total 136
> -rw-r--r-- 1 hdfs hadoop 19455 Aug 18 22:40 
> hadoop-hdfs-journalnode-centos64-2.log
> -rw-r--r-- 1 hdfs hadoop   718 Aug 18 22:38 
> hadoop-hdfs-journalnode-centos64-2.out
> -rw-r--r-- 1 hdfs hadoop 62316 Aug 18 22:40 
> hadoop-hdfs-namenode-centos64-2.log
> -rw-r--r-- 1 hdfs hadoop   718 Aug 18 22:38 
> hadoop-hdfs-namenode-centos64-2.out
> -rw-r--r-- 1 hdfs hadoop 15485 Aug 18 22:39 hadoop-hdfs-zkfc-centos64-2.log
> -rw-r--r-- 1 hdfs hadoop   718 Aug 18 22:39 hadoop-hdfs-zkfc-centos64-2.out
> drwxr-xr-x 2 hdfs root4096 Aug 18 22:38 hdfs
> -rw-r--r-- 1 hdfs hadoop 0 Aug 18 22:38 hdfs-audit.log
> -rw-r--r-- 1 hdfs hadoop 15029 Aug 18 22:40 SecurityAuth-hdfs.audit
> [root@centos64-2 hadoop-hdfs]#
> [root@centos64-2 hadoop-hdfs]#
> [root@centos64-2 hadoop-hdfs]# ll hdfs/
> total 52
> -rw--- 1 hdfs hadoop 43526 Aug 18 22:41 
> hadoop-hdfs-datanode-centos64-2.log   <<<   expected -rw-r--r-- (same with 
> namenode log)
> -rw-r--r-- 1 root root 734 Aug 18 22:38 
> hadoop-hdfs-datanode-centos64-2.out
> -rw--- 1 root root 343 Aug 18 22:38 jsvc.err
> -rw--- 1 root root   0 Aug 18 22:38 jsvc.out
> -rw--- 1 hdfs hadoop 0 Aug 18 22:38 SecurityAuth-hdfs.audit



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Commented] (HDFS-6869) Logfile mode in secure datanode is expected to be 644

2014-08-19 Thread Rishi Pidva (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-6869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14101944#comment-14101944
 ] 

Rishi Pidva commented on HDFS-6869:
---

The question I have is do datanode logs directory really need to have 
permission as 700? It looks to be the umask is set to 077 in case of secure DN 
which leads to all files being created with permission 600. Will be nice to 
know the reason behind it.

 Logfile mode in secure datanode is expected to be 644
 -

 Key: HDFS-6869
 URL: https://issues.apache.org/jira/browse/HDFS-6869
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: datanode
Reporter: Guo Ruijing

 Logfile mode in secure datanode is expected to be 644.
 [root@centos64-2 hadoop-hdfs]# ll
 total 136
 -rw-r--r-- 1 hdfs hadoop 19455 Aug 18 22:40 
 hadoop-hdfs-journalnode-centos64-2.log
 -rw-r--r-- 1 hdfs hadoop   718 Aug 18 22:38 
 hadoop-hdfs-journalnode-centos64-2.out
 -rw-r--r-- 1 hdfs hadoop 62316 Aug 18 22:40 
 hadoop-hdfs-namenode-centos64-2.log
 -rw-r--r-- 1 hdfs hadoop   718 Aug 18 22:38 
 hadoop-hdfs-namenode-centos64-2.out
 -rw-r--r-- 1 hdfs hadoop 15485 Aug 18 22:39 hadoop-hdfs-zkfc-centos64-2.log
 -rw-r--r-- 1 hdfs hadoop   718 Aug 18 22:39 hadoop-hdfs-zkfc-centos64-2.out
 drwxr-xr-x 2 hdfs root4096 Aug 18 22:38 hdfs
 -rw-r--r-- 1 hdfs hadoop 0 Aug 18 22:38 hdfs-audit.log
 -rw-r--r-- 1 hdfs hadoop 15029 Aug 18 22:40 SecurityAuth-hdfs.audit
 [root@centos64-2 hadoop-hdfs]#
 [root@centos64-2 hadoop-hdfs]#
 [root@centos64-2 hadoop-hdfs]# ll hdfs/
 total 52
 -rw--- 1 hdfs hadoop 43526 Aug 18 22:41 
 hadoop-hdfs-datanode-centos64-2.log  expected -rw-r--r-- (same with 
 namenode log)
 -rw-r--r-- 1 root root 734 Aug 18 22:38 
 hadoop-hdfs-datanode-centos64-2.out
 -rw--- 1 root root 343 Aug 18 22:38 jsvc.err
 -rw--- 1 root root   0 Aug 18 22:38 jsvc.out
 -rw--- 1 hdfs hadoop 0 Aug 18 22:38 SecurityAuth-hdfs.audit



--
This message was sent by Atlassian JIRA
(v6.2#6252)