You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Souryakanta Dwivedy (Jira)" <ji...@apache.org> on 2019/11/11 10:57:00 UTC
[jira] [Comment Edited] (HDFS-14976) HDFS:fsck option
"-list-corruptfileblocks" suppress all other output while being used with
different combination of fsck options
[ https://issues.apache.org/jira/browse/HDFS-14976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16971443#comment-16971443 ]
Souryakanta Dwivedy edited comment on HDFS-14976 at 11/11/19 10:56 AM:
-----------------------------------------------------------------------
install/hadoop/namenode/bin # ./hdfs fsck
Usage: hdfs fsck <path> [-list-corruptfileblocks | [-move | -delete | -openforwrite] [-files [-blocks [-locations | -racks | -replicaDetails | -upgradedomains]]]] [-includeSnapshots] [-showprogress] [-storagepolicies] [-maintenance] [-blockId <blk_Id>]
Pipe | symbol doesn't represent that it will be used alone or it will suppress the output of other options. pipe symbol also used for [-files [-blocks [-locations | -racks | -replicaDetails | -upgradedomains]] but these options can also be used with other options as [-storagepolicies] , [-showprogress] etc.These options are not suppressing the output of any other option
was (Author: souryakantadwivedy):
install/hadoop/namenode/bin # ./hdfs fsck
Usage: hdfs fsck <path> [-list-corruptfileblocks | [-move | -delete | -openforwrite] [-files [-blocks [-locations | -racks | -replicaDetails | -upgradedomains]]]] [-includeSnapshots] [-showprogress] [-storagepolicies] [-maintenance] [-blockId <blk_Id>]
Pipe doesn't represent that it will be used alone or it will suppress the output of other options. pipe also used for [-files [-blocks [-locations | -racks | -replicaDetails | -upgradedomains]] but these options can also be used with other options as [-storagepolicies] , [-showprogress] etc.These options are not suppressing the output of any other option
> HDFS:fsck option "-list-corruptfileblocks" suppress all other output while being used with different combination of fsck options
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-14976
> URL: https://issues.apache.org/jira/browse/HDFS-14976
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: tools
> Affects Versions: 3.1.2
> Reporter: Souryakanta Dwivedy
> Priority: Minor
> Attachments: fsck_log.PNG, image-2019-11-11-15-40-22-128.png
>
>
> fsck option "-list-corruptfileblocks" suppress all other output while being used with different combination of fsck options.
> Steps:-
> ========
> Use hdfs fsck command with different combinations of options as
>
> hdfs fsck / -files -blocks -locations -storagepolicies
> hdfs fsck / -files -blocks -openforwrite
> hdfs fsck / -files -blocks -showprogress
> hdfs fsck / -files -openforwrite
> for all the combinations of options output will display.
>
> Use same fsck options with "-list-corruptfileblocks" ,it will suppress the output of
> all other options and only display the list of corrupt files which is not correct behavior
> Either it should display output of all the other option with corrupted file info or it has
> to be specifed in help info that this option should use alone without any combination of
> other options.Try these different combinations of options
>
> hdfs fsck / -files -blocks -list-corruptfileblocks
> hdfs fsck / -list-corruptfileblocks -files -blocks
>
> !image-2019-11-11-15-40-22-128.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org