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

Provide overwrite option (-overwrite/-f) in put and copyFromLocal command line options

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.20.1, 0.23.0
    • 0.23.0
    • fs
    • None
    • Reviewed

    Description

      FileSystem has the API

      public void copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst)

      This API provides overwrite option. But the mapping command line doesn't have this option. To maintain the consistency and better usage the command line option also can support the overwrite option like to put the files forcefully. ( put [-f] <srcpath> <dstPath>) and also for copyFromLocal command line option.

      Attachments

        1. HADOOP-7361-src.patch
          2 kB
          Uma Maheswara Rao G
        2. HDFS-1608-src.patch
          5 kB
          Uma Maheswara Rao G
        3. HDFS-1608-test.patch
          2 kB
          Uma Maheswara Rao G

        Issue Links

          Activity

            People

              umamaheswararao Uma Maheswara Rao G
              umamaheswararao Uma Maheswara Rao G
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: