Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3489

hdfs fsck usage message is outdated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.0-alpha
    • None
    • None
    • None

    Description

      The help message from "hdfs fsck" is misleading in several ways.

      Usage: DFSck <path> [-list-corruptfileblocks | [-move | -delete | -openforwrite] [-files [-blocks [-locations | -racks]]]]
              <path>  start checking from this path
              -move   move corrupted files to /lost+found
              -delete delete corrupted files
              -files  print out files being checked
              -openforwrite   print out files opened for write
              -list-corruptfileblocks print out list of missing blocks and files they belong to
              -blocks print out block report
              -locations      print out locations for every block
              -racks  print out network topology for data-node locations
                      By default fsck ignores files opened for write, use -openforwrite to report such files. They are usually  tagged CORRUPT or HEALTHY depending on their block allocation status
      Generic options supported are
      -conf <configuration file>     specify an application configuration file
      -D <property=value>            use value for given property
      -fs <local|namenode:port>      specify a namenode
      -jt <local|jobtracker:port>    specify a job tracker
      -files <comma separated list of files>    specify comma separated files to be copied to the map reduce cluster
      -libjars <comma separated list of jars>    specify comma separated jar files to include in the classpath.
      -archives <comma separated list of archives>    specify comma separated archives to be unarchived on the compute machines.
      
      The general command line syntax is
      bin/hadoop command [genericOptions] [commandOptions]
      
      • the first line should not say "DFSck"
      • the -fs option prefers a hdfs:// URI rather than a bare namenode:port pair

      Attachments

        Activity

          People

            adi2 Andy Isaacson
            adi2 Andy Isaacson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: