title: How to read hadoop map file using python?
body: <p>I have map file that is block compressed using DefaultCodec. The map file is created by java application like this:</p>
  
  <pre><code>MapFile.Writer writer =
              new MapFile.Writer(conf, path,
                      MapFile.Writer.keyClass(IntWritable.class),
                      MapFile.Writer.valueClass(BytesWritable.class),
                      MapFile.Writer.compression(SequenceFile.CompressionType.BLOCK, new DefaultCodec()));
  </code></pre>
  
  <p>This file is stored in hdfs and I need to read some key,values from it in another application using python. I can't find any library that can do that. Do you have any suggestion and example?</p>
  
  <p>Thanks</p>