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

Distcp print wrong log info when use -log

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      when run distcp with -log /logpath -v, distcp will print copy status and file info to /logpath, but print log with wrong file zise. The logs print as follows:

      FILE_COPIED: source=hdfs://ns1/test/stax2-api-3.1.4.jar, size=161867 --> target=hdfs://ns1/tmp/target/stax2-api-3.1.4.jar, size=0

      As I analysis ,the root cause is as follows:

      targrtFileStatus got before copying. So targrtFileStatus is null. Here should get targrtFileStatus again after file copying.

        Attachments

        1. image-2020-03-25-17-28-33-394.png
          14 kB
          liuyanyu
        2. HDFS-15241.001.patch
          0.8 kB
          liuyanyu
        3. image-2020-03-31-20-36-28-759.png
          6 kB
          liuyanyu

          Issue Links

            Activity

              People

              • Assignee:
                rain_lyy liuyanyu
                Reporter:
                rain_lyy liuyanyu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: