hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rishi Pidva (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6869) Logfile mode in secure datanode is expected to be 644
Date Tue, 19 Aug 2014 07:04:18 GMT

    [ https://issues.apache.org/jira/browse/HDFS-6869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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 root    4096 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)

Mime
View raw message