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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.20.1, 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      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

              • Assignee:
                umamaheswararao Uma Maheswara Rao G
                Reporter:
                umamaheswararao Uma Maheswara Rao G
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: