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

"hadoop dfs -cp" does not copy crc files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: