hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manoj Govindassamy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11848) Enhance dfsadmin listOpenFiles command to list files under a given path
Date Thu, 18 May 2017 07:38:04 GMT

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

Manoj Govindassamy commented on HDFS-11848:

[~linyiqun], filed this jira to track the enhancements as discussed in HDFS-10480. Please
feel free to pick this up and we might want to wait till HDFS-10480 is committed for the infrastructure
to be available. 

> 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: Manoj Govindassamy
> 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

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

View raw message