title: hdfs copy multiple files to same target directory
body: <p>I learned that if you want to copy multiple files from one hadoop folder to another hadoop folder you can better create one big 'hdfs dfs -cp' statement with lots of     components, instead of creating several hdfs dfs -cp statements.
  With 'better' I mean that it will improve the overal time it takes to copy files: one command is quicker than several separate -cp commands run after each other.</p>
  
  <p>When I do this and my target directory is the same for all files that I want to copy I get a warning.</p>
  
  <p>I'm executing the following command:</p>
  
  <pre><code>hdfs dfs -cp -f /path1/file1 /pathx/target /path2/file2 /pathx/target /path3/file3 /pathx/target
  </code></pre>
  
  <p>After executing it I get the following warning returned:</p>
  
  <pre><code>cp: `/pathx/target' to `/pathx/target/target': is a subdirectory of itself
  </code></pre>
  
  <p>Although I get this weird warning the copy itself succeeds like it should.
  Is this a bug or am I missing something?</p>