title: Multiple files as input on Amazon Elastic MapReduce
body: <p>I'm trying to run a job on Elastic MapReduce (EMR) with a custom jar. I'm trying to process about a 1000 files in a single directory. When I submit my job with the parameter <code>s3n://bucketname/compressed/*.xml.gz</code>, I get a "matched 0 files" error. If I pass just the absolute path to a file (e.g. <code>s3n://bucketname/compressed/00001.xml.gz</code>), it runs fine, but only one file gets processed. I tried using the name of the directory (<code>s3n://bucketname/compressed/</code>), hoping that the files within will be processed, but that just passes the directory to the job.</p>
  
  <p>At the same time, I have a smaller local hadoop installation. In that, when I pass my job with wildcards (<code>/path/to/dir/on/hdfs/*.xml.gz</code>), it works fine and all 1000 files are listed correctly.</p>
  
  <p>How do I get EMR to list all my files?</p>