<?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 how to use path globs to copy files from local to hdfs??? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-path-globs-to-copy-files-from-local-to-hdfs/m-p/101362#M14082</link>
    <description>&lt;P&gt;I have some number of files having format like &lt;/P&gt;&lt;P&gt;1)filename+date.filefomat&lt;/P&gt;&lt;P&gt; 2)filename.fileformat&lt;/P&gt;&lt;P&gt;now i need to copy only files which have some number before .(dot).     &lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2016 18:08:01 GMT</pubDate>
    <dc:creator>bsuresh</dc:creator>
    <dc:date>2016-01-05T18:08:01Z</dc:date>
    <item>
      <title>how to use path globs to copy files from local to hdfs???</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-path-globs-to-copy-files-from-local-to-hdfs/m-p/101362#M14082</link>
      <description>&lt;P&gt;I have some number of files having format like &lt;/P&gt;&lt;P&gt;1)filename+date.filefomat&lt;/P&gt;&lt;P&gt; 2)filename.fileformat&lt;/P&gt;&lt;P&gt;now i need to copy only files which have some number before .(dot).     &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 18:08:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-path-globs-to-copy-files-from-local-to-hdfs/m-p/101362#M14082</guid>
      <dc:creator>bsuresh</dc:creator>
      <dc:date>2016-01-05T18:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to use path globs to copy files from local to hdfs???</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-path-globs-to-copy-files-from-local-to-hdfs/m-p/101363#M14083</link>
      <description>&lt;P&gt;You can do something like this:&lt;/P&gt;&lt;PRE&gt;hdfs dfs -put *filename*[0-9].txt /tmp
&lt;/PRE&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;$ touch ${RANDOM}filename-$(date +"%F").txt ${RANDOM}filename.txt
$ ls *filename*.txt
17558filename-2016-01-05.txt  27880filename.txt
$ hdfs dfs -put *filename*[0-9].txt /tmp
$ hdfs dfs -ls /tmp
-rw-r--r--   3 hdfs      hdfs          0 2016-01-05 16:39 /tmp/17558filename-2016-01-05.txt
&lt;/PRE&gt;&lt;P&gt;If that doesn't work, add this to the beginning:&lt;/P&gt;&lt;PRE&gt;set +f&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jan 2016 01:03:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-use-path-globs-to-copy-files-from-local-to-hdfs/m-p/101363#M14083</guid>
      <dc:creator>vzlatkin</dc:creator>
      <dc:date>2016-01-06T01:03:47Z</dc:date>
    </item>
  </channel>
</rss>

