'Returns None if file does not exist.'

def _hadoop_stat(self, path):

    path = encode_fs_path(path)
    try:
        stat = self.nn_client.stat(self.request_context, normpath(path))
        stat.path = decode_fs_path(stat.path)
        return stat
    except IOException as ioe:
        if (ioe.clazz == 'java.io.FileNotFoundException'):
            return None
        raise
