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

Yiqun Lin edited comment on HDFS-11848 at 5/18/17 12:10 PM:
------------------------------------------------------------

[~manojg], thanks for pinging me. Assign this to myself. I will attach the 
patch after HDFS-10480 is committed.


was (Author: linyiqun):
[~manojg], thanks for pinging me. Assign this to me. I will attach the patch 
after HDFS-10480 is committed.

> Enhance dfsadmin listOpenFiles command to list files under a given path
> -----------------------------------------------------------------------
>
>                 Key: HDFS-11848
>                 URL: https://issues.apache.org/jira/browse/HDFS-11848
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Manoj Govindassamy
>            Assignee: Yiqun Lin
>
> HDFS-10480 adds {{listOpenFiles}} option is to {{dfsadmin}} command to list 
> all the open files in the system.
> One more thing that would be nice here is to filter the output on a passed 
> path or DataNode. Usecases: An admin might already know a stale file by path 
> (perhaps from fsck's -openforwrite), and wants to figure out who the lease 
> holder is. Proposal here is add suboptions to {{listOpenFiles}} to list files 
> filtered by path.
> {{LeaseManager#getINodeWithLeases(INodeDirectory)}} can be used to get the 
> open file list for any given ancestor directory.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to