You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mark Thomas (JIRA)" <ji...@apache.org> on 2016/11/04 10:42:58 UTC

[jira] [Resolved] (DAEMON-355) the process created by jsvc can't read some os file like /proc/[pid]/io

     [ https://issues.apache.org/jira/browse/DAEMON-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Thomas resolved DAEMON-355.
--------------------------------
    Resolution: Not A Problem

This is working as designed.

> the process created by jsvc can't read some os file like /proc/[pid]/io
> -----------------------------------------------------------------------
>
>                 Key: DAEMON-355
>                 URL: https://issues.apache.org/jira/browse/DAEMON-355
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Jsvc
>    Affects Versions: 1.0.13
>         Environment: SUSE Linux Enterprise Server 11 SP3  (x86_64) - Kernel
>            Reporter: 胡晓东
>
> I started hadoop hdfs with jsvc by root.
> command is:
>           exec "$JSVC" \
>            -Dproc_$COMMAND -outfile "$JSVC_OUTFILE" \
>            -errfile "$JSVC_ERRFILE" \
>            -pidfile "$HADOOP_SECURE_DN_PID" \
>            -nodetach \
>            -user "$HADOOP_SECURE_DN_USER" \
>             -cp "$CLASSPATH" \
>            $JAVA_HEAP_MAX $HADOOP_OPTS \
>            org.apache.hadoop.hdfs.server.datanode.SecureDataNodeStarter "$@".
> the parameter $HADOOP_SECURE_DN_USER is hdfs.
> Then there will be to proceses in the system.one is owned by root, another is owned by hdfs, but the process of hdfs can not read  /proc/[pid]/io file, because this file is owned by root.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)