// Hmm, kind of dangerous to do this
byte[] fileBArray = new byte[(int) fs.getFileStatus(
file).getLen()];
try {
FSDataInputStream fis = fs.open(file);
fis.readFully(0, fileBArray);
fis.close();
key.set(URI);
// fill the values for the content object
value.setUrl(URI);
value.setContent(fileBArray);