<?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: Distcp with wildcard in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Distcp-with-wildcard/m-p/307203#M223159</link>
    <description>&lt;P&gt;I haven't been able to try this with distcp, but a similar thing happens with hdfs dfs commands. What I found is if you have your target folder created (e.g. hdfs dfs -mkdir /e/f/), then copying into that folder will give you all of your CSVs as separate files. If you don't have /e/f/ created ahead of time, then Hadoop will create it for you and rename your source csv to be called "f". Hope that makes sense and helps.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 21:23:48 GMT</pubDate>
    <dc:creator>aakulov</dc:creator>
    <dc:date>2020-12-08T21:23:48Z</dc:date>
    <item>
      <title>Distcp with wildcard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Distcp-with-wildcard/m-p/307129#M223105</link>
      <description>&lt;P&gt;I want to copy only csv files from on directory into another, I use the command:&lt;/P&gt;&lt;P&gt;hadoop distcp /a/b/*.csv /e/f/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue here is, if there's multiple csv files under /a/b/, this command would work, it will copy all csv files into the directory /e/f/, however, if there's only one csv file, it will be copied into /e/f where f is a file not a directory, is there a way to resolve this? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 23:18:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Distcp-with-wildcard/m-p/307129#M223105</guid>
      <dc:creator>R0tary</dc:creator>
      <dc:date>2020-12-07T23:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Distcp with wildcard</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Distcp-with-wildcard/m-p/307203#M223159</link>
      <description>&lt;P&gt;I haven't been able to try this with distcp, but a similar thing happens with hdfs dfs commands. What I found is if you have your target folder created (e.g. hdfs dfs -mkdir /e/f/), then copying into that folder will give you all of your CSVs as separate files. If you don't have /e/f/ created ahead of time, then Hadoop will create it for you and rename your source csv to be called "f". Hope that makes sense and helps.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 21:23:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Distcp-with-wildcard/m-p/307203#M223159</guid>
      <dc:creator>aakulov</dc:creator>
      <dc:date>2020-12-08T21:23:48Z</dc:date>
    </item>
  </channel>
</rss>

