Complete error checking in hdfs_file.cc

A couple of tests still fail pending our decision regarding which strategy to follow with respect to the hdfs interface.