<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Can we dist cp multiple directories from one cluster to other server in one go? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-we-dist-cp-multiple-directories-from-one-cluster-to/m-p/214234#M176149</link>
    <description>&lt;P&gt;1. Below command works, i tried it. It also creates folders 2016 and 2017&lt;/P&gt;&lt;PRE&gt;hadoop distcp hdfs://nn1:port/foo/bar/2016 hdfs://nn1:port/foo/bar/2017 hdfs://nn2:port/foo/bar&lt;/PRE&gt;&lt;P&gt;2. If not working can you try this (Actually both are same)&lt;/P&gt;&lt;PRE&gt;hadoop distcp -f hdfs://nn1:port/srclist hdfs://nn2:port/foo/bar&lt;/PRE&gt;&lt;P&gt;Where srclist has&lt;/P&gt;&lt;PRE&gt;hdfs://nn1:port/foo/bar/2016
hdfs://nn1:port/foo/bar/2017&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Oct 2017 01:56:52 GMT</pubDate>
    <dc:creator>nshetty</dc:creator>
    <dc:date>2017-10-18T01:56:52Z</dc:date>
    <item>
      <title>Can we dist cp multiple directories from one cluster to other server in one go?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-we-dist-cp-multiple-directories-from-one-cluster-to/m-p/214233#M176148</link>
      <description>&lt;P&gt;I need to distcp hdfs://nn1:port/foo/bar/2016/* and &lt;/P&gt;&lt;P&gt;hdfs://nn1:port/foo/bar/2017/* into &lt;/P&gt;&lt;P&gt;hdfs://nn2:port/foo/bar/2016/* and 
&lt;/P&gt;&lt;P&gt;hdfs://nn2:port/foo/bar/2017/* in one go..How can we achieve that? If I use distcp &lt;/P&gt;&lt;P&gt;hdfs://nn1:port/foo/bar/2016/&lt;/P&gt; \&lt;P&gt;&lt;/P&gt;&lt;P&gt;hdfs://nn1:port/foo/bar/2017&lt;/P&gt; &lt;P&gt;hdfs://nn2:port/foo/bar/ then underlying directoris i.e. 2016 and 2017 are not getting created. I need distcp to create these directories and copy data.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:39:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-we-dist-cp-multiple-directories-from-one-cluster-to/m-p/214233#M176148</guid>
      <dc:creator>nilesh_shrimant</dc:creator>
      <dc:date>2017-10-05T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can we dist cp multiple directories from one cluster to other server in one go?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-we-dist-cp-multiple-directories-from-one-cluster-to/m-p/214234#M176149</link>
      <description>&lt;P&gt;1. Below command works, i tried it. It also creates folders 2016 and 2017&lt;/P&gt;&lt;PRE&gt;hadoop distcp hdfs://nn1:port/foo/bar/2016 hdfs://nn1:port/foo/bar/2017 hdfs://nn2:port/foo/bar&lt;/PRE&gt;&lt;P&gt;2. If not working can you try this (Actually both are same)&lt;/P&gt;&lt;PRE&gt;hadoop distcp -f hdfs://nn1:port/srclist hdfs://nn2:port/foo/bar&lt;/PRE&gt;&lt;P&gt;Where srclist has&lt;/P&gt;&lt;PRE&gt;hdfs://nn1:port/foo/bar/2016
hdfs://nn1:port/foo/bar/2017&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 01:56:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-we-dist-cp-multiple-directories-from-one-cluster-to/m-p/214234#M176149</guid>
      <dc:creator>nshetty</dc:creator>
      <dc:date>2017-10-18T01:56:52Z</dc:date>
    </item>
  </channel>
</rss>

