Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4711

Can not change replication factor of file during moving or deleting.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.0.0-alpha
    • None
    • None
    • None

    Description

      I don't know is it a feature or a bug.
      According to hdfs dfs -help we can use key -D to set specific options for action;
      When we copying or uploading file to hdfs we can override replication factor with -D dfs.replication=N. That's works well.
      But it doesn't work for moving or removing(to trash) file.
      Steps to reproduce:
      Uploading file
      hdfs dfs -put somefile /tmp/somefile
      Copying with changing replication:
      hdfs dfs -D dfs.replication=1 -mv /tmp/somefile /tmp/somefile2

      hadoop version:
      Hadoop 2.0.0-cdh4.1.2

      Attachments

        Activity

          People

            cmccabe Colin McCabe
            checker Vladimir Barinov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: