replace apache common IOUtil.read with hadoop IOUtils.readFully