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

Cleanup DistCpV1 not to use deprecated methods and fix javadocs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • tools/distcp
    • None
    • Reviewed

    Description

      Currently, DistCpV1 is using deprecated methods and having wrong javadocs. We should fix them.

      1. DistCpV1.copy doesn't have dstpath, but javadoc has it.

          /**
           * Copy a file to a destination.
           * @param srcstat src path and metadata
           * @param dstpath dst path
      

      2. Removing deprecated methods.

               SequenceFile.Writer dir_writer = SequenceFile.createWriter(jobfs, jobConf, dstdirlist, Text.class, FilePair.class, SequenceFile.CompressionType.NONE);
      
              basedir = args.basedir.makeQualified(basefs);
      

      Attachments

        1. HADOOP-11450.001.patch
          10 kB
          Varun Saxena
        2. HADOOP-11450.002.patch
          13 kB
          Varun Saxena
        3. HADOOP-11450.003.patch
          14 kB
          Varun Saxena
        4. HADOOP-11450.004.patch
          14 kB
          Varun Saxena

        Activity

          People

            varun_saxena Varun Saxena
            ozawa Tsuyoshi Ozawa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: