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

"hadoop dfs -cp" does not copy crc files

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.2.0
    • Component/s: None
    • Labels:
      None

      Description

      DFSShell.copy() uses FileUtil.copyContents() which works with "Raw" files, and does not copy crc files.
      Try
      hadoop dfs -cp a b
      Then either
      hadoop dfs -cat b
      hadoop dfs -copyToLocal b c
      The last two complain about crc files
      In fact DFSShell.copy() should use the same FileSystem methods as copyToLocal and copyFromLocal do.

        Attachments

        1. copy.patch
          5 kB
          Konstantin Shvachko

          Activity

            People

            • Assignee:
              shv Konstantin Shvachko
              Reporter:
              shv Konstantin Shvachko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: