Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-226

DFSShell problems. Incorrect block replication detection in fsck.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.5.0
    • None
    • None
    • All

    Description

      1. We need to adjust Dfsck to the new per-file replication feature.
      fsck checks block replication based on the configured global replication parameter.
      Which is now just the default. The actual file replication is returned in DFSFileInfo.
      So at least the reporting is screwed by that, although I didn't check what will happen with
      other options -move and -delete.

      2. fsck throws NullPointerException if you type
      bin/hadoop fsck -files /doc
      instead of
      bin/hadoop fsck /doc -files

      3. Unfortunately, there are several commands that throw different kinds of Exceptions
      rather than at least printing the usage info, when some of its arguments are missing or
      misplaced. ArrayIndexOutOfBoundsException is one them. Try
      bin/hadoop dfs -mv
      bin/hadoop dfs -cp
      bin/hadoop dfs -rm

      4. In general the shell is growing and getting more sophisticated.
      Should we work out a general convention on how the parameters should be structured, named,
      short/long version of the keywords, help, etc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: